changeset 377:db0874a11f57

beginning of C11x target support
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 13 Jan 2018 18:14:21 +0000
parents 3f1a587b3a84
children aee911923299
files src/cs/drivers/drv_app/ffs/board/dev.c src/cs/drivers/drv_core/armio/armio.c
diffstat 2 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/cs/drivers/drv_app/ffs/board/dev.c	Sat Jan 13 00:40:14 2018 +0000
+++ b/src/cs/drivers/drv_app/ffs/board/dev.c	Sat Jan 13 18:14:21 2018 +0000
@@ -468,15 +468,21 @@
     /********** Intel Devices *********************************************/
 
     // Intel 28F160C3-T 16Mb. Using top-most 8x8kB (parameter) sectors.
+#if defined(CONFIG_TARGET_C139) || defined(CONFIG_TARGET_C11X)
+    // Changed for C11x aftermarket FFS config: 64x3 at 0x1C0000
+    { &flash_16x64[0], (char *) 0x1C0000, MANUFACT_INTEL,   0x88C2,
+      FFS_DRIVER_INTEL_SB,  3 },
+#else
     { &flash_8x8[0],   (char *) 0x1F0000, MANUFACT_INTEL,   0x88C2,
       FFS_DRIVER_INTEL_SB,  8 },
+#endif
 
     // Intel 28F160C3-B, 16Mb. Using top-most 6x64kB sectors
     { &flash_16x64[0], (char *) 0x1A0000, MANUFACT_INTEL,   0x88C3,
       FFS_DRIVER_INTEL_SB,  6 },
 
     // Intel 28F320C3-T, 32Mb. Using top-most 8x8kB (parameter) sectors.
-#ifdef CONFIG_TARGET_C139
+#if defined(CONFIG_TARGET_C139) || defined(CONFIG_TARGET_C11X)
     // Changed for C139 aftermarket FFS config: 64x3 at 0x3C0000
     { &flash_16x64[0], (char *) 0x3C0000, MANUFACT_INTEL,   0x88C4,
       FFS_DRIVER_INTEL_SB,  3 },
--- a/src/cs/drivers/drv_core/armio/armio.c	Sat Jan 13 00:40:14 2018 +0000
+++ b/src/cs/drivers/drv_core/armio/armio.c	Sat Jan 13 18:14:21 2018 +0000
@@ -207,7 +207,7 @@
   // set IOs 8,9,10,11,12 and 13 as high
   // set IOs 0 to 7 as low
 
-  #ifdef CONFIG_TARGET_C139
+  #if defined(CONFIG_TARGET_C139) || defined(CONFIG_TARGET_C11X)
     /* C139 GPIO configuration mimics what the original fw sets */
 
     /* GPIO out all zeros - the LCD backlight is OFF */