diff options
author | Sang-Jun Park <sj2202.park@samsung.com> | 2010-09-04 10:52:06 -0700 |
---|---|---|
committer | Arve Hjønnevåg <arve@android.com> | 2011-11-17 17:44:02 -0800 |
commit | b775fe6150489cb38c4618ccaef912c2b857bd8f (patch) | |
tree | ed6c805114eda14ec0a83e07a8d33b635119a07f /arch/arm | |
parent | 35a42bfb0fa10bbebdc614fa259ae5ed1a23cec0 (diff) | |
download | kernel_samsung_crespo-b775fe6150489cb38c4618ccaef912c2b857bd8f.zip kernel_samsung_crespo-b775fe6150489cb38c4618ccaef912c2b857bd8f.tar.gz kernel_samsung_crespo-b775fe6150489cb38c4618ccaef912c2b857bd8f.tar.bz2 |
S5PC11X: USB: Get USB serial number from bootloader
get serial number from bootloader and change to upper case
Change-Id: Ieb8416985150e8f8baa404ef028e126a3d15f70e
Signed-off-by: Sang-Jun Park <sj2202.park@samsung.com
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/mach-s5pv210/mach-herring.c | 1 | ||||
-rw-r--r-- | arch/arm/plat-s5p/devs.c | 6 | ||||
-rw-r--r-- | arch/arm/plat-samsung/include/plat/devs.h | 2 |
3 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/mach-s5pv210/mach-herring.c b/arch/arm/mach-s5pv210/mach-herring.c index 9fbeb9a..9dadec2 100644 --- a/arch/arm/mach-s5pv210/mach-herring.c +++ b/arch/arm/mach-s5pv210/mach-herring.c @@ -2738,6 +2738,7 @@ static void jupiter_init_gpio(void) static void __init herring_machine_init(void) { + s3c_usb_set_serial(); platform_add_devices(herring_devices, ARRAY_SIZE(herring_devices)); /* Find out S5PC110 chip version */ diff --git a/arch/arm/plat-s5p/devs.c b/arch/arm/plat-s5p/devs.c index 80a15d3..9a242ef 100644 --- a/arch/arm/plat-s5p/devs.c +++ b/arch/arm/plat-s5p/devs.c @@ -114,6 +114,12 @@ static struct android_usb_platform_data android_usb_pdata = { .functions = usb_functions_all, }; +void __init s3c_usb_set_serial(void) +{ + sprintf(device_serial, "%08X%08X", system_serial_high, + system_serial_low); +} + struct platform_device s3c_device_android_usb = { .name = "android_usb", .id = -1, diff --git a/arch/arm/plat-samsung/include/plat/devs.h b/arch/arm/plat-samsung/include/plat/devs.h index 2de07c4..9792624 100644 --- a/arch/arm/plat-samsung/include/plat/devs.h +++ b/arch/arm/plat-samsung/include/plat/devs.h @@ -176,4 +176,6 @@ extern struct platform_device s3c_device_ac97; extern void *s3c_set_platdata(void *pd, size_t pdsize, struct platform_device *pdev); +void __init s3c_usb_set_serial(void); + #endif /* __PLAT_DEVS_H */ |