i.MX53 support
Was: 'imx53_support.patch'
This commit is contained in:
@@ -43,6 +43,13 @@ config PF_IMX_6
|
||||
help
|
||||
Choose for i.MX6 platform.
|
||||
|
||||
config PF_IMX_53
|
||||
bool "i.MX53"
|
||||
depends on PF_IMX
|
||||
select CAN_ARM_CPU_CORTEX_A8
|
||||
help
|
||||
Choose for i.MX53
|
||||
|
||||
endchoice
|
||||
|
||||
config PF_IMX_RAM_PHYS_BASE
|
||||
@@ -50,4 +57,5 @@ config PF_IMX_RAM_PHYS_BASE
|
||||
default 0xc0000000 if PF_IMX_21
|
||||
default 0x80000000 if PF_IMX_35
|
||||
default 0x90000000 if PF_IMX_51
|
||||
default 0x70000000 if PF_IMX_53
|
||||
default 0x10000000 if PF_IMX_6
|
||||
|
||||
@@ -9,10 +9,12 @@ PREPROCESS_PARTS += $(if $(CONFIG_PF_IMX_51),imx51 imx_epit \
|
||||
pic_gic pic_gic_mxc_tzic)
|
||||
PREPROCESS_PARTS += $(if $(CONFIG_PF_IMX_53),imx53 imx_epit \
|
||||
pic_gic pic_gic_mxc_tzic)
|
||||
|
||||
PREPROCESS_PARTS += $(if $(CONFIG_PF_IMX_6),imx6 pic_gic mptimer)
|
||||
RAM_PHYS_BASE := $(CONFIG_PF_IMX_RAM_PHYS_BASE)
|
||||
|
||||
INTERFACES_KERNEL += $(if $(CONFIG_PF_IMX_51),gic)
|
||||
INTERFACES_KERNEL += $(if $(CONFIG_PF_IMX_53),gic)
|
||||
INTERFACES_KERNEL += $(if $(CONFIG_PF_IMX_6),gic)
|
||||
INTERFACES_KERNEL-$(CONFIG_PF_IMX_35) += timer_imx_epit
|
||||
INTERFACES_KERNEL-$(CONFIG_PF_IMX_51) += timer_imx_epit
|
||||
@@ -28,6 +30,7 @@ pic_IMPL += $(if $(CONFIG_PF_IMX_35),pic-arm-imx)
|
||||
pic_IMPL += $(if $(CONFIG_PF_IMX_51),pic-gic pic-arm-imx51)
|
||||
pic_IMPL += $(if $(CONFIG_PF_IMX_53),pic-gic pic-arm-imx51)
|
||||
pic_IMPL += $(if $(CONFIG_PF_IMX_6),pic-gic pic-arm-imx51)
|
||||
|
||||
bootstrap_IMPL += bootstrap-arm-imx
|
||||
timer_IMPL += $(if $(CONFIG_PF_IMX_21),timer-arm-imx21)
|
||||
timer_IMPL += $(if $(CONFIG_PF_IMX_35),timer-arm-imx_epit)
|
||||
|
||||
@@ -83,3 +83,4 @@ public:
|
||||
Uart_phys_base = Uart2_phys_base,
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
4
l4/mk/platforms/imx53.conf
Normal file
4
l4/mk/platforms/imx53.conf
Normal file
@@ -0,0 +1,4 @@
|
||||
PLATFORM_NAME = "Freescale i.MX53"
|
||||
PLATFORM_ARCH = arm
|
||||
PLATFORM_RAM_BASE = 0x70000000
|
||||
PLATFORM_RAM_SIZE_MB = 1024
|
||||
@@ -17,6 +17,7 @@ SUPPORT_CC_arm-imx21 := platform/imx.cc
|
||||
DEFAULT_RELOC_arm-imx21 := 0x00200000 # because of blob
|
||||
SUPPORT_CC_arm-imx35 := platform/imx.cc
|
||||
SUPPORT_CC_arm-imx51 := platform/imx.cc
|
||||
SUPPORT_CC_arm-imx53 := platform/imx.cc
|
||||
SUPPORT_CC_arm-imx6 := platform/imx.cc
|
||||
SUPPORT_CC_arm-om := platform/om.cc
|
||||
SUPPORT_CC_arm-kirkwood := platform/kirkwood.cc
|
||||
|
||||
@@ -36,6 +36,9 @@ class Platform_arm_imx : public Platform_single_region_ram
|
||||
#elif defined(PLATFORM_TYPE_imx51)
|
||||
static L4::Io_register_block_mmio r(0x73fbc000);
|
||||
static L4::Uart_imx51 _uart;
|
||||
#elif defined(PLATFORM_TYPE_imx53)
|
||||
static L4::Io_register_block_mmio r(0x53fbc000);
|
||||
static L4::Uart_imx51 _uart;
|
||||
#elif defined(PLATFORM_TYPE_imx6)
|
||||
//static L4::Io_register_block_mmio r(0x02020000); // UART1
|
||||
static L4::Io_register_block_mmio r(0x021e8000); // UART2
|
||||
|
||||
Reference in New Issue
Block a user