Commit 9fa264d0 authored by Russell King's avatar Russell King Committed by Russell King
parents 0882e8dd 6845a658
...@@ -28,7 +28,6 @@ ...@@ -28,7 +28,6 @@
#include <linux/spi/libertas_spi.h> #include <linux/spi/libertas_spi.h>
#include <linux/power_supply.h> #include <linux/power_supply.h>
#include <linux/apm-emulation.h> #include <linux/apm-emulation.h>
#include <linux/delay.h>
#include <media/soc_camera.h> #include <media/soc_camera.h>
...@@ -644,8 +643,9 @@ static struct pxa2xx_spi_master em_x270_spi_info = { ...@@ -644,8 +643,9 @@ static struct pxa2xx_spi_master em_x270_spi_info = {
}; };
static struct pxa2xx_spi_chip em_x270_tdo24m_chip = { static struct pxa2xx_spi_chip em_x270_tdo24m_chip = {
.rx_threshold = 1, .rx_threshold = 1,
.tx_threshold = 1, .tx_threshold = 1,
.gpio_cs = -1,
}; };
static struct tdo24m_platform_data em_x270_tdo24m_pdata = { static struct tdo24m_platform_data em_x270_tdo24m_pdata = {
......
...@@ -15,6 +15,9 @@ extern struct sys_timer pxa_timer; ...@@ -15,6 +15,9 @@ extern struct sys_timer pxa_timer;
extern void __init pxa_init_irq(int irq_nr, extern void __init pxa_init_irq(int irq_nr,
int (*set_wake)(unsigned int, unsigned int)); int (*set_wake)(unsigned int, unsigned int));
extern void __init pxa25x_init_irq(void); extern void __init pxa25x_init_irq(void);
#ifdef CONFIG_CPU_PXA26x
extern void __init pxa26x_init_irq(void);
#endif
extern void __init pxa27x_init_irq(void); extern void __init pxa27x_init_irq(void);
extern void __init pxa3xx_init_irq(void); extern void __init pxa3xx_init_irq(void);
extern void __init pxa_map_io(void); extern void __init pxa_map_io(void);
......
...@@ -10,13 +10,13 @@ ...@@ -10,13 +10,13 @@
#if defined(CONFIG_MMC_PXA) || defined(CONFIG_MMC_PXA_MODULE) #if defined(CONFIG_MMC_PXA) || defined(CONFIG_MMC_PXA_MODULE)
extern void colibri_pxa3xx_init_mmc(mfp_cfg_t *pins, int len, int detect_pin); extern void colibri_pxa3xx_init_mmc(mfp_cfg_t *pins, int len, int detect_pin);
#else #else
static inline void colibri_pxa3xx_init_mmc(mfp_cfg_t *, int, int) {} static inline void colibri_pxa3xx_init_mmc(mfp_cfg_t *pins, int len, int detect_pin) {}
#endif #endif
#if defined(CONFIG_FB_PXA) || defined(CONFIG_FB_PXA_MODULE) #if defined(CONFIG_FB_PXA) || defined(CONFIG_FB_PXA_MODULE)
extern void colibri_pxa3xx_init_lcd(int bl_pin); extern void colibri_pxa3xx_init_lcd(int bl_pin);
#else #else
static inline void colibri_pxa3xx_init_lcd(int) {} static inline void colibri_pxa3xx_init_lcd(int bl_pin) {}
#endif #endif
#if defined(CONFIG_AX88796) #if defined(CONFIG_AX88796)
......
...@@ -37,7 +37,6 @@ ...@@ -37,7 +37,6 @@
/* USB */ /* USB */
#define GPIO_NR_PALMT5_USB_DETECT_N 15 #define GPIO_NR_PALMT5_USB_DETECT_N 15
#define GPIO_NR_PALMT5_USB_POWER 95
#define GPIO_NR_PALMT5_USB_PULLUP 93 #define GPIO_NR_PALMT5_USB_PULLUP 93
/* LCD/BACKLIGHT */ /* LCD/BACKLIGHT */
......
...@@ -38,7 +38,6 @@ ...@@ -38,7 +38,6 @@
/* USB */ /* USB */
#define GPIO_NR_PALMTX_USB_DETECT_N 13 #define GPIO_NR_PALMTX_USB_DETECT_N 13
#define GPIO_NR_PALMTX_USB_POWER 95
#define GPIO_NR_PALMTX_USB_PULLUP 93 #define GPIO_NR_PALMTX_USB_PULLUP 93
/* LCD/BACKLIGHT */ /* LCD/BACKLIGHT */
......
...@@ -64,6 +64,7 @@ static unsigned long palmt5_pin_config[] __initdata = { ...@@ -64,6 +64,7 @@ static unsigned long palmt5_pin_config[] __initdata = {
GPIO29_AC97_SDATA_IN_0, GPIO29_AC97_SDATA_IN_0,
GPIO30_AC97_SDATA_OUT, GPIO30_AC97_SDATA_OUT,
GPIO31_AC97_SYNC, GPIO31_AC97_SYNC,
GPIO95_AC97_nRESET,
/* IrDA */ /* IrDA */
GPIO40_GPIO, /* ir disable */ GPIO40_GPIO, /* ir disable */
...@@ -72,7 +73,7 @@ static unsigned long palmt5_pin_config[] __initdata = { ...@@ -72,7 +73,7 @@ static unsigned long palmt5_pin_config[] __initdata = {
/* USB */ /* USB */
GPIO15_GPIO, /* usb detect */ GPIO15_GPIO, /* usb detect */
GPIO95_GPIO, /* usb power */ GPIO93_GPIO, /* usb power */
/* MATRIX KEYPAD */ /* MATRIX KEYPAD */
GPIO100_KP_MKIN_0 | WAKEUP_ON_LEVEL_HIGH, GPIO100_KP_MKIN_0 | WAKEUP_ON_LEVEL_HIGH,
...@@ -344,7 +345,7 @@ static struct pxaficp_platform_data palmt5_ficp_platform_data = { ...@@ -344,7 +345,7 @@ static struct pxaficp_platform_data palmt5_ficp_platform_data = {
static struct pxa2xx_udc_mach_info palmt5_udc_info __initdata = { static struct pxa2xx_udc_mach_info palmt5_udc_info __initdata = {
.gpio_vbus = GPIO_NR_PALMT5_USB_DETECT_N, .gpio_vbus = GPIO_NR_PALMT5_USB_DETECT_N,
.gpio_vbus_inverted = 1, .gpio_vbus_inverted = 1,
.gpio_pullup = GPIO_NR_PALMT5_USB_POWER, .gpio_pullup = GPIO_NR_PALMT5_USB_PULLUP,
.gpio_pullup_inverted = 0, .gpio_pullup_inverted = 0,
}; };
...@@ -490,9 +491,9 @@ static struct platform_device *devices[] __initdata = { ...@@ -490,9 +491,9 @@ static struct platform_device *devices[] __initdata = {
/* setup udc GPIOs initial state */ /* setup udc GPIOs initial state */
static void __init palmt5_udc_init(void) static void __init palmt5_udc_init(void)
{ {
if (!gpio_request(GPIO_NR_PALMT5_USB_POWER, "UDC Vbus")) { if (!gpio_request(GPIO_NR_PALMT5_USB_PULLUP, "UDC Vbus")) {
gpio_direction_output(GPIO_NR_PALMT5_USB_POWER, 1); gpio_direction_output(GPIO_NR_PALMT5_USB_PULLUP, 1);
gpio_free(GPIO_NR_PALMT5_USB_POWER); gpio_free(GPIO_NR_PALMT5_USB_PULLUP);
} }
} }
......
...@@ -64,6 +64,7 @@ static unsigned long palmtx_pin_config[] __initdata = { ...@@ -64,6 +64,7 @@ static unsigned long palmtx_pin_config[] __initdata = {
GPIO29_AC97_SDATA_IN_0, GPIO29_AC97_SDATA_IN_0,
GPIO30_AC97_SDATA_OUT, GPIO30_AC97_SDATA_OUT,
GPIO31_AC97_SYNC, GPIO31_AC97_SYNC,
GPIO95_AC97_nRESET,
/* IrDA */ /* IrDA */
GPIO40_GPIO, /* ir disable */ GPIO40_GPIO, /* ir disable */
...@@ -75,7 +76,7 @@ static unsigned long palmtx_pin_config[] __initdata = { ...@@ -75,7 +76,7 @@ static unsigned long palmtx_pin_config[] __initdata = {
/* USB */ /* USB */
GPIO13_GPIO, /* usb detect */ GPIO13_GPIO, /* usb detect */
GPIO95_GPIO, /* usb power */ GPIO93_GPIO, /* usb power */
/* PCMCIA */ /* PCMCIA */
GPIO48_nPOE, GPIO48_nPOE,
...@@ -359,7 +360,7 @@ static struct pxaficp_platform_data palmtx_ficp_platform_data = { ...@@ -359,7 +360,7 @@ static struct pxaficp_platform_data palmtx_ficp_platform_data = {
static struct pxa2xx_udc_mach_info palmtx_udc_info __initdata = { static struct pxa2xx_udc_mach_info palmtx_udc_info __initdata = {
.gpio_vbus = GPIO_NR_PALMTX_USB_DETECT_N, .gpio_vbus = GPIO_NR_PALMTX_USB_DETECT_N,
.gpio_vbus_inverted = 1, .gpio_vbus_inverted = 1,
.gpio_pullup = GPIO_NR_PALMTX_USB_POWER, .gpio_pullup = GPIO_NR_PALMTX_USB_PULLUP,
.gpio_pullup_inverted = 0, .gpio_pullup_inverted = 0,
}; };
...@@ -514,9 +515,9 @@ static void __init palmtx_map_io(void) ...@@ -514,9 +515,9 @@ static void __init palmtx_map_io(void)
/* setup udc GPIOs initial state */ /* setup udc GPIOs initial state */
static void __init palmtx_udc_init(void) static void __init palmtx_udc_init(void)
{ {
if (!gpio_request(GPIO_NR_PALMTX_USB_POWER, "UDC Vbus")) { if (!gpio_request(GPIO_NR_PALMTX_USB_PULLUP, "UDC Vbus")) {
gpio_direction_output(GPIO_NR_PALMTX_USB_POWER, 1); gpio_direction_output(GPIO_NR_PALMTX_USB_PULLUP, 1);
gpio_free(GPIO_NR_PALMTX_USB_POWER); gpio_free(GPIO_NR_PALMTX_USB_PULLUP);
} }
} }
......
...@@ -195,7 +195,7 @@ static void cs_deassert(struct driver_data *drv_data) ...@@ -195,7 +195,7 @@ static void cs_deassert(struct driver_data *drv_data)
struct chip_data *chip = drv_data->cur_chip; struct chip_data *chip = drv_data->cur_chip;
if (chip->cs_control) { if (chip->cs_control) {
chip->cs_control(PXA2XX_CS_ASSERT); chip->cs_control(PXA2XX_CS_DEASSERT);
return; return;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment