]> Git Repo - u-boot.git/commit
pinctrl: imx: Define imx6_pinctrl_soc_info in .data section
authorLukasz Majewski <[email protected]>
Tue, 23 Apr 2019 14:44:51 +0000 (16:44 +0200)
committerStefano Babic <[email protected]>
Tue, 11 Jun 2019 08:43:00 +0000 (10:43 +0200)
commitc0df121a97d869c23c557b85aebb0b5689d954dd
tree55d6c5aecbd0996460ee908bf7cb8bf4c2d7ebde
parentb5d97e10fa7a4803236f314813ad7c181c744170
pinctrl: imx: Define imx6_pinctrl_soc_info in .data section

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 <[email protected]>
Reviewed-by: Peng Fan <[email protected]>
drivers/pinctrl/nxp/pinctrl-imx6.c
This page took 0.03047 seconds and 4 git commands to generate.