diff mbox

[U-Boot] arm: am57xx: Set serial# variable

Message ID 20170213170937.20569-1-semen.protsenko@linaro.org
State Accepted
Commit 7a2af751a005a08c21a697a7295dbe6f928fc980
Delegated to: Tom Rini
Headers show

Commit Message

Sam Protsenko Feb. 13, 2017, 5:09 p.m. UTC
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>
---
 board/ti/am57xx/board.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Tom Rini Feb. 13, 2017, 5:11 p.m. UTC | #1
On Mon, Feb 13, 2017 at 07:09:37PM +0200, Sam Protsenko wrote:

> 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>
Lokesh Vutla Feb. 14, 2017, 3:23 a.m. UTC | #2
On Monday 13 February 2017 10:39 PM, Sam Protsenko wrote:
> 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: Lokesh Vutla <lokeshvutla@ti.com>

Thanks and regards,
Lokesh
Tom Rini Feb. 17, 2017, 10:56 p.m. UTC | #3
On Mon, Feb 13, 2017 at 07:09:37PM +0200, Semen Protsenko wrote:

> 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>

Applied to u-boot/master, thanks!
diff mbox

Patch

diff --git a/board/ti/am57xx/board.c b/board/ti/am57xx/board.c
index 5f2d4dfab8..1611514417 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;
 }