Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 11930
b: refs/heads/master
c: dc07845
h: refs/heads/master
v: v3
  • Loading branch information
Richard Purdie authored and Russell King committed Oct 30, 2005
1 parent 66d1180 commit aba1b5d
Show file tree
Hide file tree
Showing 2 changed files with 20 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: ca1140b57d0a203f3db848ba5f63609a8ccd92b6
refs/heads/master: dc07845d0ce20d771fb96b0a5db57ffec2a89d3e
19 changes: 19 additions & 0 deletions trunk/arch/arm/mach-pxa/spitz.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,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/pxafb.h>
Expand Down Expand Up @@ -276,6 +277,23 @@ static struct pxamci_platform_data spitz_mci_platform_data = {
};


/*
* Irda
*/
static void spitz_irda_transceiver_mode(struct device *dev, int mode)
{
if (mode & IR_OFF)
set_scoop_gpio(&spitzscoop2_device.dev, SPITZ_SCP2_IR_ON);
else
reset_scoop_gpio(&spitzscoop2_device.dev, SPITZ_SCP2_IR_ON);
}

static struct pxaficp_platform_data spitz_ficp_platform_data = {
.transceiver_cap = IR_SIRMODE | IR_OFF,
.transceiver_mode = spitz_irda_transceiver_mode,
};


/*
* Spitz PXA Framebuffer
*/
Expand Down Expand Up @@ -326,6 +344,7 @@ static void __init common_init(void)

platform_add_devices(devices, ARRAY_SIZE(devices));
pxa_set_mci_info(&spitz_mci_platform_data);
pxa_set_ficp_info(&spitz_ficp_platform_data);
set_pxa_fb_parent(&spitzssp_device.dev);
set_pxa_fb_info(&spitz_pxafb_info);
}
Expand Down

0 comments on commit aba1b5d

Please sign in to comment.