Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 252137
b: refs/heads/master
c: 10299e2
h: refs/heads/master
i:
  252135: 250f7e7
v: v3
  • Loading branch information
Kalle Jokiniemi authored and Anton Vorontsov committed Apr 20, 2011
1 parent 099aad6 commit 61e277d
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2785cefc98051646bd1d36a627822a3f43736697
refs/heads/master: 10299e2e4e3ed3b16503d4e04edd48b33083f4e2
27 changes: 25 additions & 2 deletions trunk/arch/arm/mach-omap2/board-rx51-peripherals.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include <linux/gpio.h>
#include <linux/gpio_keys.h>
#include <linux/mmc/host.h>
#include <linux/power/isp1704_charger.h>

#include <plat/mcspi.h>
#include <plat/board.h>
Expand Down Expand Up @@ -52,6 +53,8 @@
#define RX51_FMTX_RESET_GPIO 163
#define RX51_FMTX_IRQ 53

#define RX51_USB_TRANSCEIVER_RST_GPIO 67

/* list all spi devices here */
enum {
RX51_SPI_WL1251,
Expand Down Expand Up @@ -110,10 +113,30 @@ static struct spi_board_info rx51_peripherals_spi_board_info[] __initdata = {
},
};

static void rx51_charger_set_power(bool on)
{
gpio_set_value(RX51_USB_TRANSCEIVER_RST_GPIO, on);
}

static struct isp1704_charger_data rx51_charger_data = {
.set_power = rx51_charger_set_power,
};

static struct platform_device rx51_charger_device = {
.name = "isp1704_charger",
.name = "isp1704_charger",
.dev = {
.platform_data = &rx51_charger_data,
},
};

static void __init rx51_charger_init(void)
{
WARN_ON(gpio_request_one(RX51_USB_TRANSCEIVER_RST_GPIO,
GPIOF_OUT_INIT_LOW, "isp1704_reset"));

platform_device_register(&rx51_charger_device);
}

#if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE)

#define RX51_GPIO_CAMERA_LENS_COVER 110
Expand Down Expand Up @@ -981,6 +1004,6 @@ void __init rx51_peripherals_init(void)
if (partition)
omap2_hsmmc_init(mmc);

platform_device_register(&rx51_charger_device);
rx51_charger_init();
}

0 comments on commit 61e277d

Please sign in to comment.