diff options
author | Paul Kocialkowski <contact@paulk.fr> | 2015-08-27 19:37:14 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2015-10-22 14:18:31 -0400 |
commit | 2da87ab3539264af595d8cb2d6dc7e087f1f1ca7 (patch) | |
tree | ae891c2214a0c5499a80f93a49dbe5a211f5c4c6 /board | |
parent | 679f82c349473c894159795c14a7fc0a8db0cd43 (diff) | |
download | u-boot-imx-2da87ab3539264af595d8cb2d6dc7e087f1f1ca7.zip u-boot-imx-2da87ab3539264af595d8cb2d6dc7e087f1f1ca7.tar.gz u-boot-imx-2da87ab3539264af595d8cb2d6dc7e087f1f1ca7.tar.bz2 |
omap-common: Common get_board_serial function to pass serial through ATAG
Since there is a common function to grab the serial number from the die id bits,
it makes sense have one to parse that serial number and feed it to the serial
ATAG.
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'board')
-rw-r--r-- | board/lge/sniper/sniper.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/board/lge/sniper/sniper.c b/board/lge/sniper/sniper.c index cdda76b..4eff01a 100644 --- a/board/lge/sniper/sniper.c +++ b/board/lge/sniper/sniper.c @@ -149,20 +149,7 @@ int misc_init_r(void) void get_board_serial(struct tag_serialnr *serialnr) { - char *serial_string; - unsigned long long serial; - - serial_string = getenv("serial#"); - - if (serial_string) { - serial = simple_strtoull(serial_string, NULL, 16); - - serialnr->high = (unsigned int) (serial >> 32); - serialnr->low = (unsigned int) (serial & 0xffffffff); - } else { - serialnr->high = 0; - serialnr->low = 0; - } + omap_die_id_get_board_serial(serialnr); } void reset_misc(void) |