From a1b52cab73f9ae76d2a9db03e92353c44de15cf1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=E8=94=A1=E6=9E=AB?= Date: Fri, 22 Jul 2011 14:55:44 +0800 Subject: [PATCH] newton:remove flash usb mass storage --- arch/arm/mach-rk29/board-rk29-newton.c | 32 +++++++++++++++++++------- 1 file changed, 24 insertions(+), 8 deletions(-) diff --git a/arch/arm/mach-rk29/board-rk29-newton.c b/arch/arm/mach-rk29/board-rk29-newton.c index a35b29486fed..1e3714d1d9cf 100755 --- a/arch/arm/mach-rk29/board-rk29-newton.c +++ b/arch/arm/mach-rk29/board-rk29-newton.c @@ -516,8 +516,8 @@ static int cir_iomux_init(void) { if (CIR_IRQ_PIN_IOMUX_NAME) rk29_mux_api_set(CIR_IRQ_PIN_IOMUX_NAME, CIR_IRQ_PIN_IOMUX_VALUE); - rk29_mux_api_set(GPIO5A7_HSADCDATA2_NAME, GPIO5L_GPIO5A7); + return 0; } static struct bu92747guw_platform_data bu92747guw_pdata = { @@ -564,12 +564,11 @@ int ft5406_init_platform_hw(void) return 0; } -int ft5406_exit_platform_hw(void) +void ft5406_exit_platform_hw(void) { printk("ft5406_exit_platform_hw\n"); gpio_free(TOUCH_RESET_PIN); gpio_free(TOUCH_INT_PIN); - return 0; } int ft5406_platform_sleep(void) @@ -628,12 +627,11 @@ int gt819_init_platform_hw(void) } -int gt819_exit_platform_hw(void) +void gt819_exit_platform_hw(void) { printk("gt819_exit_platform_hw\n"); gpio_free(TOUCH_RESET_PIN); gpio_free(TOUCH_INT_PIN); - return 0; } int gt819_platform_sleep(void) @@ -666,16 +664,17 @@ struct goodix_platform_data goodix_info = { #if defined (CONFIG_SND_SOC_CS42L52) -void cs42l52_init_platform_hw() +int cs42l52_init_platform_hw() { printk("cs42l52_init_platform_hw\n"); if(gpio_request(RK29_PIN6_PB6,NULL) != 0){ gpio_free(RK29_PIN6_PB6); printk("cs42l52_init_platform_hw gpio_request error\n"); - return; + return -EIO; } gpio_direction_output(RK29_PIN6_PB6, 0); gpio_set_value(RK29_PIN6_PB6,GPIO_HIGH); + return 0; } struct cs42l52_platform_data cs42l52_info = { @@ -1716,6 +1715,23 @@ struct platform_device rk29_device_gpio_leds = { }, }; #endif +#ifdef CONFIG_USB_ANDROID +struct usb_mass_storage_platform_data newton_mass_storage_pdata = { + .nluns = 1, + .vendor = "RockChip", + .product = "rk29 sdk", + .release = 0x0100, +}; + +//static +struct platform_device newton_usb_mass_storage_device = { + .name = "usb_mass_storage", + .id = -1, + .dev = { + .platform_data = &newton_mass_storage_pdata, + }, +}; +#endif static void __init rk29_board_iomux_init(void) { @@ -1840,7 +1856,7 @@ static struct platform_device *devices[] __initdata = { #endif #ifdef CONFIG_USB_ANDROID &android_usb_device, - &usb_mass_storage_device, + &newton_usb_mass_storage_device, #endif #ifdef CONFIG_RK29_IPP &rk29_device_ipp, -- 2.34.1