summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDongjin Kim <tobetter@gmail.com>2020-10-24 14:22:06 +0300
committerGerrit Code Review <gerrit@almond.hardkernel.com>2020-10-24 14:22:06 +0300
commit12c58e94e533b85a19d2f83d1c0a34345764ca07 (patch)
tree8ac220d5b12a0d9f63618ed3f9d26e91dad3359d
parent08b2c859fb2bdac1050bea76fe4dc442f2f4041d (diff)
parente862817be1439c396e3c22cf9a35cce0454b4b1d (diff)
downloadu-boot-12c58e94e533b85a19d2f83d1c0a34345764ca07.tar.xz
Merge "ODROID-HC4: board: add new board revision 20200807" into odroidg12-v2015.01travis/odroidn2-158travis/odroidc4-158
-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