/* Identify the hardware. */
gcmkONERROR(_IdentifyHardwareByDatabase(hardware, Os, Core, &hardware->identity));
- /* Get the system's physical base address. */
- gcmkONERROR(gckOS_GetBaseAddress(Os, &hardware->baseAddress));
+ /* Get the system's physical base address for old MMU */
+ if (hardware->mmuVersion == 0)
+ {
+ gcmkONERROR(gckOS_GetBaseAddress(Os, &hardware->baseAddress));
+ }
/* Determine the hardware type */
if (gckHARDWARE_IsFeatureAvailable(hardware, gcvFEATURE_PIPE_3D)
{
case gcvHAL_GET_BASE_ADDRESS:
/* Get base address. */
- Interface->u.GetBaseAddress.baseAddress = Kernel->hardware->baseAddress;
+ gcmkONERROR(
+ gckHARDWARE_GetBaseAddress(kernel->hardware, &Interface->u.GetBaseAddress.baseAddress));
Interface->u.GetBaseAddress.flatMappingStart = Kernel->mmu->flatMappingStart;
-
Interface->u.GetBaseAddress.flatMappingEnd = Kernel->mmu->flatMappingEnd;
break;
endif
ifneq ($(CONFIG_ARCH_FSL_IMX8DV),)
-EXTRA_CFLAGS += -DIMX8_SCU_CONTROL=1 -DIMX8_DISABLE_PM=1 -DIMX8_PHYS_BASE=0x00000000 -DIMX8_PHYS_SIZE=0xC8000000
+EXTRA_CFLAGS += -DIMX8_SCU_CONTROL=1 -DIMX8_DISABLE_PM=1 -DIMX8_PHYS_BASE=0xA0000000 -DIMX8_PHYS_SIZE=0x28000000
EXTRA_CFLAGS += -DIMX8_CMA_LIMIT=1
else
EXTRA_CFLAGS += -DIMX8_SCU_CONTROL=0 -DIMX8_DISABLE_PM=0 -DIMX8_PHYS_BASE=0x00000000 -DIMX8_PHYS_SIZE=0x00000000