diff --git a/arch/arm/dts/k3-am654-base-board.dts b/arch/arm/dts/k3-am654-base-board.dts index afa7b5a353..e13eac4c15 100644 --- a/arch/arm/dts/k3-am654-base-board.dts +++ b/arch/arm/dts/k3-am654-base-board.dts @@ -24,9 +24,8 @@ memory@80000000 { device_type = "memory"; - /* 4G RAM */ - reg = <0x00000000 0x80000000 0x00000000 0x80000000>, - <0x00000008 0x80000000 0x00000000 0x80000000>; + /* 1G RAM */ + reg = <0x00000000 0x80000000 0x00000000 0x40000000>; }; reserved-memory { diff --git a/arch/arm/mach-k3/arm64-mmu.c b/arch/arm/mach-k3/arm64-mmu.c index a0da3df593..d708c97f70 100644 --- a/arch/arm/mach-k3/arm64-mmu.c +++ b/arch/arm/mach-k3/arm64-mmu.c @@ -44,12 +44,6 @@ struct mm_region am654_mem_map[NR_MMU_REGIONS] = { .size = 0x5df00000UL, .attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) | PTE_BLOCK_INNER_SHARE - }, { - .virt = 0x880000000UL, - .phys = 0x880000000UL, - .size = 0x80000000UL, - .attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) | - PTE_BLOCK_INNER_SHARE }, { .virt = 0x500000000UL, .phys = 0x500000000UL, diff --git a/board/ti/am65x/evm.c b/board/ti/am65x/evm.c index 045a43c498..9b6c969528 100644 --- a/board/ti/am65x/evm.c +++ b/board/ti/am65x/evm.c @@ -77,11 +77,7 @@ int board_init(void) int dram_init(void) { -#ifdef CONFIG_PHYS_64BIT - gd->ram_size = 0x100000000; -#else - gd->ram_size = 0x80000000; -#endif + gd->ram_size = 0x40000000; return 0; } @@ -101,15 +97,8 @@ int dram_init_banksize(void) { /* Bank 0 declares the memory available in the DDR low region */ gd->bd->bi_dram[0].start = CONFIG_SYS_SDRAM_BASE; - gd->bd->bi_dram[0].size = 0x80000000; - gd->ram_size = 0x80000000; - -#ifdef CONFIG_PHYS_64BIT - /* Bank 1 declares the memory available in the DDR high region */ - gd->bd->bi_dram[1].start = CONFIG_SYS_SDRAM_BASE1; - gd->bd->bi_dram[1].size = 0x80000000; - gd->ram_size = 0x100000000; -#endif + gd->bd->bi_dram[0].size = 0x40000000; + gd->ram_size = 0x40000000; return 0; } diff --git a/configs/am65x_evm_a53_defconfig b/configs/am65x_evm_a53_defconfig index 93e539aba5..a08889b5ff 100644 --- a/configs/am65x_evm_a53_defconfig +++ b/configs/am65x_evm_a53_defconfig @@ -12,7 +12,7 @@ CONFIG_SPL_DRIVERS_MISC_SUPPORT=y CONFIG_ENV_SIZE=0x20000 CONFIG_ENV_OFFSET=0x680000 CONFIG_SPL_STACK_R_ADDR=0x82000000 -CONFIG_NR_DRAM_BANKS=2 +CONFIG_NR_DRAM_BANKS=1 CONFIG_SPL_FS_FAT=y CONFIG_SPL_LIBDISK_SUPPORT=y CONFIG_SPL_SPI_FLASH_SUPPORT=y diff --git a/include/configs/am65x_evm.h b/include/configs/am65x_evm.h index 41c62785e4..f7ca664cd9 100644 --- a/include/configs/am65x_evm.h +++ b/include/configs/am65x_evm.h @@ -15,9 +15,6 @@ #include #include -/* DDR Configuration */ -#define CONFIG_SYS_SDRAM_BASE1 0x880000000 - /* SPL Loader Configuration */ #ifdef CONFIG_TARGET_AM654_A53_EVM #define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SPL_TEXT_BASE + \