From c737cfbbb47e1e4a61f8e4d164026b91cfe7517a Mon Sep 17 00:00:00 2001 From: phc Date: Tue, 16 Aug 2011 14:26:28 +0800 Subject: [PATCH] RK29SmartPhone:USB masstorage about phone, modify in its own board config file --- arch/arm/mach-rk29/board-rk29-phonesdk.c | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-rk29/board-rk29-phonesdk.c b/arch/arm/mach-rk29/board-rk29-phonesdk.c index b42455deaa8a..385babcd2ceb 100755 --- a/arch/arm/mach-rk29/board-rk29-phonesdk.c +++ b/arch/arm/mach-rk29/board-rk29-phonesdk.c @@ -2586,6 +2586,26 @@ static void __init rk29_board_iomux_init(void) } +// For phone,just a disk only, add by phc,20110816 +#ifdef CONFIG_USB_ANDROID +struct usb_mass_storage_platform_data phone_mass_storage_pdata = { + .nluns = 1, + .vendor = "RockChip", + .product = "rk29 sdk", + .release = 0x0100, +}; + +//static +struct platform_device phone_usb_mass_storage_device = { + .name = "usb_mass_storage", + .id = -1, + .dev = { + .platform_data = &phone_mass_storage_pdata, + }, +}; +#endif + + static struct platform_device *devices[] __initdata = { #ifdef CONFIG_RK29_WATCHDOG @@ -2704,7 +2724,7 @@ static struct platform_device *devices[] __initdata = { #endif #ifdef CONFIG_USB_ANDROID &android_usb_device, - &usb_mass_storage_device, + &phone_usb_mass_storage_device, #endif #ifdef CONFIG_RK29_IPP &rk29_device_ipp, -- 2.34.1