1
0
Kaynağa Gözat

grasshopper: move kernel symbols to target/linux/config

Waldemar Brodkorb 8 yıl önce
ebeveyn
işleme
3a089aa9af

+ 0 - 10
target/avr32/kernel/grasshopper

@@ -8,14 +8,4 @@ CONFIG_SERIAL_ATMEL=y
 CONFIG_SERIAL_ATMEL_CONSOLE=y
 CONFIG_SERIAL_ATMEL_PDC=y
 CONFIG_BOARD_GRASSHOPPER_USART1=y
-CONFIG_MTD=y
-CONFIG_MTD_BLOCK=y
-CONFIG_MTD_BLKDEVS=y
-CONFIG_MTD_CFI=y
-CONFIG_MTD_CFI_INTELEXT=y
-CONFIG_MTD_CFI_AMDSTD=y
-CONFIG_MTD_CFI_STAA=y
-CONFIG_MTD_PHYSMAP=y
-CONFIG_MTD_PHYSMAP_OF=y
-CONFIG_MTD_CMDLINE_PARTS=y
 CONFIG_GPIO_SYSFS=y

+ 10 - 7
target/linux/config/Config.in.block

@@ -116,6 +116,12 @@ config ADK_KERNEL_PWRSEQ_EMMC
 config ADK_KERNEL_PWRSEQ_SIMPLE
 	bool
 
+config ADK_KERNEL_BOARD_GRASSHOPPER_MMC
+	bool
+
+config ADK_KERNEL_BOARD_GRASSHOPPER_MMCLED
+	bool
+
 menu "SATA/PATA devices support"
 depends on ADK_TARGET_WITH_PATA \
 	|| ADK_TARGET_WITH_SATA \
@@ -460,18 +466,15 @@ config ADK_KERNEL_MMC_ATMELMCI
 	select ADK_KERNEL_MMC_SDHCI_PLTFM
 	select ADK_KERNEL_BOARD_GRASSHOPPER_MMC if ADK_TARGET_SYSTEM_GRASSHOPPER
 	select ADK_KERNEL_BOARD_GRASSHOPPER_MMCLED if ADK_TARGET_SYSTEM_GRASSHOPPER
-	depends on ADK_TARGET_CPU_AVR32
+	depends on ADK_TARGET_SYSTEM_GRASSHOPPER \
+		|| ADK_TARGET_SYSTEM_ATMEL_NGW100
+	default y if ADK_TARGET_SYSTEM_GRASSHOPPER
+	default y if ADK_TARGET_SYSTEM_ATMEL_NGW100
 	default n
 	help
 	  Atmel Multimedia Card Interface driver for AT32
 	  and AT91 plattforms.
 
-config ADK_KERNEL_BOARD_GRASSHOPPER_MMC
-	bool
-
-config ADK_KERNEL_BOARD_GRASSHOPPER_MMCLED
-	bool
-
 endmenu
 
 menu "Block driver support"

+ 16 - 0
target/linux/config/Config.in.flash

@@ -143,6 +143,22 @@ config ADK_KERNEL_MTD_NAND_FSL_NFC
 	default y if ADK_TARGET_SYSTEM_KINETIS_K70
 	default n
 
+config ADK_HARDWARE_FLASH_GRASSHOPPER
+	bool "enable flash driver for grasshopper"
+	select ADK_KERNEL_MTD
+	select ADK_KERNEL_MTD_BLKDEVS
+	select ADK_KERNEL_MTD_BLOCK
+	select ADK_KERNEL_MTD_CMDLINE_PARTS
+	select ADK_KERNEL_MTD_CFI
+	select ADK_KERNEL_MTD_CFI_INTELEXT
+	select ADK_KERNEL_MTD_CFI_AMDSTD
+	select ADK_KERNEL_MTD_CFI_STAA
+	select ADK_KERNEL_MTD_PHYSMAP
+	select ADK_KERNEL_MTD_PHYSMAP_OF
+	depends on ADK_TARGET_SYSTEM_GRASSHOPPER
+	default y if ADK_TARGET_SYSTEM_GRASSHOPPER
+	default n
+
 config ADK_TARGET_MTD_SIZE
 	int
 	depends on ADK_TARGET_SYSTEM_QEMU_MICROBLAZE_S3ADSP1800 \