diff src/cs/drivers/drv_app/ffs/board/dev.c @ 26:680f6fdb5e62

add target for Sony Ericsson K200/K220
author Vadim Yanitskiy <fixeria@osmocom.org>
date Wed, 20 Dec 2023 01:59:09 +0700
parents 3ca9a198c6ee
children
line wrap: on
line diff
--- a/src/cs/drivers/drv_app/ffs/board/dev.c	Wed Dec 02 21:19:21 2020 +0000
+++ b/src/cs/drivers/drv_app/ffs/board/dev.c	Wed Dec 20 01:59:09 2023 +0700
@@ -89,7 +89,8 @@
 // Note that does NOT support a flash definition with different sized blocks
 // so all blocks contained in the device definition MUST be the same size!
 
-#if defined(CONFIG_TARGET_PIRELLI) || defined(CONFIG_TARGET_FCFAM)
+#if defined(CONFIG_TARGET_PIRELLI) || defined(CONFIG_TARGET_FCFAM) || \
+    defined(CONFIG_TARGET_SE_K2X0)
 // 256 KiB sectors
 static const struct block_info_s flash_32x256[] =
 {
@@ -378,6 +379,16 @@
     { &flash_32x256[0], (char *) 0x02480000, MANUFACT_AMD,     0x2101,
       FFS_DRIVER_AMD,  6 },
 
+#elif defined(CONFIG_TARGET_SE_K2X0)
+
+    /* Spansion S71PL129N */
+    { &flash_32x256[0], (char *) 0x01800000, MANUFACT_AMD,     0x2101,
+      FFS_DRIVER_AMD, 13 },
+
+    /* Samsung K5L29xx */
+    { &flash_128x64[0], (char *) 0x01800000, MANUFACT_SAMSUNG, 0x0801,
+      FFS_DRIVER_AMD, 52 },
+
 #elif defined(CONFIG_TARGET_FCFAM)
 
     /*