arm: am57xx: Set serial# variable
authorSemen Protsenko <semen.protsenko@linaro.org>
Mon, 13 Feb 2017 17:09:37 +0000 (19:09 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 17 Feb 2017 22:24:34 +0000 (17:24 -0500)
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 <semen.protsenko@linaro.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Lokesh Vutla <lokeshvutla@ti.com>
board/ti/am57xx/board.c

index 5f2d4dfab8c5aa103743f10a5d4d03f1fad9cc5d..1611514417026c98270fe5368950e277e6684f9b 100644 (file)
@@ -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;
 }