changeset 649:37396b85f3f7

init.c: MEMIF setup for Luna
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 07 May 2020 06:40:27 +0000
parents 337e6d3a4454
children 7d6878435c85
files src/cs/system/main/init.c
diffstat 1 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/cs/system/main/init.c	Thu May 07 06:28:56 2020 +0000
+++ b/src/cs/system/main/init.c	Thu May 07 06:40:27 2020 +0000
@@ -557,6 +557,16 @@
         MEM_INIT_CS2(6, MEM_DVS_16, MEM_WRITE_EN, 0);
         MEM_INIT_CS3(3, MEM_DVS_16, MEM_WRITE_EN, 0);
         MEM_INIT_CS4(0, MEM_DVS_8,  MEM_WRITE_EN, 0);
+      #elif defined(CONFIG_TARGET_LUNA)
+        /*
+         * nCS0 is flash, nCS1 is XRAM, the LCD is connected to nCS3.
+         * nCS2 and nCS4 are currently unused.
+         */
+        MEM_INIT_CS0(4, MEM_DVS_16, MEM_WRITE_EN, 0);
+        MEM_INIT_CS1(4, MEM_DVS_16, MEM_WRITE_EN, 0);
+        MEM_INIT_CS2(4, MEM_DVS_16, MEM_WRITE_EN, 0);
+        MEM_INIT_CS3(5, MEM_DVS_16, MEM_WRITE_EN, 1);
+        MEM_INIT_CS4(0, MEM_DVS_8,  MEM_WRITE_EN, 0);
       #elif (CHIPSET == 8)
         /*
          * Our only Calypso C05 target is Mother Mychaela's D-Sample board.