rk30: sdk: add power on support
author张晴 <zhangqing@rock-chips.com>
Sat, 24 Mar 2012 08:09:30 +0000 (16:09 +0800)
committer张晴 <zhangqing@rock-chips.com>
Sat, 24 Mar 2012 12:59:39 +0000 (20:59 +0800)
arch/arm/mach-rk30/board-rk30-sdk.c

index 7f199a04b8c8fd2761a9688b50b3debb7258a691..eca2d79c027829258c86371e281ef35996c26135 100755 (executable)
@@ -854,7 +854,7 @@ static struct i2c_board_info __initdata i2c1_info[] = {
 #if defined (CONFIG_MFD_WM831X_I2C)
        {
                .type          = "wm8326",
-               .addr          = 0x36,    //0x34    ,is Decided by cs
+               .addr          = 0x34,
                .flags         = 0,
                .irq           = RK30_PIN6_PA4,
                .platform_data = &wm831x_platdata,
@@ -1075,8 +1075,13 @@ struct rk29_sdmmc_platform_data default_sdmmc1_data = {
  * the end of setting for SDMMC devices
 **************************************************************************************************/
 
+#define POWER_ON_PIN RK30_PIN6_PB0   //power_hold
+
 static void __init machine_rk30_board_init(void)
 {
+       gpio_request(POWER_ON_PIN, "poweronpin");
+       gpio_direction_output(POWER_ON_PIN, GPIO_HIGH); 
+
        rk30_i2c_register_board_info();
        spi_register_board_info(board_spi_devices, ARRAY_SIZE(board_spi_devices));
        platform_add_devices(devices, ARRAY_SIZE(devices));