wandboard: Add support for the MX6QP variant
Subsystems (2)
Fabio Estevam
reviewerPATCH v5 1/1 wandboard: Add support for the MX6QP variant
From: Fabio Estevam <[email protected]>
Add support for the latest MX6QP wandboard variant.
Based on Richard Hu's work from Technexion's U-Boot tree.
---
Changes since v4:
- Use the existing mx6dq_dram_iocfg() for configuring the DDR IOMUX, still uses a custom spl_dram_init_imx6qp_lpddr3() function because mx6_dram_cfg() does not give stable results.
arch/arm/include/asm/arch-mx6/imx-regs.h | 3 + board/wandboard/spl.c | 125 ++++++++++++++++++++++++++++++- board/wandboard/wandboard.c | 6 +- include/configs/wandboard.h | 2 + 4 files changed, 132 insertions(+), 4 deletions(-)
arch/arm/include/asm/arch-mx6/imx-regs.h +3 -0
@@ -346,6 +346,9 @@#define IOMUXC_SNVS_BASE_ADDR (AIPS3_ARB_BASE_ADDR + 0x90000)#define SNVS_GPR_BASE_ADDR (AIPS3_ARB_BASE_ADDR + 0x94000)#endif + +#define NOC_DDR_BASE_ADDR (GPV0_BASE_ADDR + 0xB0000) +/* Only for i.MX6SX */ #define LCDIF2_BASE_ADDR (AIPS3_ARB_BASE_ADDR + 0x24000)#define MX6SX_LCDIF1_BASE_ADDR (AIPS3_ARB_BASE_ADDR + 0x20000)
board/wandboard/spl.c +123 -2
156 lines not on this page · raw message
board/wandboard/wandboard.c +4 -2
@@ -512,7 +512,9 @@ int board_late_init(void)#endif #ifdef CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG -if (is_mx6dq ()) +if (is_mx6dqp ()) +env_set ("board_rev" ,"MX6QP" ); +else if (is_mx6dq ())env_set ("board_rev" ,"MX6Q" );else env_set ("board_rev" ,"MX6DL" );
@@ -534,7 +536,7 @@ int board_init(void)#if defined(CONFIG_VIDEO_IPUV3 )setup_i2c (1 ,CONFIG_SYS_I2C_SPEED ,0x7f , &mx6dl_i2c2_pad_info); -if (is_mx6dq ()) { +if (is_mx6dq () ||is_mx6dqp ()) {setup_i2c (1 ,CONFIG_SYS_I2C_SPEED ,0x7f , &mx6q_i2c2_pad_info);setup_i2c (2 ,CONFIG_SYS_I2C_SPEED ,0x7f , &mx6q_i2c3_pad_info); }else {
include/configs/wandboard.h +2 -0
@@ -109,6 +109,8 @@"fi; " \"fi\0" \"findfdt=" \ +"if test $board_name = D1 && test $board_rev = MX6QP ; then " \ +"setenv fdtfile imx6qp-wandboard-revd1.dtb; fi; " \"if test $board_name = D1 && test $board_rev = MX6Q ; then " \"setenv fdtfile imx6q-wandboard-revd1.dtb; fi; " \"if test $board_name = D1 && test $board_rev = MX6DL ; then " \
Signature · 1 line
2.7.4
PATCH v5 1/1 wandboard: Add support for the MX6QP variant
Quoted 7 lines · Fabio Estevam
From: Fabio Estevam <[email protected]>
Add support for the latest MX6QP wandboard variant.
Based on Richard Hu's work from Technexion's U-Boot tree.
Signed-off-by Fabio Estevam <[email protected]>
Stefano, please add this to 17.11 release too.
Signature · 3 lines
Otavio Salvador O.S. Systems http://www.ossystems.com.br http://code.ossystems.com.br Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
PATCH v5 1/1 wandboard: Add support for the MX6QP variant
Quoted 11 lines · Otavio Salvador
Quoted 7 lines · Fabio Estevam
From: Fabio Estevam <[email protected]>
Add support for the latest MX6QP wandboard variant.
Based on Richard Hu's work from Technexion's U-Boot tree.
Signed-off-by Fabio Estevam <[email protected]>Stefano, please add this to 17.11 release too.
I'll pick up, thanks for remind !
Regards,
Stefano
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de =====================================================================