[U-Boot] [PATCH v2] pinctrl: imx: Define imx6_pinctrl_soc_info in .data section

sbabic at denx.de sbabic at denx.de
Tue Jun 11 08:44:42 UTC 2019


> This commit is necessary to be able to re-use the pinctrl code in early
> SPL to properly configure pins.
> The problem is that those "static" structures (without explicit
> initialization) are placed in the SDRAM area, which corresponds to
> u-boot proper (not even SPL).
> Hence, when one wants to configure pins before relocation via DTS/DM,
> the board hangs (imx6q SoC powered one) as only OCRAM area is available
> (0x009xxxxx).
> This commit prevents from this issue by moving the imx6_pinctrl_soc_info
> structure to data section (from BSS).
> Signed-off-by: Lukasz Majewski <lukma at denx.de>
> Reviewed-by: Peng Fan <peng.fan at nxp.com>

Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic

-- 
=====================================================================
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
=====================================================================



More information about the U-Boot mailing list