Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 284580
b: refs/heads/master
c: 1cda239
h: refs/heads/master
v: v3
  • Loading branch information
Viresh Kumar authored and Samuel Ortiz committed Jan 8, 2012
1 parent 9a7ad7a commit 728620e
Show file tree
Hide file tree
Showing 5 changed files with 22 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: e789995d5c612ecda83a9feb53fb2e42a51f685b
refs/heads/master: 1cda2394e95415f1469ab8eaffd081395e112551
1 change: 1 addition & 0 deletions trunk/drivers/mfd/stmpe-i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ static int __devexit stmpe_i2c_remove(struct i2c_client *i2c)
}

static const struct i2c_device_id stmpe_i2c_id[] = {
{ "stmpe610", STMPE610 },
{ "stmpe811", STMPE811 },
{ "stmpe1601", STMPE1601 },
{ "stmpe2401", STMPE2401 },
Expand Down
1 change: 1 addition & 0 deletions trunk/drivers/mfd/stmpe-spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ static int __devexit stmpe_spi_remove(struct spi_device *spi)
}

static const struct spi_device_id stmpe_spi_id[] = {
{ "stmpe610", STMPE610 },
{ "stmpe811", STMPE811 },
{ "stmpe1601", STMPE1601 },
{ "stmpe2401", STMPE2401 },
Expand Down
20 changes: 18 additions & 2 deletions trunk/drivers/mfd/stmpe.c
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ static struct mfd_cell stmpe_keypad_cell = {
};

/*
* Touchscreen (STMPE811)
* Touchscreen (STMPE811 or STMPE610)
*/

static struct resource stmpe_ts_resources[] = {
Expand All @@ -346,7 +346,7 @@ static struct mfd_cell stmpe_ts_cell = {
};

/*
* STMPE811
* STMPE811 or STMPE610
*/

static const u8 stmpe811_regs[] = {
Expand Down Expand Up @@ -417,6 +417,21 @@ static struct stmpe_variant_info stmpe811 = {
.get_altfunc = stmpe811_get_altfunc,
};

/* Similar to 811, except number of gpios */
static struct stmpe_variant_info stmpe610 = {
.name = "stmpe610",
.id_val = 0x0811,
.id_mask = 0xffff,
.num_gpios = 6,
.af_bits = 1,
.regs = stmpe811_regs,
.blocks = stmpe811_blocks,
.num_blocks = ARRAY_SIZE(stmpe811_blocks),
.num_irqs = STMPE811_NR_INTERNAL_IRQS,
.enable = stmpe811_enable,
.get_altfunc = stmpe811_get_altfunc,
};

/*
* STMPE1601
*/
Expand Down Expand Up @@ -651,6 +666,7 @@ static struct stmpe_variant_info stmpe2403 = {
};

static struct stmpe_variant_info *stmpe_variant_info[] = {
[STMPE610] = &stmpe610,
[STMPE811] = &stmpe811,
[STMPE1601] = &stmpe1601,
[STMPE2401] = &stmpe2401,
Expand Down
1 change: 1 addition & 0 deletions trunk/include/linux/mfd/stmpe.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ enum stmpe_block {
};

enum stmpe_partnum {
STMPE610,
STMPE811,
STMPE1601,
STMPE2401,
Expand Down

0 comments on commit 728620e

Please sign in to comment.