diff options
author | Paul Kocialkowski <contact@paulk.fr> | 2015-08-27 19:37:12 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2015-10-22 14:17:22 -0400 |
commit | 07815eb9f3f742237085e3eda947e095926212b0 (patch) | |
tree | eee6f6372237c7c288f7b59944a38e2ffc2c7756 /board/lge/sniper | |
parent | 9fd5401659c34b9b07f5d729ad35611b002830ff (diff) | |
download | u-boot-imx-07815eb9f3f742237085e3eda947e095926212b0.zip u-boot-imx-07815eb9f3f742237085e3eda947e095926212b0.tar.gz u-boot-imx-07815eb9f3f742237085e3eda947e095926212b0.tar.bz2 |
omap-common: Common serial and usbethaddr functions based on die id
Now that we have a common prototype to grab the omap die id, functions to figure
out a serial number and usb ethernet address can use it directly.
Those also get an omap_die_id prefix for better consistency.
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'board/lge/sniper')
-rw-r--r-- | board/lge/sniper/sniper.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/board/lge/sniper/sniper.c b/board/lge/sniper/sniper.c index ae9fe69..cdda76b 100644 --- a/board/lge/sniper/sniper.c +++ b/board/lge/sniper/sniper.c @@ -92,8 +92,6 @@ int board_init(void) int misc_init_r(void) { unsigned char keypad_matrix[64] = { 0 }; - unsigned int die_id[4] = { 0 }; - char serial_string[17] = { 0 }; char reboot_mode[2] = { 0 }; unsigned char keys[3]; unsigned char data = 0; @@ -140,14 +138,7 @@ int misc_init_r(void) /* Serial number */ - omap_die_id(die_id); - - if (!getenv("serial#")) { - snprintf(serial_string, sizeof(serial_string), - "%08x%08x", die_id[0], die_id[3]); - - setenv("serial#", serial_string); - } + omap_die_id_serial(); /* MUSB */ |