Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 216837
b: refs/heads/master
c: 1f4640a
h: refs/heads/master
i:
  216835: 56cfa3a
v: v3
  • Loading branch information
Cyril Chemparathy authored and Kevin Hilman committed Sep 24, 2010
1 parent 4f26ca0 commit db9e866
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0fa6c773ad6e9ac6cfa6bad0a729e18babd602c3
refs/heads/master: 1f4640ae7c299ce87968cb3923c5f85254d68c37
20 changes: 20 additions & 0 deletions trunk/arch/arm/mach-davinci/devices-tnetv107x.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
#define TNETV107X_TPTC0_BASE 0x01c10000
#define TNETV107X_TPTC1_BASE 0x01c10400
#define TNETV107X_WDOG_BASE 0x08086700
#define TNETV107X_TSC_BASE 0x08088500
#define TNETV107X_SDIO0_BASE 0x08088700
#define TNETV107X_SDIO1_BASE 0x08088800
#define TNETV107X_KEYPAD_BASE 0x08088a00
Expand Down Expand Up @@ -323,12 +324,31 @@ static struct platform_device keypad_device = {
.resource = keypad_resources,
};

static struct resource tsc_resources[] = {
{
.start = TNETV107X_TSC_BASE,
.end = TNETV107X_TSC_BASE + 0xff,
.flags = IORESOURCE_MEM,
},
{
.start = IRQ_TNETV107X_TSC,
.flags = IORESOURCE_IRQ,
},
};

static struct platform_device tsc_device = {
.name = "tnetv107x-ts",
.num_resources = ARRAY_SIZE(tsc_resources),
.resource = tsc_resources,
};

void __init tnetv107x_devices_init(struct tnetv107x_device_info *info)
{
int i;

platform_device_register(&edma_device);
platform_device_register(&tnetv107x_wdt_device);
platform_device_register(&tsc_device);

if (info->serial_config)
davinci_serial_init(info->serial_config);
Expand Down

0 comments on commit db9e866

Please sign in to comment.