Integrate u-boot-seco-rk/seco_2017.09_next_develop_pre-reloc_ym
[UPSTREAM-ROCKCHIP] gpio: rk: Improve error message
This is important since commit: (d3909692e8 gpio/rk: bank index cannot use static count)
Signed-off-by: Joseph Chen chenjh@rock-chips.com Change-Id: Ic2235e538d142c74bec897d62f2da6ba3543f3fc
--
[UPSTREAM-ROCKCHIP] gpio/rk: bank index cannot use static count
Mostly the gpios are probed not in order, so the static count is really uncorrect most of time, remove it and report a error.
Change-Id: I70f0bff7fafb8920dd2aca5f8631616f37f0b2b8 Signed-off-by: Jianqun Xu jay.xu@rock-chips.com
--
[DTS][PINCONF] Make every pin configuration available pre-relocation
To use any peripheral in pre-relocation we need to use its pinctrl, and so we need pin configurations; u-boot,dm-pre-reloc it's used to make them available before relocation.
--
[PINCTRL] Avoid using LIVETREE when setting pinctrl configuration
rockchip_pinctrl_set_state tries to use LVETREE when OF_LIVE is enabled. There are however some cases when OF_LIVE is enabled by the LIVETRE is not yet ready (for example in pre-relocation contexts). Prefer always using the FDT blob.