summaryrefslogtreecommitdiff
path: root/arch/arm/mach-mx27
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-mx27')
-rw-r--r--arch/arm/mach-mx27/mx27lite_gpio.c75
1 files changed, 0 insertions, 75 deletions
diff --git a/arch/arm/mach-mx27/mx27lite_gpio.c b/arch/arm/mach-mx27/mx27lite_gpio.c
index cc8a4857e99b..7b53df1870ec 100644
--- a/arch/arm/mach-mx27/mx27lite_gpio.c
+++ b/arch/arm/mach-mx27/mx27lite_gpio.c
@@ -730,7 +730,6 @@ void gpio_keypad_inactive(void)
*/
void gpio_ata_active(void)
{
- printk("\n\nATA active, don't think this is right\n\n");
gpio_request_mux(MX27_PIN_ATA_DATA0, GPIO_MUX_PRIMARY);
gpio_request_mux(MX27_PIN_ATA_DATA1, GPIO_MUX_PRIMARY);
gpio_request_mux(MX27_PIN_ATA_DATA2, GPIO_MUX_PRIMARY);
@@ -1168,44 +1167,10 @@ int sdhc_init_card_det(int id)
int gpio_pcmcia_active(void)
{
- printk("Setting all pcmcia pins \n\t0x%08x\n\t0x%08x\n\t0x%08x\n\t0x%08x"
- "\n\t0x%08x\n\t0x%08x\n\t0x%08x\n\t0x%08x\n\t0x%08x"
- "\n\t0x%08x\n\t0x%08x\n\t0x%08x\n\t0x%08x\n\t0x%08x\n",
- mxc_get_gpio_datain(MX27_PIN_PC_CD1_B),
- mxc_get_gpio_datain(MX27_PIN_PC_CD2_B),
- mxc_get_gpio_datain(MX27_PIN_PC_WAIT_B),
- mxc_get_gpio_datain(MX27_PIN_PC_READY),
- mxc_get_gpio_datain(MX27_PIN_PC_PWRON),
- mxc_get_gpio_datain(MX27_PIN_PC_VS1),
- mxc_get_gpio_datain(MX27_PIN_PC_VS1),
- mxc_get_gpio_datain(MX27_PIN_PC_VS2),
- mxc_get_gpio_datain(MX27_PIN_PC_BVD1),
- mxc_get_gpio_datain(MX27_PIN_PC_BVD2),
- mxc_get_gpio_datain(MX27_PIN_PC_RST),
- mxc_get_gpio_datain(MX27_PIN_IOIS16),
- mxc_get_gpio_datain(MX27_PIN_PC_RW_B),
- mxc_get_gpio_datain(MX27_PIN_PC_POE));
-
- printk("OUTPUT values 0x%08x, 0x%08x, 0x%08x, 0x%08x\n",
- mxc_get_gpio_datain(MX27_PIN_TOUT),
- mxc_get_gpio_datain(MX27_PIN_TIN),
- mxc_get_gpio_datain(MX27_PIN_SSI4_FS),
- mxc_get_gpio_datain(MX27_PIN_SSI4_RXDAT) );
gpio_request_mux(MX27_PIN_SSI4_FS,GPIO_MUX_GPIO);
gpio_request_mux(MX27_PIN_SSI4_RXDAT,GPIO_MUX_GPIO);
mxc_set_gpio_direction( MX27_PIN_SSI4_FS, 0 );
mxc_set_gpio_direction( MX27_PIN_SSI4_RXDAT, 0 );
- printk("OUTPUT values 0x%08x, 0x%08x, 0x%08x, 0x%08x\n",
- mxc_get_gpio_datain(MX27_PIN_TOUT),
- mxc_get_gpio_datain(MX27_PIN_TIN),
- mxc_get_gpio_datain(MX27_PIN_SSI4_FS),
- mxc_get_gpio_datain(MX27_PIN_SSI4_RXDAT) );
-
- printk("OUTPUT values 0x%08x, 0x%08x, 0x%08x, 0x%08x\n",
- mxc_get_gpio_datain(MX27_PIN_SSI3_FS),
- mxc_get_gpio_datain(MX27_PIN_SSI3_RXDAT),
- mxc_get_gpio_datain(MX27_PIN_SSI3_TXDAT),
- mxc_get_gpio_datain(MX27_PIN_SSI3_CLK) );
gpio_request_mux( MX27_PIN_SSI3_FS, GPIO_MUX_OUTPUT1);
gpio_request_mux( MX27_PIN_SSI3_RXDAT, GPIO_MUX_OUTPUT1);
gpio_request_mux( MX27_PIN_SSI3_TXDAT, GPIO_MUX_OUTPUT1);
@@ -1218,46 +1183,6 @@ int gpio_pcmcia_active(void)
mxc_set_gpio_dataout( MX27_PIN_SSI3_RXDAT, 1);
mxc_set_gpio_dataout( MX27_PIN_SSI3_TXDAT, 1);
mxc_set_gpio_dataout( MX27_PIN_SSI3_CLK, 1);
- printk("OUTPUT values 0x%08x, 0x%08x, 0x%08x, 0x%08x\n",
- mxc_get_gpio_datain(MX27_PIN_SSI3_FS),
- mxc_get_gpio_datain(MX27_PIN_SSI3_RXDAT),
- mxc_get_gpio_datain(MX27_PIN_SSI3_TXDAT),
- mxc_get_gpio_datain(MX27_PIN_SSI3_CLK) );
-
- if (
- gpio_request_mux(MX27_PIN_PC_CD1_B, GPIO_MUX_PRIMARY) ||
- gpio_request_mux(MX27_PIN_PC_CD2_B, GPIO_MUX_PRIMARY) ||
- gpio_request_mux(MX27_PIN_PC_WAIT_B, GPIO_MUX_PRIMARY) ||
- gpio_request_mux(MX27_PIN_PC_READY, GPIO_MUX_PRIMARY) ||
- gpio_request_mux(MX27_PIN_PC_PWRON, GPIO_MUX_PRIMARY) ||
- gpio_request_mux(MX27_PIN_PC_VS1, GPIO_MUX_PRIMARY) ||
- gpio_request_mux(MX27_PIN_PC_VS2, GPIO_MUX_PRIMARY) ||
- gpio_request_mux(MX27_PIN_PC_BVD1, GPIO_MUX_PRIMARY) ||
- gpio_request_mux(MX27_PIN_PC_BVD2, GPIO_MUX_PRIMARY) ||
- gpio_request_mux(MX27_PIN_PC_RST, GPIO_MUX_PRIMARY) ||
- gpio_request_mux(MX27_PIN_IOIS16, GPIO_MUX_PRIMARY) ||
- gpio_request_mux(MX27_PIN_PC_RW_B, GPIO_MUX_PRIMARY) ||
- gpio_request_mux(MX27_PIN_PC_POE, GPIO_MUX_PRIMARY)
- )
- return -EINVAL;
- printk("Setting all pcmcia pins \n\t0x%08x\n\t0x%08x\n\t0x%08x\n\t0x%08x"
- "\n\t0x%08x\n\t0x%08x\n\t0x%08x\n\t0x%08x\n\t0x%08x"
- "\n\t0x%08x\n\t0x%08x\n\t0x%08x\n\t0x%08x\n\t0x%08x\n",
- mxc_get_gpio_datain(MX27_PIN_PC_CD1_B),
- mxc_get_gpio_datain(MX27_PIN_PC_CD2_B),
- mxc_get_gpio_datain(MX27_PIN_PC_WAIT_B),
- mxc_get_gpio_datain(MX27_PIN_PC_READY),
- mxc_get_gpio_datain(MX27_PIN_PC_PWRON),
- mxc_get_gpio_datain(MX27_PIN_PC_VS1),
- mxc_get_gpio_datain(MX27_PIN_PC_VS1),
- mxc_get_gpio_datain(MX27_PIN_PC_VS2),
- mxc_get_gpio_datain(MX27_PIN_PC_BVD1),
- mxc_get_gpio_datain(MX27_PIN_PC_BVD2),
- mxc_get_gpio_datain(MX27_PIN_PC_RST),
- mxc_get_gpio_datain(MX27_PIN_IOIS16),
- mxc_get_gpio_datain(MX27_PIN_PC_RW_B),
- mxc_get_gpio_datain(MX27_PIN_PC_POE));
-
return 0;
}