summaryrefslogtreecommitdiffstats
path: root/board/sbc8349/sbc8349.c
diff options
context:
space:
mode:
authorMarek Szyprowski <m.szyprowski@samsung.com>2021-02-04 10:11:45 +0100
committerNeil Armstrong <narmstrong@baylibre.com>2021-02-10 10:00:51 +0100
commit8bc780106c1399bd263c4283a8747889a613ca5d (patch)
tree05440dc6f2ede4f716735962d2ed62507c402324 /board/sbc8349/sbc8349.c
parent4547551aa019698524e809f81f65d5782f62bc1d (diff)
downloadu-boot-8bc780106c1399bd263c4283a8747889a613ca5d.tar.gz
u-boot-8bc780106c1399bd263c4283a8747889a613ca5d.tar.xz
u-boot-8bc780106c1399bd263c4283a8747889a613ca5d.zip
board: amlogic: odroid: add runtime detection of the N2/N2+/C4/HC4 variants
Use the ADC channel 1 to check the hardware revision of the board and detect the N2 vs. N2+ and the C4 vs. HC4 variants. Each of them use different dtb file, so adjust fdtfile environment variable to the detected variant. The ADC min/max values for each variant are taken from the vendor code, adjusted to the 12-bit ADC driver operation mode (vendor code use 10-bit mode). Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com> Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Diffstat (limited to 'board/sbc8349/sbc8349.c')
0 files changed, 0 insertions, 0 deletions