changeset 997:c7ca69bf84f3

gsm-fw: trivial support for c11x target
author Mychaela Falconia <falcon@ivan.Harhan.ORG>
date Sat, 05 Mar 2016 05:10:49 +0000
parents 09b8b2327838
children 7d3f0910aeb2
files gsm-fw/cfgmagic/defimage.c11x gsm-fw/cfgmagic/target.c11x gsm-fw/sysglue/flashboot.S
diffstat 3 files changed, 39 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/gsm-fw/cfgmagic/defimage.c11x	Sat Mar 05 05:10:49 2016 +0000
@@ -0,0 +1,1 @@
+defimage.smallram
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/gsm-fw/cfgmagic/target.c11x	Sat Mar 05 05:10:49 2016 +0000
@@ -0,0 +1,37 @@
+CONFIG_TARGET_C11X=1
+CONFIG_TARGET_COMPAL=1
+export_to_c	CONFIG_TARGET_C11X
+export_to_c	CONFIG_TARGET_COMPAL
+FLASH_BOOT_VIA_BOOTROM=0
+FLASHIMAGE_BASE_ADDR=0x10000
+
+CONFIG_IRAM_SIZE=0x40000
+CONFIG_XRAM_SIZE=0x40000
+CONFIG_FWFLASH_SIZE=0x400000
+# the post-target fragment exports these
+
+# RAMFFS: default to 8 KiB x 6
+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
+# the post-target fragment will turn these into TI's voodoo numbers
+
+# For the RF PA we have to set TI's voodoo number directly, and we don't
+# even have a number for these Skyworks parts. :-(
+# The best we can do for now is lie and pretend to be Leonardo/Openmoko.
+RF_PA=2
+
+# To the best of our knowledge, the correct TSPACT signal to assert
+# for GSM low band transmission is TSPACT6 on this target.
+USE_TSPACT2_FOR_TXLOW=0
+export_to_c	USE_TSPACT2_FOR_TXLOW
+
+RVTMUX_UART_port=MODEM
+
+allow_target_feature	aftermarket-ffs
--- a/gsm-fw/sysglue/flashboot.S	Sun Jan 03 04:23:29 2016 +0000
+++ b/gsm-fw/sysglue/flashboot.S	Sat Mar 05 05:10:49 2016 +0000
@@ -45,7 +45,7 @@
 /* provide the necessary magic words for the boot ROM */
 	.word	0
 	.word	_Flash_boot_entry
-#elif CONFIG_TARGET_C139
+#elif CONFIG_TARGET_C139 || CONFIG_TARGET_C11X
 /*
  * On this target we'll put a patched version of Compal's boot code in
  * flash sector 0 (the brickable one); the main fw images will then be