]> git.kernelconcepts.de Git - karo-tx-redboot.git/blobdiff - packages/devs/flash/arm/mxc/v2_0/cdl/mxc_flash_select.cdl
unified MX27, MX25, MX37 trees
[karo-tx-redboot.git] / packages / devs / flash / arm / mxc / v2_0 / cdl / mxc_flash_select.cdl
index 93666e43055200c7868d4f26d23e0a16a4b9a3e7..530e810a96216307c20932235554f257c813e3a9 100644 (file)
@@ -52,11 +52,40 @@ cdl_package CYGPKG_DEVS_FLASH_ONMXC {
 
     include_dir   cyg/io
 
+    cdl_component CYGHWR_DEVS_FLASH_MMC {
+        display       "MXC platform MMC card support"
+        default_value 0
+        requires      { CYGSEM_IO_FLASH_READ_INDIRECT == 1 }
+        description   "
+            When this option is enabled, it indicates MMC card is
+            supported on the MXC platforms"
+        define_proc {
+            puts $::cdl_system_header "#define MXCFLASH_SELECT_MMC"
+        }
+        compile       mxc_mmc.c
+
+        cdl_option CYGHWR_DEVS_FLASH_MMC_ESDHC {
+            display       "MXC platform MMC card for newer SDHC controllers"
+            active_if   { CYGPKG_HAL_ARM_MX37_3STACK || CYGPKG_HAL_ARM_MX35_3STACK || CYGPKG_HAL_ARM_MX25_3STACK ||  CYGPKG_HAL_ARM_MX51}
+            default_value 1
+            requires      { CYGSEM_IO_FLASH_READ_INDIRECT == 1 }
+            compile       mxcmci_core.c  mxcmci_host.c  mxcmci_mmc.c mxcmci_sd.c mxcmci_sd.c
+        }
+
+        cdl_option CYGHWR_DEVS_FLASH_MMC_SD {
+            display       "MXC platform MMC card for older MMC/SD controllers"
+            active_if   { CYGPKG_HAL_ARM_MX31_3STACK || CYGPKG_HAL_ARM_MX31ADS }
+            default_value 0
+            requires      { CYGSEM_IO_FLASH_READ_INDIRECT == 1 }
+            compile       card_mx32.c
+        }
+    }
+
     cdl_option CYGHWR_DEVS_FLASH_MXC_NOR {
         display       "MXC platform NOR flash memory support"
         default_value 0
         description   "
-            When this option is enabled, it indicates NOR flash is 
+            When this option is enabled, it indicates NOR flash is
             supported on the MXC platforms"
         define_proc {
             puts $::cdl_system_header "#define MXCFLASH_SELECT_NOR"
@@ -67,41 +96,80 @@ cdl_package CYGPKG_DEVS_FLASH_ONMXC {
         default_value 0
         requires      { CYGSEM_IO_FLASH_READ_INDIRECT == 1 }
         description   "
-            When this option is enabled, it indicates NAND flash is 
+            When this option is enabled, it indicates NAND flash is
             supported on the MXC platforms"
         define_proc {
             puts $::cdl_system_header "#define MXCFLASH_SELECT_NAND"
+            puts $::cdl_system_header "#define CYGIMP_FLASH_ENABLE     mxc_flash_enable"
+            puts $::cdl_system_header "#define CYGIMP_FLASH_DISABLE    mxc_flash_disable"
         }
         compile       mxc_nfc.c
     }
+
+    cdl_option CYGHWR_DEVS_FLASH_IMX_SPI_NOR {
+        display       "i.MX platform SPI NOR flash memory support"
+        default_value 0
+        requires      { CYGHWR_DEVS_FLASH_MXC_NOR == 1 }
+        description   "
+            When this option is enabled, it indicates SPI NOR flash is
+            supported on the i.MX platforms"
+        define_proc {
+            puts $::cdl_system_header "#define IMXFLASH_SELECT_SPI_NOR"
+        }
+        compile       spi_nor.c
+    }
+
+    cdl_option CYGHWR_DEVS_FLASH_MXC_ATA {
+        display       "MXC platform ATA support"
+        default_value 0
+        description   "
+            When this option is enabled, it indicates ATA is
+            supported on the MXC platforms"
+        define_proc {
+            puts $::cdl_system_header "#define MXCFLASH_SELECT_ATA"
+        }
+        compile       mxc_ata.c
+    }
+
     cdl_component CYGPKG_DEVS_FLASH_NAND_BBT_IN_FLASH {
         display       "Use a flash based Bad Block Table"
         flavor        none
         no_define
+       active_if     CYGHWR_DEVS_FLASH_MXC_NAND
         cdl_option CYGHWR_DEVS_FLASH_MXC_BBT_IN_FLASH {
-            requires      { CYGHWR_DEVS_FLASH_MXC_NAND == 1 }
+           default_value 1
             description   "
                 When this option is enabled, the driver will search for a flash
                 based bad block table"
             define_proc {
                 puts $::cdl_system_header "#define MXCFLASH_FLASH_BASED_BBT"
+                puts $::cdl_system_header "#include <pkgconf/devs_flash_onmxc.h>"
             }
         }
         cdl_component CYGHWR_FLASH_NAND_BBT_HEADER {
             display       "header file defining the NAND BBT descriptor"
            flavor        booldata
             default_value 0
-            requires      { CYGHWR_DEVS_FLASH_MXC_NAND == 1 }
             description   "
                 defines the name of the header file that describes the BBT layout"
+       }
+        cdl_option CYGNUM_FLASH_NAND_BBT_BLOCKS {
+            display          "Number of blocks to reserve for BBT"
+            flavor           data
+            default_value    4
+            description      "
+               Number of blocks to reserve for BBT"
         }
     }
+
     cdl_option CYGHWR_DEVS_FLASH_MXC_MULTI {
         display       "MXC platform multi flash memory support"
         default_value 1
-        active_if     {CYGHWR_DEVS_FLASH_MXC_NAND && CYGHWR_DEVS_FLASH_MXC_NOR}
+        active_if     {(CYGHWR_DEVS_FLASH_MXC_NAND && CYGHWR_DEVS_FLASH_MXC_NOR) ||
+                       (CYGHWR_DEVS_FLASH_MXC_NAND && CYGHWR_DEVS_FLASH_MMC) ||
+                       (CYGHWR_DEVS_FLASH_MXC_NOR && CYGHWR_DEVS_FLASH_MMC)}
         description   "
-            When this option is enabled, it indicates multi flashes are 
+            When this option is enabled, it indicates multi flashes are
             supported on the MXC platforms (like NAND and NOR)"
         define_proc {
             puts $::cdl_system_header "#define MXCFLASH_SELECT_MULTI"
@@ -115,4 +183,4 @@ cdl_package CYGPKG_DEVS_FLASH_ONMXC {
             When this option is enabled, it indicates 0xFFFF is used for
             the NAND reset command instead of 0xFF."
     }
-}
\ No newline at end of file
+}