Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 212545
b: refs/heads/master
c: 54dc3f4
h: refs/heads/master
i:
  212543: a929442
v: v3
  • Loading branch information
Eric Bénard authored and Sascha Hauer committed Oct 4, 2010
1 parent 3ca6d26 commit 1100cc9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 28 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: bd9e310dca15c9987256f67af19f9f42426e7493
refs/heads/master: 54dc3f4674fbaf362d6e969904bfcece3cfebef1
32 changes: 5 additions & 27 deletions trunk/arch/arm/mach-mx3/mach-cpuimx35.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
#include <linux/usb/otg.h>
#include <linux/usb/ulpi.h>
#include <linux/fsl_devices.h>
#include <linux/i2c-gpio.h>

#include <asm/mach-types.h>
#include <asm/mach/arch.h>
Expand All @@ -53,39 +54,16 @@ static const struct imxuart_platform_data uart_pdata __initconst = {
};

static const struct imxi2c_platform_data
eukrea_cpuimx35_i2c0_data __initconst = {
.bitrate = 50000,
eukrea_cpuimx35_i2c0_data __initconst = {
.bitrate = 100000,
};

#define TSC2007_IRQGPIO (2 * 32 + 2)
static int ts_get_pendown_state(void)
{
int val = 0;
gpio_free(TSC2007_IRQGPIO);
gpio_request(TSC2007_IRQGPIO, NULL);
gpio_direction_input(TSC2007_IRQGPIO);

val = gpio_get_value(TSC2007_IRQGPIO);

gpio_free(TSC2007_IRQGPIO);
gpio_request(TSC2007_IRQGPIO, NULL);

return val ? 0 : 1;
}

static int ts_init(void)
{
gpio_request(TSC2007_IRQGPIO, NULL);
return 0;
}

static struct tsc2007_platform_data tsc2007_info = {
.model = 2007,
.x_plate_ohms = 180,
.get_pendown_state = ts_get_pendown_state,
.init_platform_hw = ts_init,
};

#define TSC2007_IRQGPIO (2 * 32 + 2)
static struct i2c_board_info eukrea_cpuimx35_i2c_devices[] = {
{
I2C_BOARD_INFO("pcf8563", 0x51),
Expand Down Expand Up @@ -135,7 +113,7 @@ static struct pad_desc eukrea_cpuimx35_pads[] = {
};

static const struct mxc_nand_platform_data
eukrea_cpuimx35_nand_board_info __initconst = {
eukrea_cpuimx35_nand_board_info __initconst = {
.width = 1,
.hw_ecc = 1,
.flash_bbt = 1,
Expand Down

0 comments on commit 1100cc9

Please sign in to comment.