summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDongjin Kim <tobetter@gmail.com>2020-10-05 17:48:28 +0300
committerDongjin Kim <tobetter@gmail.com>2020-10-05 17:48:28 +0300
commite862817be1439c396e3c22cf9a35cce0454b4b1d (patch)
treecd6284f989d597ca113dd73b50a0436f30514acf
parent7fe9711925c541cc2359b3a954599c3c5a20e75c (diff)
downloadu-boot-e862817be1439c396e3c22cf9a35cce0454b4b1d.tar.xz
ODROID-HC4: board: add new board revision 20200807
Change-Id: I35f9d3b50a53bc1678e468870fca4b3d9c8040f4 Signed-off-by: Dongjin Kim <tobetter@gmail.com>
-rw-r--r--board/hardkernel/odroid-common/board.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/board/hardkernel/odroid-common/board.c b/board/hardkernel/odroid-common/board.c
index 83906e0d82..6941726309 100644
--- a/board/hardkernel/odroid-common/board.c
+++ b/board/hardkernel/odroid-common/board.c
@@ -71,12 +71,14 @@ static unsigned int get_hw_revision(void)
hwrev = BOARD_REVISION(2019, 11, 20);
}
#elif defined(CONFIG_ODROID_C4)
- if (IS_RANGE(adc, 335, 345)) /* avg : 341 */
- hwrev = BOARD_REVISION(2019, 11, 29);
- else if (IS_RANGE(adc, 80, 100)) /* avg : 90 */
+ if (IS_RANGE(adc, 80, 100)) /* avg : 90 */
hwrev = BOARD_REVISION(2020, 1, 29);
else if (IS_RANGE(adc, 300, 320)) /* avg : 308 */
hwrev = BOARD_REVISION(2019, 12, 10);
+ else if (IS_RANGE(adc, 335, 345)) /* avg : 341 */
+ hwrev = BOARD_REVISION(2019, 11, 29);
+ else if (IS_RANGE(adc, 590, 610)) /* avg : 604 */
+ hwrev = BOARD_REVISION(2020, 8, 7);
#endif
debug("ADC=%d, hwrev=0x%x\n", adc, hwrev);
@@ -115,6 +117,7 @@ int board_is_odroidc4(void)
int board_is_odroidhc4(void)
{
- return (board_revision() == 0x20191210);
+ return (board_revision() == 0x20191210)
+ || (board_revision() == 0x20200807);
}
#endif