changeset 512:6f4cadd1fd7f

gsm-fw/cfgmagic: beginning of Compal target support
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Wed, 02 Jul 2014 01:30:03 +0000
parents 92583843f7f8
children 383abdbc5d35
files gsm-fw/cfgmagic/post-target gsm-fw/cfgmagic/processconf.sh gsm-fw/cfgmagic/target.c139 gsm-fw/cfgmagic/target.c155 gsm-fw/cfgmagic/target.gtamodem gsm-fw/cfgmagic/target.pirelli
diffstat 6 files changed, 51 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/gsm-fw/cfgmagic/post-target	Tue Jul 01 23:03:32 2014 +0000
+++ b/gsm-fw/cfgmagic/post-target	Wed Jul 02 01:30:03 2014 +0000
@@ -50,6 +50,14 @@
 		# Thanks to the Sotovik find, we now have authoritative
 		# knowledge that these numbers are correct.
 		;;
+	751749*)
+		# Calypso Lite appears to be exactly the same as Calypso C035,
+		# but has only 256 KiB of IRAM instead of 512 KiB.  Yet TI's
+		# firmware sources give it a different CHIPSET number.
+		# Let's try playing along...
+		CHIPSET=11
+		DSP=36
+		;;
 	*)
 		echo "Error: unknown DBB_type=$DBB_type" 1>&2
 		exit 1
@@ -111,11 +119,3 @@
 
 BOARD=41
 export_to_c	BOARD
-
-# Ensure that device_class is set - various feature configurations
-# will certainly depend on it.
-if [ -z "$device_class" ]
-then
-	echo "Error: target.$TARGET failed to define device_class" 1>&2
-	exit 1
-fi
--- a/gsm-fw/cfgmagic/processconf.sh	Tue Jul 01 23:03:32 2014 +0000
+++ b/gsm-fw/cfgmagic/processconf.sh	Wed Jul 02 01:30:03 2014 +0000
@@ -19,6 +19,7 @@
 FFS_IN_RAM=1
 RVTMUX_UART_port=IrDA
 RVTMUX_UART_baud=115200
+FLASH_BOOT_VIA_BOOTROM=1
 
 . ./build.conf
 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/gsm-fw/cfgmagic/target.c139	Wed Jul 02 01:30:03 2014 +0000
@@ -0,0 +1,21 @@
+CONFIG_TARGET_C139=1
+CONFIG_TARGET_COMPAL=1
+export_to_c	CONFIG_TARGET_C139
+export_to_c	CONFIG_TARGET_COMPAL
+FLASH_BOOT_VIA_BOOTROM=0
+
+CONFIG_IRAM_SIZE=0x40000
+CONFIG_XRAM_SIZE=0x80000
+CONFIG_FWFLASH_SIZE=0x400000
+# the post-target fragment exports these
+
+# RAMFFS: default to 8 KiB x 6
+RAMFFS_BLKSIZE_LOG2=13
+RAMFFS_NBLOCKS=6
+
+DBB_type=751749
+ABB_type=Iota3025
+RF_type=Rita
+# the post-target fragment will turn these into TI's voodoo numbers
+
+RVTMUX_UART_port=MODEM
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/gsm-fw/cfgmagic/target.c155	Wed Jul 02 01:30:03 2014 +0000
@@ -0,0 +1,21 @@
+CONFIG_TARGET_C155=1
+CONFIG_TARGET_COMPAL=1
+export_to_c	CONFIG_TARGET_C155
+export_to_c	CONFIG_TARGET_COMPAL
+FLASH_BOOT_VIA_BOOTROM=0
+
+CONFIG_IRAM_SIZE=0x40000
+CONFIG_XRAM_SIZE=0x200000
+CONFIG_FWFLASH_SIZE=0x800000
+# the post-target fragment exports these
+
+# RAMFFS: default to 32 KiB x 4
+RAMFFS_BLKSIZE_LOG2=15
+RAMFFS_NBLOCKS=4
+
+DBB_type=751749
+ABB_type=Iota3014
+RF_type=Rita
+# the post-target fragment will turn these into TI's voodoo numbers
+
+RVTMUX_UART_port=MODEM
--- a/gsm-fw/cfgmagic/target.gtamodem	Tue Jul 01 23:03:32 2014 +0000
+++ b/gsm-fw/cfgmagic/target.gtamodem	Wed Jul 02 01:30:03 2014 +0000
@@ -1,8 +1,5 @@
 CONFIG_TARGET_GTAMODEM=1
 export_to_c	CONFIG_TARGET_GTAMODEM
-export_to_mk	CONFIG_TARGET_GTAMODEM
-
-device_class=modem
 
 CONFIG_IRAM_SIZE=0x80000
 CONFIG_XRAM_SIZE=0x100000
--- a/gsm-fw/cfgmagic/target.pirelli	Tue Jul 01 23:03:32 2014 +0000
+++ b/gsm-fw/cfgmagic/target.pirelli	Wed Jul 02 01:30:03 2014 +0000
@@ -1,8 +1,5 @@
 CONFIG_TARGET_PIRELLI=1
 export_to_c	CONFIG_TARGET_PIRELLI
-export_to_mk	CONFIG_TARGET_PIRELLI
-
-device_class=phone
 
 CONFIG_IRAM_SIZE=0x80000
 CONFIG_XRAM_SIZE=0x800000