From: 黄涛 Date: Mon, 27 Jun 2011 05:57:32 +0000 (+0800) Subject: rk29: Kconfig: support 1G memory X-Git-Tag: firefly_0821_release~10164^2~15 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=d11238ad51fd172858986b3c264176efb23295c5;p=firefly-linux-kernel-4.4.55.git rk29: Kconfig: support 1G memory --- diff --git a/arch/arm/mach-rk29/Kconfig b/arch/arm/mach-rk29/Kconfig index 3ebe36311d86..eac7f56550a5 100755 --- a/arch/arm/mach-rk29/Kconfig +++ b/arch/arm/mach-rk29/Kconfig @@ -142,9 +142,28 @@ config DDR_TYPE_DDR3_DEFAULT endchoice +choice RK29_MEM_SIZE + prompt "DDR Memory Size" + default RK29_MEM_SIZE_512M + help + Select High Memory Support (from Kernel Features) for 1G memory. + Deselect High Memory Support for 512MB memory. + +config RK29_MEM_SIZE_512M + bool "512MB" + depends on !HIGHMEM + +config RK29_MEM_SIZE_1G + bool "1GB" + depends on HIGHMEM + select ZONE_DMA + +endchoice + config RK29_MEM_SIZE_M - int "DDR Memory size (in MB)" - default 512 + int + default 512 if RK29_MEM_SIZE_512M + default 1024 if RK29_MEM_SIZE_1G config DDR_SDRAM_FREQ int "DDR SDRAM frequence (in MHz)"