mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-21 12:10:24 +09:00
imx: mmdc_size: Allow building it for i.MX7ULP
i.MX7ULP uses the same MMDC controller IP as found on i.MX53 and i.MX6, so build mmdc_size.c for i.MX7ULP as well. Signed-off-by: Fabio Estevam <festevam@gmail.com>
This commit is contained in:
parent
a02a5fb6ff
commit
d9fba73a88
@ -51,7 +51,7 @@ obj-$(CONFIG_IMX_HAB) += hab.o
|
|||||||
obj-$(CONFIG_SYSCOUNTER_TIMER) += syscounter.o
|
obj-$(CONFIG_SYSCOUNTER_TIMER) += syscounter.o
|
||||||
endif
|
endif
|
||||||
ifeq ($(SOC),$(filter $(SOC),mx7ulp))
|
ifeq ($(SOC),$(filter $(SOC),mx7ulp))
|
||||||
obj-y += cache.o
|
obj-y += cache.o mmdc_size.o
|
||||||
obj-$(CONFIG_IMX_HAB) += hab.o
|
obj-$(CONFIG_IMX_HAB) += hab.o
|
||||||
endif
|
endif
|
||||||
ifeq ($(SOC),$(filter $(SOC),vf610))
|
ifeq ($(SOC),$(filter $(SOC),vf610))
|
||||||
|
@ -5,8 +5,10 @@
|
|||||||
|
|
||||||
#if defined(CONFIG_MX53)
|
#if defined(CONFIG_MX53)
|
||||||
#define MEMCTL_BASE ESDCTL_BASE_ADDR
|
#define MEMCTL_BASE ESDCTL_BASE_ADDR
|
||||||
#else
|
#elif defined(CONFIG_MX6)
|
||||||
#define MEMCTL_BASE MMDC_P0_BASE_ADDR
|
#define MEMCTL_BASE MMDC_P0_BASE_ADDR
|
||||||
|
#elif defined(CONFIG_MX7ULP)
|
||||||
|
#define MEMCTL_BASE MMDC0_RBASE
|
||||||
#endif
|
#endif
|
||||||
static const unsigned char col_lookup[] = {9, 10, 11, 8, 12, 9, 9, 9};
|
static const unsigned char col_lookup[] = {9, 10, 11, 8, 12, 9, 9, 9};
|
||||||
static const unsigned char bank_lookup[] = {3, 2};
|
static const unsigned char bank_lookup[] = {3, 2};
|
||||||
|
Loading…
Reference in New Issue
Block a user