Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 11929
b: refs/heads/master
c: ca1140b
h: refs/heads/master
i:
  11927: d0b0bee
v: v3
  • Loading branch information
Richard Purdie authored and Russell King committed Oct 30, 2005
1 parent a7cbe91 commit 66d1180
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: 8e4b8715d815a29b4f0655e698a0c5f8d05b6dc9
refs/heads/master: ca1140b57d0a203f3db848ba5f63609a8ccd92b6
20 changes: 20 additions & 0 deletions trunk/arch/arm/mach-pxa/corgi.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@

#include <asm/arch/pxa-regs.h>
#include <asm/arch/irq.h>
#include <asm/arch/irda.h>
#include <asm/arch/mmc.h>
#include <asm/arch/udc.h>
#include <asm/arch/corgi.h>
Expand Down Expand Up @@ -224,6 +225,22 @@ static struct pxamci_platform_data corgi_mci_platform_data = {
};


/*
* Irda
*/
static void corgi_irda_transceiver_mode(struct device *dev, int mode)
{
if (mode & IR_OFF)
GPSR(CORGI_GPIO_IR_ON) = GPIO_bit(CORGI_GPIO_IR_ON);
else
GPCR(CORGI_GPIO_IR_ON) = GPIO_bit(CORGI_GPIO_IR_ON);
}

static struct pxaficp_platform_data corgi_ficp_platform_data = {
.transceiver_cap = IR_SIRMODE | IR_OFF,
.transceiver_mode = corgi_irda_transceiver_mode,
};


/*
* USB Device Controller
Expand Down Expand Up @@ -269,10 +286,13 @@ static void __init corgi_init(void)

corgi_ssp_set_machinfo(&corgi_ssp_machinfo);

pxa_gpio_mode(CORGI_GPIO_IR_ON | GPIO_OUT);
pxa_gpio_mode(CORGI_GPIO_USB_PULLUP | GPIO_OUT);
pxa_gpio_mode(CORGI_GPIO_HSYNC | GPIO_IN);

pxa_set_udc_info(&udc_info);
pxa_set_mci_info(&corgi_mci_platform_data);
pxa_set_ficp_info(&corgi_ficp_platform_data);

scoop_num = 1;
scoop_devs = &corgi_pcmcia_scoop[0];
Expand Down

0 comments on commit 66d1180

Please sign in to comment.