FreeCalypso > hg > freecalypso-sw
changeset 937:631fb20ff8d4
gsm-fw/cfgmagic: beginning of support for Intel single bank flash (Compal)
in addition to the currently supported AMD multibank (Openmoko and Pirelli)
author | Mychaela Falconia <falcon@ivan.Harhan.ORG> |
---|---|
date | Sat, 31 Oct 2015 21:50:43 +0000 |
parents | 1e80730db11b |
children | 1db4da08b9b4 |
files | gsm-fw/cfgmagic/post-target gsm-fw/cfgmagic/target.c139 gsm-fw/cfgmagic/target.c155 gsm-fw/cfgmagic/target.gtamodem gsm-fw/cfgmagic/target.pirelli |
diffstat | 5 files changed, 34 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/gsm-fw/cfgmagic/post-target Sat Oct 31 08:31:26 2015 +0000 +++ b/gsm-fw/cfgmagic/post-target Sat Oct 31 21:50:43 2015 +0000 @@ -112,6 +112,28 @@ fi export_to_c RF_PA +if [ -z "$Flash_type" ] +then + echo "Error: target.$TARGET failed to define Flash_type" 1>&2 + exit 1 +fi + +case "$Flash_type" in + AMD-multi*) + FLASH_IS_AMD_MULTIBANK=1 + export_to_c FLASH_IS_AMD_MULTIBANK + ;; + Intel-single* | Intel-one*) + FLASH_IS_INTEL_ONEBANK=1 + export_to_c FLASH_IS_INTEL_ONEBANK + export_to_mk FLASH_IS_INTEL_ONEBANK + ;; + *) + echo "Error: unknown Flash_type=$Flash_type" 1>&2 + exit 1 + ;; +esac + # !!! Dirty hack !!! # # All targets which we currently support or have realistic prospects of
--- a/gsm-fw/cfgmagic/target.c139 Sat Oct 31 08:31:26 2015 +0000 +++ b/gsm-fw/cfgmagic/target.c139 Sat Oct 31 21:50:43 2015 +0000 @@ -14,6 +14,9 @@ RAMFFS_BLKSIZE_LOG2=13 RAMFFS_NBLOCKS=6 +# select the correct flash driver +Flash_type=Intel-onebank + DBB_type=751749 ABB_type=Iota3025 RF_type=Rita
--- a/gsm-fw/cfgmagic/target.c155 Sat Oct 31 08:31:26 2015 +0000 +++ b/gsm-fw/cfgmagic/target.c155 Sat Oct 31 21:50:43 2015 +0000 @@ -14,6 +14,9 @@ RAMFFS_BLKSIZE_LOG2=15 RAMFFS_NBLOCKS=4 +# select the correct flash driver +Flash_type=Intel-onebank + DBB_type=751749 ABB_type=Iota3014 RF_type=Rita
--- a/gsm-fw/cfgmagic/target.gtamodem Sat Oct 31 08:31:26 2015 +0000 +++ b/gsm-fw/cfgmagic/target.gtamodem Sat Oct 31 21:50:43 2015 +0000 @@ -10,6 +10,9 @@ RAMFFS_BLKSIZE_LOG2=15 RAMFFS_NBLOCKS=4 +# select the correct flash driver +Flash_type=AMD-multibank + DBB_type=751992A ABB_type=Iota3025 RF_type=Rita
--- a/gsm-fw/cfgmagic/target.pirelli Sat Oct 31 08:31:26 2015 +0000 +++ b/gsm-fw/cfgmagic/target.pirelli Sat Oct 31 21:50:43 2015 +0000 @@ -11,6 +11,9 @@ RAMFFS_BLKSIZE_LOG2=16 RAMFFS_NBLOCKS=8 +# select the correct flash driver +Flash_type=AMD-multibank + # 2nd flash chip select FLASH2_BASE_ADDR=0x02000000 export_to_c FLASH2_BASE_ADDR