Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 87287
b: refs/heads/master
c: 0cc0a44
h: refs/heads/master
i:
  87285: bfb17c0
  87283: 4ce606d
  87279: 746416e
v: v3
  • Loading branch information
David Brownell authored and Tony Lindgren committed Mar 5, 2008
1 parent 79e14ed commit 8cb100a
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 2 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: 9be401a2aee69a63c88a0b91d73d3a8db091abda
refs/heads/master: 0cc0a441163b92fbda5fe1886cb6e9876cf08f40
22 changes: 22 additions & 0 deletions trunk/arch/arm/mach-omap1/board-h3.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#include <linux/mtd/nand.h>
#include <linux/mtd/partitions.h>
#include <linux/input.h>
#include <linux/spi/spi.h>
#include <linux/i2c/tps65010.h>

#include <asm/setup.h>
Expand All @@ -51,6 +52,8 @@
#include <asm/arch/mcbsp.h>
#include <asm/arch/omap-alsa.h>

#define H3_TS_GPIO 48

static int h3_keymap[] = {
KEY(0, 0, KEY_LEFT),
KEY(0, 1, KEY_RIGHT),
Expand Down Expand Up @@ -373,6 +376,17 @@ static struct platform_device h3_lcd_device = {
.id = -1,
};

static struct spi_board_info h3_spi_board_info[] __initdata = {
[0] = {
.modalias = "tsc2101",
.bus_num = 2,
.chip_select = 0,
.irq = OMAP_GPIO_IRQ(H3_TS_GPIO),
.max_speed_hz = 16000000,
/* .platform_data = &tsc_platform_data, */
},
};

static struct omap_mcbsp_reg_cfg mcbsp_regs = {
.spcr2 = FREE | FRST | GRST | XRST | XINTM(3),
.spcr1 = RINTM(3) | RRST,
Expand Down Expand Up @@ -457,6 +471,14 @@ static struct omap_board_config_kernel h3_config[] __initdata = {
{ OMAP_TAG_LCD, &h3_lcd_config },
};

static struct i2c_board_info __initdata h3_i2c_board_info[] = {
{
I2C_BOARD_INFO("tps65010", 0x48),
.type = "tps65013",
/* .irq = OMAP_GPIO_IRQ(??), */
},
};

static struct omap_gpio_switch h3_gpio_switches[] __initdata = {
{
.name = "mmc_slot",
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/asm-arm/arch-omap/board-h3.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

#define NR_IRQS (MAXIRQNUM + 1)

extern void __init h3_mmc_init(void);
extern void h3_mmc_init(void);
extern void h3_mmc_slot_cover_handler(void *arg, int state);

#endif /* __ASM_ARCH_OMAP_H3_H */

0 comments on commit 8cb100a

Please sign in to comment.