Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 11928
b: refs/heads/master
c: 8e4b871
h: refs/heads/master
v: v3
  • Loading branch information
Richard Purdie authored and Russell King committed Oct 30, 2005
1 parent d0b0bee commit a7cbe91
Show file tree
Hide file tree
Showing 2 changed files with 22 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: 91e1a512291f258746611c18ec4970a81c9f311b
refs/heads/master: 8e4b8715d815a29b4f0655e698a0c5f8d05b6dc9
21 changes: 21 additions & 0 deletions trunk/arch/arm/mach-pxa/poodle.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
#include <asm/arch/irq.h>
#include <asm/arch/mmc.h>
#include <asm/arch/udc.h>
#include <asm/arch/irda.h>
#include <asm/arch/poodle.h>
#include <asm/arch/pxafb.h>

Expand Down Expand Up @@ -151,6 +152,24 @@ static struct pxamci_platform_data poodle_mci_platform_data = {
};


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

static struct pxaficp_platform_data poodle_ficp_platform_data = {
.transceiver_cap = IR_SIRMODE | IR_OFF,
.transceiver_mode = poodle_irda_transceiver_mode,
};


/*
* USB Device Controller
*/
Expand Down Expand Up @@ -244,8 +263,10 @@ static void __init poodle_init(void)

set_pxa_fb_info(&poodle_fb_info);
pxa_gpio_mode(POODLE_GPIO_USB_PULLUP | GPIO_OUT);
pxa_gpio_mode(POODLE_GPIO_IR_ON | GPIO_OUT);
pxa_set_udc_info(&udc_info);
pxa_set_mci_info(&poodle_mci_platform_data);
pxa_set_ficp_info(&poodle_ficp_platform_data);

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

0 comments on commit a7cbe91

Please sign in to comment.