Skip to content

Commit

Permalink
S5PC11X: NFC: Add firmware GPIO configuration
Browse files Browse the repository at this point in the history
Change-Id: Ibafa9499d447de4cd6d11be833803bdc3acc8d14
Signed-off-by: Nick Pelly <npelly@google.com>
  • Loading branch information
Nick Pelly authored and swetland committed Nov 15, 2010
1 parent 99487b9 commit 5adbc29
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions arch/arm/mach-s5pv210/include/mach/gpio-herring.h
Expand Up @@ -548,6 +548,7 @@
#define NFC_SDA_18V S5PV210_MP04(5)
#define NFC_IRQ S5PV210_GPH1(4)
#define NFC_EN S5PV210_GPH1(5)
#define NFC_FIRM S5PV210_GPH1(6)

#define PMIC_I2C_SDA S5PV210_GPJ4(0)
#define PMIC_I2C_SCL S5PV210_GPJ4(3)
Expand Down
10 changes: 6 additions & 4 deletions arch/arm/mach-s5pv210/mach-herring.c
Expand Up @@ -2116,6 +2116,8 @@ static struct i2c_board_info i2c_devs6[] __initdata = {

static struct pn544_i2c_platform_data pn544_pdata = {
.irq_gpio = NFC_IRQ,
.ven_gpio = NFC_EN,
.firm_gpio = NFC_FIRM,
};

static struct i2c_board_info i2c_devs14[] __initdata = {
Expand Down Expand Up @@ -2900,11 +2902,11 @@ static struct gpio_init_data herring_init_gpios[] = {
.val = S3C_GPIO_SETPIN_ONE,
.pud = S3C_GPIO_PULL_NONE,
.drv = S3C_GPIO_DRVSTR_1X,
}, {
}, { /* NFC_FIRM */
.num = S5PV210_GPH1(6),
.cfg = S3C_GPIO_INPUT,
.val = S3C_GPIO_SETPIN_NONE,
.pud = S3C_GPIO_PULL_DOWN,
.cfg = S3C_GPIO_OUTPUT,
.val = S3C_GPIO_SETPIN_ZERO,
.pud = S3C_GPIO_PULL_NONE,
.drv = S3C_GPIO_DRVSTR_1X,
}, {
.num = S5PV210_GPH1(7),
Expand Down

0 comments on commit 5adbc29

Please sign in to comment.