• Krzysztof Kozlowski's avatar
    arm: exynos: Detect revision later, when all resources are ready · e3ee4be3
    Krzysztof Kozlowski authored
    Detection of board revision is done early - before power setup.  In case of
    Odroid XU3/XU4/HC1 family, the detection is done using ADC which
    is supplied by LDO4/VDD_ADC regulator.  This regulator could be turned
    off (e.g. by kernel before reboot).  If ADC is used early, the
    regulators are not yet available and the detection won't work.
    Split the revision detection out of set_board_type() into separate
    function called later - either when displaying board info (in late mode)
    or during misc_init_r.  The idea is that set_board_type() will be called
    early so its method of detection are limited to flattened device tree
    (exynos5-dt-types.c for Exynos5) or GPIO (odroid.c for Exynos4412).  The
    newly added set_board_revision() can be called only later, when
    resources like regulator are available.
    This is necessary to fix the detection of Odroid HC1 after reboot, if
    kernel turned off the LDO4 regulator.
    Signed-off-by: default avatarKrzysztof Kozlowski <krzk@kernel.org>
    Reviewed-by: default avatarLukasz Majewski <lukma@denx.de>
    Tested-by: default avatarAnand Moon <linux.amoon@gmail.com>
    Signed-off-by: default avatarMinkyu Kang <mk7.kang@samsung.com>
Last commit
Last update
exynos5-dt-types.h Loading commit data...
misc.h Loading commit data...