mx53: Allow IPUv3 driver to also work on mx53
Subsystems (3)
PATCH v2 1/3 mx53: Allow IPUv3 driver to also work on mx53
Adjust the IPU base registers so that ipuv3 driver can work on both mx51 and mx53 SoCs.
Signed-off-by Fabio Estevam <[email protected]>
---
Changes since v1:
- Properly implement the IPU offset scheme.
arch/arm/include/asm/arch-mx5/imx-regs.h | 8 ++++- drivers/video/ipu_regs.h | 42 +++++++++++++++--------------- 2 files changed, 27 insertions(+), 23 deletions(-)
arch/arm/include/asm/arch-mx5/imx-regs.h +6 -2
@@ -25,7 +25,8 @@#if defined(CONFIG_MX51 )#define IRAM_BASE_ADDR 0x1FFE0000/* internal ram */ -#define IPU_CTRL_BASE_ADDR 0x40000000 +#define IPU_SOC_BASE_ADDR 0x40000000 +#define IPU_SOC_OFFSET 0x1E000000#define SPBA0_BASE_ADDR 0x70000000#define AIPS1_BASE_ADDR 0x73F00000#define AIPS2_BASE_ADDR 0x83F00000
@@ -34,7 +35,8 @@#define NFC_BASE_ADDR_AXI 0xCFFF0000#define CS1_BASE_ADDR 0xB8000000#elif defined(CONFIG_MX53 ) -#define IPU_CTRL_BASE_ADDR 0x18000000 +#define IPU_SOC_BASE_ADDR 0x18000000 +#define IPU_SOC_OFFSET 0x06000000#define SPBA0_BASE_ADDR 0x50000000#define AIPS1_BASE_ADDR 0x53F00000#define AIPS2_BASE_ADDR 0x63F00000
@@ -48,6 +50,8 @@#error "CPU_TYPE not defined"#endif +#define IPU_CTRL_BASE_ADDR IPU_SOC_BASE_ADDR + IPU_SOC_OFFSET +#define IRAM_SIZE 0x00020000/* 128 KB */ /*
drivers/video/ipu_regs.h +21 -21
48 lines not on this page · raw message
Signature · 1 line
1.7.1
PATCH v2 1/3 mx53: Allow IPUv3 driver to also work on mx53
Hi,
Quoted 11 lines · On Tue, 15 May 2012 15:01:16 -0300 Fabio Estevam <[email protected]>…
Adjust the IPU base registers so that ipuv3 driver can work on both mx51 and mx53 SoCs.
Signed-off-by Fabio Estevam <[email protected]>---
Changes since v1:
- Properly implement the IPU offset scheme.arch/arm/include/asm/arch-mx5/imx-regs.h | 8 ++++- drivers/video/ipu_regs.h | 42 +++++++++++++++--------------- 2 files changed, 27 insertions(+), 23 deletions(-)
Applied to u-boot-video/master, thanks!
Anatolij