diff options
author | Peng Fan <peng.fan@nxp.com> | 2018-09-12 14:32:27 +0800 |
---|---|---|
committer | Peng Fan <peng.fan@nxp.com> | 2020-05-27 15:37:54 +0800 |
commit | 5974dc9e1da0bd3c674f2f398dd53454ab254f97 (patch) | |
tree | 21045e186ce77c826e2d571937a1de75b11b19fa | |
parent | be96d08d81f83161be6d2e7250445244f7575daf (diff) |
MLK-19552 imx8qm: xen: fix memory map
Fixes 9486251ced24("MLK-19494 configs: imx8qm mek android audo: correct xen physical memory")
correct text base, IPC address, memmap.
Signed-off-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit 884cada50b9a9fcda09d259cf145d87a29122cac)
(cherry picked from commit 55822e16786817f843d32c1347d705c2a2a435dd)
(cherry picked from commit f13108a1842a2819489975f0d0040c9c65c3856c)
-rw-r--r-- | arch/arm/dts/fsl-imx8qm-mek-xen.dts | 7 | ||||
-rw-r--r-- | arch/arm/mach-imx/imx8/cpu.c | 8 | ||||
-rw-r--r-- | configs/imx8qm_mek_androidauto_xen_defconfig | 2 | ||||
-rw-r--r-- | include/configs/imx8qm_mek_android_auto_xen.h | 8 |
4 files changed, 9 insertions, 16 deletions
diff --git a/arch/arm/dts/fsl-imx8qm-mek-xen.dts b/arch/arm/dts/fsl-imx8qm-mek-xen.dts index f812b34a99..4061999375 100644 --- a/arch/arm/dts/fsl-imx8qm-mek-xen.dts +++ b/arch/arm/dts/fsl-imx8qm-mek-xen.dts @@ -14,14 +14,7 @@ #include "fsl-imx8qm-mek.dts" -&usdhc1 { - /* Need to be same as iomem for sdhc1 in domu.cfg */ - reg = <0x1 0x5b010000 0x0 0x10000>; -}; - &usdhc2 { - /* Need to be same as iomem for sdhc2 in domu.cfg */ - reg = <0x1 0x5b020000 0x0 0x10000>; status = "disabled"; }; diff --git a/arch/arm/mach-imx/imx8/cpu.c b/arch/arm/mach-imx/imx8/cpu.c index 202fd1387b..5f6e0e1b51 100644 --- a/arch/arm/mach-imx/imx8/cpu.c +++ b/arch/arm/mach-imx/imx8/cpu.c @@ -753,12 +753,12 @@ void enable_caches(void) if (IS_ENABLED(CONFIG_XEN)) { imx8_mem_map[0].virt = 0x00000000UL; imx8_mem_map[0].phys = 0x00000000UL; - imx8_mem_map[0].size = 0x40000000UL; + imx8_mem_map[0].size = 0x80000000UL; imx8_mem_map[0].attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) | PTE_BLOCK_NON_SHARE | PTE_BLOCK_PXN | PTE_BLOCK_UXN; - imx8_mem_map[1].virt = 0x40000000UL; - imx8_mem_map[1].phys = 0x40000000UL; - imx8_mem_map[1].size = 0xC0000000UL; + imx8_mem_map[1].virt = 0x80000000UL; + imx8_mem_map[1].phys = 0x80000000UL; + imx8_mem_map[1].size = 0x80000000UL; imx8_mem_map[1].attrs = (PTE_BLOCK_MEMTYPE(MT_NORMAL) | PTE_BLOCK_OUTER_SHARE); imx8_mem_map[2].virt = 0x100000000UL; diff --git a/configs/imx8qm_mek_androidauto_xen_defconfig b/configs/imx8qm_mek_androidauto_xen_defconfig index 41d567b5d8..b63590603c 100644 --- a/configs/imx8qm_mek_androidauto_xen_defconfig +++ b/configs/imx8qm_mek_androidauto_xen_defconfig @@ -3,7 +3,7 @@ CONFIG_ARCH_IMX8=y CONFIG_DEFAULT_DEVICE_TREE="fsl-imx8qm-mek-xen" CONFIG_SYS_EXTRA_OPTIONS="ANDROID_AUTO_SUPPORT" CONFIG_TARGET_IMX8QM_MEK=y -CONFIG_SYS_TEXT_BASE=0x40080000 +CONFIG_SYS_TEXT_BASE=0x80080000 CONFIG_EFI_PARTITION=y CONFIG_SYS_MALLOC_F_LEN=0x2000 CONFIG_DM=y diff --git a/include/configs/imx8qm_mek_android_auto_xen.h b/include/configs/imx8qm_mek_android_auto_xen.h index 8524f15bb9..b5f7260042 100644 --- a/include/configs/imx8qm_mek_android_auto_xen.h +++ b/include/configs/imx8qm_mek_android_auto_xen.h @@ -14,7 +14,7 @@ #undef PHYS_SDRAM_1_SIZE #undef PHYS_SDRAM_2_SIZE -#define CONFIG_SYS_SDRAM_BASE 0x40000000 +#define CONFIG_SYS_SDRAM_BASE 0x80000000 #define CONFIG_NR_DRAM_BANKS 2 #define PHYS_SDRAM_1 0x80000000 #define PHYS_SDRAM_2 0x200000000 @@ -22,9 +22,9 @@ #define PHYS_SDRAM_2_SIZE 0x60000000 /* 1536 MB */ #undef CONFIG_LOADADDR -#define CONFIG_LOADADDR 0x40280000 +#define CONFIG_LOADADDR 0x80280000 #undef CONFIG_SYS_INIT_SP_ADDR -#define CONFIG_SYS_INIT_SP_ADDR 0x40200000 +#define CONFIG_SYS_INIT_SP_ADDR 0x80200000 #undef CONFIG_REQUIRE_SERIAL_CONSOLE #undef CONFIG_IMX_SMMU @@ -33,6 +33,6 @@ #define CONFIG_FASTBOOT_USB_DEV 0 /* Use OTG port, not typec port */ /* This needs to be stay same in iomem in domu.cfg */ -#define SC_IPC_CH 0x15d1d0000 +#define SC_IPC_CH 0x5d1d0000 #endif /* IMX8QM_MEK_ANDROID_AUTO_XEN_H */ |