summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSemen Protsenko <[email protected]>2017-02-13 19:09:37 +0200
committerTom Rini <[email protected]>2017-02-17 17:24:34 -0500
commit7a2af751a005a08c21a697a7295dbe6f928fc980 (patch)
tree3da3c2167a78a57bc9f1d613c252ec71f5b0561b
parent949123e30a61696610fc70ea89b1387eba0dace4 (diff)
arm: am57xx: Set serial# variable
serial# variable is used to correctly display device ID in "fastboot devices". It also can be used further for displaying device ID in "adb devices" (should be passed as "androidboot.serialno" to kernel cmdline, via "bootargs" variable). Serial number generating algorithm is described at [1]. [1] http://lists.denx.de/pipermail/u-boot/2015-March/207462.html Signed-off-by: Sam Protsenko <[email protected]> Reviewed-by: Tom Rini <[email protected]> Reviewed-by: Lokesh Vutla <[email protected]>
-rw-r--r--board/ti/am57xx/board.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/board/ti/am57xx/board.c b/board/ti/am57xx/board.c
index 5f2d4dfab8c..16115144170 100644
--- a/board/ti/am57xx/board.c
+++ b/board/ti/am57xx/board.c
@@ -487,6 +487,8 @@ int board_late_init(void)
palmas_i2c_write_u8(TPS65903X_CHIP_P1, TPS65903X_PRIMARY_SECONDARY_PAD2,
val);
+ omap_die_id_serial();
+
return 0;
}