summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDongjin Kim <tobetter@gmail.com>2020-04-20 12:47:26 +0300
committerDongjin Kim <tobetter@gmail.com>2020-04-20 12:47:26 +0300
commit94642644e8d50fe3f40b8f3806b2e743651d8ec1 (patch)
tree51366cf39d38df9907a5f26d5c1c053bfc417f62
parent5582494c6a662bc5c247a9e727bdd7981dee7913 (diff)
downloadu-boot-94642644e8d50fe3f40b8f3806b2e743651d8ec1.tar.xz
ODROID-C4: add new board revision '20200129'travis/odroidn2-118travis/odroidc4-118
Signed-off-by: Dongjin Kim <tobetter@gmail.com> Change-Id: Id9b0314cfd1fdee3f4778fa2b87e17c6c950ad87
-rw-r--r--board/hardkernel/odroid-common/board.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/board/hardkernel/odroid-common/board.c b/board/hardkernel/odroid-common/board.c
index 512709e420..83906e0d82 100644
--- a/board/hardkernel/odroid-common/board.c
+++ b/board/hardkernel/odroid-common/board.c
@@ -73,6 +73,8 @@ static unsigned int get_hw_revision(void)
#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 */
+ hwrev = BOARD_REVISION(2020, 1, 29);
else if (IS_RANGE(adc, 300, 320)) /* avg : 308 */
hwrev = BOARD_REVISION(2019, 12, 10);
#endif
@@ -107,7 +109,8 @@ int board_is_odroidn2plus(void)
#elif defined(CONFIG_ODROID_C4)
int board_is_odroidc4(void)
{
- return (board_revision() == 0x20191129);
+ return (board_revision() == 0x20191129)
+ || (board_revision() == 0x20200129);
}
int board_is_odroidhc4(void)