From 7080fc60f84fd5296b8a21be85bb35232e9c61f5 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Tue, 28 Jan 2014 10:42:49 -0600 Subject: Add option to indicatet that data is retained in SDRAM --- nuttx/arch/Kconfig | 20 ++++ nuttx/arch/arm/Kconfig | 1 + nuttx/arch/arm/src/lpc17xx/Kconfig | 1 + nuttx/arch/arm/src/lpc31xx/Kconfig | 1 + nuttx/arch/arm/src/sam34/Kconfig | 1 + nuttx/configs/sama5d3x-ek/demo/Make.defs | 7 +- nuttx/configs/sama5d3x-ek/hello/Make.defs | 8 +- nuttx/configs/sama5d3x-ek/norboot/Make.defs | 8 +- nuttx/configs/sama5d3x-ek/nsh/Make.defs | 8 +- nuttx/configs/sama5d3x-ek/nx/Make.defs | 8 +- nuttx/configs/sama5d3x-ek/nxwm/Make.defs | 6 +- nuttx/configs/sama5d3x-ek/ostest/Make.defs | 8 +- nuttx/configs/sama5d3x-ek/ov2640/Make.defs | 8 +- nuttx/configs/sama5d3x-ek/scripts/nor-isram.ld | 127 +++++++++++++++++++++++++ nuttx/configs/sama5d3x-ek/scripts/norflash.ld | 127 ------------------------- nuttx/drivers/mtd/Kconfig | 5 - 16 files changed, 197 insertions(+), 147 deletions(-) create mode 100644 nuttx/configs/sama5d3x-ek/scripts/nor-isram.ld delete mode 100644 nuttx/configs/sama5d3x-ek/scripts/norflash.ld diff --git a/nuttx/arch/Kconfig b/nuttx/arch/Kconfig index 36b04dc10..983950d64 100644 --- a/nuttx/arch/Kconfig +++ b/nuttx/arch/Kconfig @@ -139,6 +139,11 @@ config ARCH_HAVE_VFORK config ARCH_HAVE_MMU bool + default n + +config ARCH_NAND_HWECC + bool + default n config ARCH_IRQPRIO bool "Prioritized interrupt support" @@ -428,4 +433,19 @@ config FLASH_SIZE refers to the FLASH that you link program code into. endif # BOOT_RUNFROMFLASH && ARCH_HAVE_MMU + +config ARCH_HAVE_SDRAM + bool + default n + +config BOOT_SDRAM_DATA + bool "Data in SDRAM" + default n + depends on ARCH_HAVE_SDRAM + ---help--- + This selection should be set if data lies in SDRAM (vs. SRAM). In + that case, the initialization sequence is a little different: SDRAM + must be configured before before the .data and .bss sections can be + initialized. + endmenu # Boot Memory Configuration diff --git a/nuttx/arch/arm/Kconfig b/nuttx/arch/arm/Kconfig index 0e721697f..53a82f8e5 100644 --- a/nuttx/arch/arm/Kconfig +++ b/nuttx/arch/arm/Kconfig @@ -16,6 +16,7 @@ config ARCH_CHIP_A1X select ARCH_HAVE_FPU select ARCH_HAVE_MMU select ARCH_HAVE_LOWVECTORS + select ARCH_HAVE_SDRAM select BOOT_RUNFROMSDRAM ---help--- Allwinner A1X family: A10, A10S (A12), A13 (ARM Cortex-A8) diff --git a/nuttx/arch/arm/src/lpc17xx/Kconfig b/nuttx/arch/arm/src/lpc17xx/Kconfig index 31fbc1a8a..20b4b37e6 100644 --- a/nuttx/arch/arm/src/lpc17xx/Kconfig +++ b/nuttx/arch/arm/src/lpc17xx/Kconfig @@ -374,6 +374,7 @@ config LPC17_EXTDRAM bool "Configure external DRAM" default n depends on ARCH_HAVE_EXTDRAM + select ARCH_HAVE_SDRAM ---help--- Configure external DRAM memory and, if applicable, map then external DRAM into the memory map. diff --git a/nuttx/arch/arm/src/lpc31xx/Kconfig b/nuttx/arch/arm/src/lpc31xx/Kconfig index cde565a2a..135519699 100644 --- a/nuttx/arch/arm/src/lpc31xx/Kconfig +++ b/nuttx/arch/arm/src/lpc31xx/Kconfig @@ -104,6 +104,7 @@ config LPC31_EXTDRAM bool "Configure external DRAM" default n depends on ARCH_HAVE_EXTDRAM + select ARCH_HAVE_SDRAM ---help--- Configure external DRAM memory and, if applicable, map then external DRAM into the memory map. diff --git a/nuttx/arch/arm/src/sam34/Kconfig b/nuttx/arch/arm/src/sam34/Kconfig index 77cc639c2..c3b49472a 100644 --- a/nuttx/arch/arm/src/sam34/Kconfig +++ b/nuttx/arch/arm/src/sam34/Kconfig @@ -720,6 +720,7 @@ config SAM34_EXTDRAM bool "Configure external DRAM" default n depends on ARCH_HAVE_EXTDRAM + select ARCH_HAVE_SDRAM ---help--- Configure external DRAM memory and, if applicable, map then external DRAM into the memory map. diff --git a/nuttx/configs/sama5d3x-ek/demo/Make.defs b/nuttx/configs/sama5d3x-ek/demo/Make.defs index c75379337..1a5bc29ad 100644 --- a/nuttx/configs/sama5d3x-ek/demo/Make.defs +++ b/nuttx/configs/sama5d3x-ek/demo/Make.defs @@ -1,7 +1,7 @@ ############################################################################ # configs/sama5d3x-ek/demo/Make.defs # -# Copyright (C) 2013 Gregory Nutt. All rights reserved. +# Copyright (C) 2013-2014 Gregory Nutt. All rights reserved. # Author: Gregory Nutt # # Redistribution and use in source and binary forms, with or without @@ -44,7 +44,10 @@ ifeq ($(CONFIG_SAMA5_BOOT_SDRAM),y) LDSCRIPT = ddram.ld endif ifeq ($(CONFIG_SAMA5_BOOT_CS0FLASH),y) - LDSCRIPT = norflash.ld +ifeq ($(CONFIG_BOOT_SDRAM_DATA),y) + LDSCRIPT = nor-ddram.ld +else + LDSCRIPT = nor-isram.ld endif ifeq ($(CONFIG_SAMA5_BOOT_CS1FLASH),y) # LDSCRIPT = cs1flash.ld diff --git a/nuttx/configs/sama5d3x-ek/hello/Make.defs b/nuttx/configs/sama5d3x-ek/hello/Make.defs index 7d53ca040..3577ab4fc 100644 --- a/nuttx/configs/sama5d3x-ek/hello/Make.defs +++ b/nuttx/configs/sama5d3x-ek/hello/Make.defs @@ -1,7 +1,7 @@ ############################################################################ # configs/sama5d3x-ek/hello/Make.defs # -# Copyright (C) 2013 Gregory Nutt. All rights reserved. +# Copyright (C) 2013-2014 Gregory Nutt. All rights reserved. # Author: Gregory Nutt # # Redistribution and use in source and binary forms, with or without @@ -44,7 +44,11 @@ ifeq ($(CONFIG_SAMA5_BOOT_SDRAM),y) LDSCRIPT = ddram.ld endif ifeq ($(CONFIG_SAMA5_BOOT_CS0FLASH),y) - LDSCRIPT = norflash.ld +ifeq ($(CONFIG_BOOT_SDRAM_DATA),y) + LDSCRIPT = nor-ddram.ld +else + LDSCRIPT = nor-isram.ld +endif endif ifeq ($(CONFIG_SAMA5_BOOT_CS1FLASH),y) # LDSCRIPT = cs1flash.ld diff --git a/nuttx/configs/sama5d3x-ek/norboot/Make.defs b/nuttx/configs/sama5d3x-ek/norboot/Make.defs index 01bb08f7a..eface1020 100644 --- a/nuttx/configs/sama5d3x-ek/norboot/Make.defs +++ b/nuttx/configs/sama5d3x-ek/norboot/Make.defs @@ -1,7 +1,7 @@ ############################################################################ # configs/sama5d3x-ek/norboot/Make.defs # -# Copyright (C) 2013 Gregory Nutt. All rights reserved. +# Copyright (C) 2013-2014 Gregory Nutt. All rights reserved. # Author: Gregory Nutt # # Redistribution and use in source and binary forms, with or without @@ -44,7 +44,11 @@ ifeq ($(CONFIG_SAMA5_BOOT_SDRAM),y) LDSCRIPT = ddram.ld endif ifeq ($(CONFIG_SAMA5_BOOT_CS0FLASH),y) - LDSCRIPT = norflash.ld +ifeq ($(CONFIG_BOOT_SDRAM_DATA),y) + LDSCRIPT = nor-ddram.ld +else + LDSCRIPT = nor-isram.ld +endif endif ifeq ($(CONFIG_SAMA5_BOOT_CS1FLASH),y) # LDSCRIPT = cs1flash.ld diff --git a/nuttx/configs/sama5d3x-ek/nsh/Make.defs b/nuttx/configs/sama5d3x-ek/nsh/Make.defs index dcc2a4731..1b22a40cb 100644 --- a/nuttx/configs/sama5d3x-ek/nsh/Make.defs +++ b/nuttx/configs/sama5d3x-ek/nsh/Make.defs @@ -1,7 +1,7 @@ ############################################################################ # configs/sama5d3x-ek/nsh/Make.defs # -# Copyright (C) 2013 Gregory Nutt. All rights reserved. +# Copyright (C) 2013-2014 Gregory Nutt. All rights reserved. # Author: Gregory Nutt # # Redistribution and use in source and binary forms, with or without @@ -44,7 +44,11 @@ ifeq ($(CONFIG_SAMA5_BOOT_SDRAM),y) LDSCRIPT = ddram.ld endif ifeq ($(CONFIG_SAMA5_BOOT_CS0FLASH),y) - LDSCRIPT = norflash.ld +ifeq ($(CONFIG_BOOT_SDRAM_DATA),y) + LDSCRIPT = nor-ddram.ld +else + LDSCRIPT = nor-isram.ld +endif endif ifeq ($(CONFIG_SAMA5_BOOT_CS1FLASH),y) # LDSCRIPT = cs1flash.ld diff --git a/nuttx/configs/sama5d3x-ek/nx/Make.defs b/nuttx/configs/sama5d3x-ek/nx/Make.defs index 06e54dd9d..70f878c0d 100644 --- a/nuttx/configs/sama5d3x-ek/nx/Make.defs +++ b/nuttx/configs/sama5d3x-ek/nx/Make.defs @@ -1,7 +1,7 @@ ############################################################################ # configs/sama5d3x-ek/nx/Make.defs # -# Copyright (C) 2013 Gregory Nutt. All rights reserved. +# Copyright (C) 2013-2014 Gregory Nutt. All rights reserved. # Author: Gregory Nutt # # Redistribution and use in source and binary forms, with or without @@ -44,7 +44,11 @@ ifeq ($(CONFIG_SAMA5_BOOT_SDRAM),y) LDSCRIPT = ddram.ld endif ifeq ($(CONFIG_SAMA5_BOOT_CS0FLASH),y) - LDSCRIPT = norflash.ld +ifeq ($(CONFIG_BOOT_SDRAM_DATA),y) + LDSCRIPT = nor-ddram.ld +else + LDSCRIPT = nor-isram.ld +endif endif ifeq ($(CONFIG_SAMA5_BOOT_CS1FLASH),y) # LDSCRIPT = cs1flash.ld diff --git a/nuttx/configs/sama5d3x-ek/nxwm/Make.defs b/nuttx/configs/sama5d3x-ek/nxwm/Make.defs index 357d2b605..96c6d4ff1 100644 --- a/nuttx/configs/sama5d3x-ek/nxwm/Make.defs +++ b/nuttx/configs/sama5d3x-ek/nxwm/Make.defs @@ -44,7 +44,11 @@ ifeq ($(CONFIG_SAMA5_BOOT_SDRAM),y) LDSCRIPT = ddram.ld endif ifeq ($(CONFIG_SAMA5_BOOT_CS0FLASH),y) - LDSCRIPT = norflash.ld +ifeq ($(CONFIG_BOOT_SDRAM_DATA),y) + LDSCRIPT = nor-ddram.ld +else + LDSCRIPT = nor-isram.ld +endif endif ifeq ($(CONFIG_SAMA5_BOOT_CS1FLASH),y) # LDSCRIPT = cs1flash.ld diff --git a/nuttx/configs/sama5d3x-ek/ostest/Make.defs b/nuttx/configs/sama5d3x-ek/ostest/Make.defs index 56e4fcdad..749b24a77 100644 --- a/nuttx/configs/sama5d3x-ek/ostest/Make.defs +++ b/nuttx/configs/sama5d3x-ek/ostest/Make.defs @@ -1,7 +1,7 @@ ############################################################################ # configs/sama5d3x-ek/ostest/Make.defs # -# Copyright (C) 2013 Gregory Nutt. All rights reserved. +# Copyright (C) 2013-2014 Gregory Nutt. All rights reserved. # Author: Gregory Nutt # # Redistribution and use in source and binary forms, with or without @@ -44,7 +44,11 @@ ifeq ($(CONFIG_SAMA5_BOOT_SDRAM),y) LDSCRIPT = ddram.ld endif ifeq ($(CONFIG_SAMA5_BOOT_CS0FLASH),y) - LDSCRIPT = norflash.ld +ifeq ($(CONFIG_BOOT_SDRAM_DATA),y) + LDSCRIPT = nor-ddram.ld +else + LDSCRIPT = nor-isram.ld +endif endif ifeq ($(CONFIG_SAMA5_BOOT_CS1FLASH),y) # LDSCRIPT = cs1flash.ld diff --git a/nuttx/configs/sama5d3x-ek/ov2640/Make.defs b/nuttx/configs/sama5d3x-ek/ov2640/Make.defs index 629aacad9..f3aff660b 100644 --- a/nuttx/configs/sama5d3x-ek/ov2640/Make.defs +++ b/nuttx/configs/sama5d3x-ek/ov2640/Make.defs @@ -1,7 +1,7 @@ ############################################################################ # configs/sama5d3x-ek/ov2640/Make.defs # -# Copyright (C) 2013 Gregory Nutt. All rights reserved. +# Copyright (C) 2013-2014 Gregory Nutt. All rights reserved. # Author: Gregory Nutt # # Redistribution and use in source and binary forms, with or without @@ -44,7 +44,11 @@ ifeq ($(CONFIG_SAMA5_BOOT_SDRAM),y) LDSCRIPT = ddram.ld endif ifeq ($(CONFIG_SAMA5_BOOT_CS0FLASH),y) - LDSCRIPT = norflash.ld +ifeq ($(CONFIG_BOOT_SDRAM_DATA),y) + LDSCRIPT = nor-ddram.ld +else + LDSCRIPT = nor-isram.ld +endif endif ifeq ($(CONFIG_SAMA5_BOOT_CS1FLASH),y) # LDSCRIPT = cs1flash.ld diff --git a/nuttx/configs/sama5d3x-ek/scripts/nor-isram.ld b/nuttx/configs/sama5d3x-ek/scripts/nor-isram.ld new file mode 100644 index 000000000..ef6c05e7f --- /dev/null +++ b/nuttx/configs/sama5d3x-ek/scripts/nor-isram.ld @@ -0,0 +1,127 @@ +/**************************************************************************** + * configs/sama5d3x-ek/scripts/nor-isram.ld + * + * Copyright (C) 2013 Gregory Nutt. All rights reserved. + * Author: Gregory Nutt + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * 3. Neither the name NuttX nor the names of its contributors may be + * used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, + * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS + * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED + * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN + * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + * + ****************************************************************************/ + +/* The SAMA5D3x-EK has 128MB of NOR flash at CS0 (0x1000:0000). In this + * configuration, the .text and a copy of the .data section will be loaded + * into NOR flash. NuttX .data, .bss, the IDLE stack, and the primary + * heap will be allocated in SRAM. The SAMA5D3 has 128 KB of ISRAM beginning + * at virtual address 0x0030:0000. + * + * Vectors in low memory are assumed to reside at the beginning of NOR flash + * 16KB of ISRAM is reserved at the beginning of ISRAM for the page table. + */ + +MEMORY +{ + norflash (W!RX) : ORIGIN = 0x10000000, LENGTH = 128M + isram (WR) : ORIGIN = 0x00304000, LENGTH = 128K - 16K +} + +OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm") +OUTPUT_ARCH(arm) +ENTRY(entry) +ENTRY(_stext) + +SECTIONS +{ + .text : { + _stext = ABSOLUTE(.); + *(.vectors) + *(.text .text.*) + *(.fixup) + *(.gnu.warning) + *(.rodata .rodata.*) + *(.gnu.linkonce.t.*) + *(.glue_7) + *(.glue_7t) + *(.got) + *(.gcc_except_table) + *(.gnu.linkonce.r.*) + *(.ARM.extab*) + *(.gnu.linkonce.armextab.*) + _etext = ABSOLUTE(.); + } > norflash + + .init_section : { + _sinit = ABSOLUTE(.); + *(.init_array .init_array.*) + _einit = ABSOLUTE(.); + } > norflash + + .ARM.extab : { + *(.ARM.extab*) + } > norflash + + /* .ARM.exidx is sorted, so has to go in its own output section. */ + + PROVIDE_HIDDEN (__exidx_start = .); + .ARM.exidx : + { + *(.ARM.exidx* .gnu.linkonce.armexidx.*) + } > norflash + PROVIDE_HIDDEN (__exidx_end = .); + + .data : { + _sdata = ABSOLUTE(.); + *(.data .data.*) + *(.gnu.linkonce.d.*) + CONSTRUCTORS + _edata = ABSOLUTE(.); + } > isram AT > norflash + + _eronly = LOADADDR(.data); + + .bss : { + _sbss = ABSOLUTE(.); + *(.bss .bss.*) + *(.gnu.linkonce.b.*) + *(COMMON) + _ebss = ABSOLUTE(.); + } > isram + + /* Stabs debugging sections. */ + .stab 0 : { *(.stab) } + .stabstr 0 : { *(.stabstr) } + .stab.excl 0 : { *(.stab.excl) } + .stab.exclstr 0 : { *(.stab.exclstr) } + .stab.index 0 : { *(.stab.index) } + .stab.indexstr 0 : { *(.stab.indexstr) } + .comment 0 : { *(.comment) } + .debug_abbrev 0 : { *(.debug_abbrev) } + .debug_info 0 : { *(.debug_info) } + .debug_line 0 : { *(.debug_line) } + .debug_pubnames 0 : { *(.debug_pubnames) } + .debug_aranges 0 : { *(.debug_aranges) } +} diff --git a/nuttx/configs/sama5d3x-ek/scripts/norflash.ld b/nuttx/configs/sama5d3x-ek/scripts/norflash.ld deleted file mode 100644 index 9fb738ccb..000000000 --- a/nuttx/configs/sama5d3x-ek/scripts/norflash.ld +++ /dev/null @@ -1,127 +0,0 @@ -/**************************************************************************** - * configs/sama5d3x-ek/scripts/norflash.ld - * - * Copyright (C) 2013 Gregory Nutt. All rights reserved. - * Author: Gregory Nutt - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * 3. Neither the name NuttX nor the names of its contributors may be - * used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS - * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED - * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - ****************************************************************************/ - -/* The SAMA5D3x-EK has 128MB of NOR flash at CS0 (0x1000:0000). In this - * configuration, the .text and a copy of the .data section will be loaded - * into NOR flash. NuttX .data, .bss, the IDLE stack, and the primary - * heap will be allocated in SRAM. The SAMA5D3 has 128 KB of ISRAM beginning - * at virtual address 0x0030:0000. - * - * Vectors in low memory are assumed to reside at the beginning of NOR flash - * 16KB of ISRAM is reserved at the beginning of ISRAM for the page table. - */ - -MEMORY -{ - norflash (W!RX) : ORIGIN = 0x10000000, LENGTH = 128M - isram (WR) : ORIGIN = 0x00304000, LENGTH = 128K - 16K -} - -OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm") -OUTPUT_ARCH(arm) -ENTRY(entry) -ENTRY(_stext) - -SECTIONS -{ - .text : { - _stext = ABSOLUTE(.); - *(.vectors) - *(.text .text.*) - *(.fixup) - *(.gnu.warning) - *(.rodata .rodata.*) - *(.gnu.linkonce.t.*) - *(.glue_7) - *(.glue_7t) - *(.got) - *(.gcc_except_table) - *(.gnu.linkonce.r.*) - *(.ARM.extab*) - *(.gnu.linkonce.armextab.*) - _etext = ABSOLUTE(.); - } > norflash - - .init_section : { - _sinit = ABSOLUTE(.); - *(.init_array .init_array.*) - _einit = ABSOLUTE(.); - } > norflash - - .ARM.extab : { - *(.ARM.extab*) - } > norflash - - /* .ARM.exidx is sorted, so has to go in its own output section. */ - - PROVIDE_HIDDEN (__exidx_start = .); - .ARM.exidx : - { - *(.ARM.exidx* .gnu.linkonce.armexidx.*) - } > norflash - PROVIDE_HIDDEN (__exidx_end = .); - - .data : { - _sdata = ABSOLUTE(.); - *(.data .data.*) - *(.gnu.linkonce.d.*) - CONSTRUCTORS - _edata = ABSOLUTE(.); - } > isram AT > norflash - - _eronly = LOADADDR(.data); - - .bss : { - _sbss = ABSOLUTE(.); - *(.bss .bss.*) - *(.gnu.linkonce.b.*) - *(COMMON) - _ebss = ABSOLUTE(.); - } > isram - - /* Stabs debugging sections. */ - .stab 0 : { *(.stab) } - .stabstr 0 : { *(.stabstr) } - .stab.excl 0 : { *(.stab.excl) } - .stab.exclstr 0 : { *(.stab.exclstr) } - .stab.index 0 : { *(.stab.index) } - .stab.indexstr 0 : { *(.stab.indexstr) } - .comment 0 : { *(.comment) } - .debug_abbrev 0 : { *(.debug_abbrev) } - .debug_info 0 : { *(.debug_info) } - .debug_line 0 : { *(.debug_line) } - .debug_pubnames 0 : { *(.debug_pubnames) } - .debug_aranges 0 : { *(.debug_aranges) } -} diff --git a/nuttx/drivers/mtd/Kconfig b/nuttx/drivers/mtd/Kconfig index c4bb65461..a036d0355 100644 --- a/nuttx/drivers/mtd/Kconfig +++ b/nuttx/drivers/mtd/Kconfig @@ -85,11 +85,6 @@ config MTD_CONFIG_ERASEDVALUE comment "MTD Device Drivers" - -config ARCH_NAND_HWECC - bool - default n - menuconfig MTD_NAND bool "MTD NAND support" default n -- cgit v1.2.3