diff options
author | Krzysztof Kozlowski <krzk@kernel.org> | 2019-03-06 19:37:51 +0100 |
---|---|---|
committer | Minkyu Kang <mk7.kang@samsung.com> | 2019-03-11 15:53:19 +0900 |
commit | e3ee4be3210a79e39af9b15077f0b119095ee52f (patch) | |
tree | 36aee07e1773cbaf60380a3b4ea49a8a0f093198 /include/samsung | |
parent | 311eaf743075da4f8a0b33faf1c75e6a8ba67df4 (diff) |
arm: exynos: Detect revision later, when all resources are ready
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: Krzysztof Kozlowski <krzk@kernel.org>
Reviewed-by: Lukasz Majewski <lukma@denx.de>
Tested-by: Anand Moon <linux.amoon@gmail.com>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
Diffstat (limited to 'include/samsung')
-rw-r--r-- | include/samsung/misc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/samsung/misc.h b/include/samsung/misc.h index 017560c256..4ff28a1df0 100644 --- a/include/samsung/misc.h +++ b/include/samsung/misc.h @@ -33,6 +33,7 @@ char *get_dfu_alt_system(char *interface, char *devstr); char *get_dfu_alt_boot(char *interface, char *devstr); #endif void set_board_type(void); +void set_board_revision(void); const char *get_board_type(void); #endif /* __SAMSUNG_MISC_COMMON_H__ */ |