arm: xea: Provide enhancements for XEA board
cover arm: xea: Provide enhancements for XEA board
This patch series is a preparatory patch for supporting different versions of XEA board HW (until problem with Linux kernel support for multiple revisions is resorted).
Moreover, limits for u-boot.sb and u-boot.img has been set to avoid binary sizes exceeding in the future.
Changes in v2:
Remove "inline" from get_som_rev() function definition
Squash with 'config: xea: Enable late board initialization to set revision variable' Update commit message
Squash with 'arm: xea: Print information about XEA's SoM HW revision'
Lukasz Majewski (4):
arm: spl: xea: Remove I2S pins configuration from early initialization
arm: spl: Add definition for PHY reset GPIO for XEA HW rev. 2
arm: xea: Add support for reading SoM (CPU) board HW revision
config: xea: Add limits for SPL and u-boot proper sizes
board/liebherr/xea/spl_xea.c | 21 +++++++++------ board/liebherr/xea/xea.c | 49 ++++++++++++++++++++++++++++++++++ configs/imx28_xea_defconfig | 4 +++ configs/imx28_xea_sb_defconfig | 1 + 4 files changed, 67 insertions(+), 8 deletions(-)
Signature · 1 line
2.39.2
PATCH 1/4 arm: spl: xea: Remove I2S pins configuration from early initialization
XEA is not supporting and using I2S codec, so there is no need to configure pins for it.
---
(no changes since v1)
board/liebherr/xea/spl_xea.c | 7 ------- 1 file changed, 7 deletions(-)
board/liebherr/xea/spl_xea.c +0 -7
@@ -112,13 +112,6 @@ const iomux_cfg_t iomux_setup[] = {MX28_PAD_I2C0_SCL__I2C0_SCL ,MX28_PAD_I2C0_SDA__I2C0_SDA , -/* I2S Codec */ -MX28_PAD_SAIF0_BITCLK__SAIF0_BITCLK , -MX28_PAD_SAIF0_LRCLK__SAIF0_LRCLK , -MX28_PAD_SAIF0_MCLK__SAIF0_MCLK , -MX28_PAD_SAIF0_SDATA0__SAIF0_SDATA0 , -MX28_PAD_SAIF1_SDATA0__SAIF1_SDATA0 , -/* PWR-Hold */ MX28_PAD_SPDIF__GPIO_3_27,
Signature · 1 line
2.39.2
PATCH 2/4 arm: spl: Add definition for PHY reset GPIO for XEA HW rev. 2
In reply to Lukasz MajewskiThe imx287 based XEA board's revision 2 uses GPIO_3_21 for PHY reset
It is safe to keep the GPIO_2_13 as well, as in the SPL SPI1 is not used for transmission. This simplifies the code, as the proper configuration is performed either in falcon boot's read DTB or in u-boot proper (with correct FIT configuration chosen).
---
(no changes since v1)
board/liebherr/xea/spl_xea.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
board/liebherr/xea/spl_xea.c +2 -1
@@ -225,7 +225,8 @@ const iomux_cfg_t iomux_setup[] = {MX28_PAD_ENET0_TXD0__ENET0_TXD0 |MUX_CONFIG_ENET ,MX28_PAD_ENET0_TXD1__ENET0_TXD1 |MUX_CONFIG_ENET ,MX28_PAD_ENET0_TXD3__ENET1_TXD1 |MUX_CONFIG_ENET , -MX28_PAD_SSP1_CMD__GPIO_2_13 ,/* PHY reset */ +MX28_PAD_SSP1_CMD__GPIO_2_13 ,/* PHY reset HW Rev. 1*/ +MX28_PAD_SAIF0_LRCLK__GPIO_3_21 ,/* PHY reset HW Rev. 2*/ /* TIVA boot control */ MX28_PAD_GPMI_RDY3__GPIO_0_23 | MUX_CONFIG_BOOT, /* TIVA0 */
Signature · 1 line
2.39.2
PATCH 3/4 arm: xea: Add support for reading SoM (CPU) board HW revision
In reply to Lukasz MajewskiThe XEA board now has several HW revisions for SoM boards. This patch provides support for reading this revision ID values in early u-boot proper as production devices boot via falcon boot with correct DTB flashed at production (so there is no need to alter SPL).
Additionally, the maximal SPL size (~55KiB) constraint is not allowing having even simplified FIT support in it.
As a result it was necessary to handle reading GPIOs values solely in u-boot proper as one configuration (i.e. 'single binary' - imx28_xea_sb_defconfig) is not using SPL framework.
Moreover, the 'board_som_rev' environment variable will be used to point correct configuration from the Linux FIT file.
Additionally, as now XEA has its second HW revision - this information is printed when u-boot proper starts.
---
Changes in v2:
Remove "inline" from get_som_rev() function definition
Squash with 'config: xea: Enable late board initialization to set revision variable' Update commit message
Squash with 'arm: xea: Print information about XEA's SoM HW revision'
board/liebherr/xea/spl_xea.c | 11 ++++++++ board/liebherr/xea/xea.c | 49 ++++++++++++++++++++++++++++++++++ configs/imx28_xea_defconfig | 1 + configs/imx28_xea_sb_defconfig | 1 + 4 files changed, 62 insertions(+)
board/liebherr/xea/spl_xea.c +11 -0
@@ -231,6 +231,17 @@ const iomux_cfg_t iomux_setup[] = {/* TIVA boot control */ MX28_PAD_GPMI_RDY3__GPIO_0_23 |MUX_CONFIG_BOOT ,/* TIVA0 */ MX28_PAD_GPMI_WRN__GPIO_0_25 |MUX_CONFIG_BOOT ,/* TIVA1 */ + +/* HW revision ID Base Board */ +MX28_PAD_LCD_D12__GPIO_1_12 , +MX28_PAD_LCD_D13__GPIO_1_13 , +MX28_PAD_LCD_D14__GPIO_1_14 , + +/* HW revision ID (SoM) */ +MX28_PAD_LCD_D15__GPIO_1_15 , +MX28_PAD_LCD_D16__GPIO_1_16 , +MX28_PAD_LCD_D17__GPIO_1_17 , + MX28_PAD_LCD_D18__GPIO_1_18, }; u32 mxs_dram_vals[] = {
board/liebherr/xea/xea.c +49 -0
61 lines not on this page · raw message
configs/imx28_xea_defconfig +1 -0
@@ -39,6 +39,7 @@ CONFIG_BOOTCOMMAND="run ${bootpri} ; run ${bootsec}" CONFIG_USE_PREBOOT=y CONFIG_PREBOOT="run prebootcmd" CONFIG_BOARD_EARLY_INIT_F=y +CONFIG_BOARD_LATE_INIT=y CONFIG_SPL_NO_BSS_LIMIT=y CONFIG_SPL_BOARD_INIT=y # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set
configs/imx28_xea_sb_defconfig +1 -0
@@ -23,6 +23,7 @@ CONFIG_BOOTARGS="console=ttyAMA0,115200n8" CONFIG_USE_PREBOOT=y CONFIG_PREBOOT="run prebootcmd" CONFIG_BOARD_EARLY_INIT_F=y +CONFIG_BOARD_LATE_INIT=y # CONFIG_SPL_FRAMEWORK is not set CONFIG_SPL_NO_BSS_LIMIT=y CONFIG_SPL_BOARD_INIT=y
Signature · 1 line
2.39.2
PATCH 4/4 config: xea: Add limits for SPL and u-boot proper sizes
In reply to Lukasz MajewskiThe XEA board has following hard constraints regarding size of binaries:
- u-boot.sb < 48 KiB
- u-boot.img < 448 KiB
Added values are supposed to avoid exceeding size of binaries during future u-boot development.
---
(no changes since v1)
configs/imx28_xea_defconfig | 3 +++ 1 file changed, 3 insertions(+)
configs/imx28_xea_defconfig +3 -0
@@ -21,12 +21,15 @@ CONFIG_SPL_MMC=y CONFIG_SPL_SERIAL=y CONFIG_SPL_STACK=0x20000 CONFIG_SPL_SYS_MALLOC_F_LEN=0x1000 +CONFIG_SPL_SIZE_LIMIT=0xa000 CONFIG_SPL=y CONFIG_ENV_OFFSET_REDUND=0x90000 CONFIG_SPL_SPI_FLASH_SUPPORT=y CONFIG_SPL_SPI=y CONFIG_SYS_LOAD_ADDR=0x42000000 CONFIG_SPL_PAYLOAD="u-boot.img" +CONFIG_HAS_BOARD_SIZE_LIMIT=y +CONFIG_BOARD_SIZE_LIMIT=458752 CONFIG_TIMESTAMP=y CONFIG_FIT=y # CONFIG_BOOTMETH_EXTLINUX is not set
Signature · 1 line
2.39.2
Quoted 6 lines · Lukasz Majewski
This patch series is a preparatory patch for supporting different versions of XEA board HW (until problem with Linux kernel support for multiple revisions is resorted).
Quoted 8 lines
Moreover, limits for u-boot.sb and u-boot.img has been set to avoid binary sizes exceeding in the future.
Changes in v2:
Remove "inline" fromget_som_rev()function definition
Squash with 'config: xea: Enable late board initialization to set revision variable' Update commit message
Squash with 'arm: xea: Print information about XEA's SoM HW revision'
Next time, please properly mark the patch revision (v2, v3, etc).
Applied, thanks.