Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 296358
b: refs/heads/master
c: e36e26a
h: refs/heads/master
v: v3
  • Loading branch information
Russell King committed Feb 3, 2012
1 parent 2f57182 commit 71e1ef5
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7658e7f9a8122b0678e4b4280308560aa5444bd5
refs/heads/master: e36e26a8b761d1a601e284e2b5d8aff84de3b756
2 changes: 2 additions & 0 deletions trunk/arch/arm/mach-sa1100/assabet.c
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,8 @@ static void __init assabet_init(void)
PPDR |= PPC_TXD3 | PPC_TXD1;
PPSR |= PPC_TXD3 | PPC_TXD1;

sa11x0_ppc_configure_mcp();

sa1100fb_lcd_power = assabet_lcd_power;
sa1100fb_backlight_power = assabet_backlight_power;

Expand Down
1 change: 1 addition & 0 deletions trunk/arch/arm/mach-sa1100/cerf.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ static struct mcp_plat_data cerf_mcp_data = {

static void __init cerf_init(void)
{
sa11x0_ppc_configure_mcp();
platform_add_devices(cerf_devices, ARRAY_SIZE(cerf_devices));
sa11x0_register_mtd(&cerf_flash_data, &cerf_flash_resource, 1);
sa11x0_register_mcp(&cerf_mcp_data);
Expand Down
2 changes: 2 additions & 0 deletions trunk/arch/arm/mach-sa1100/collie.c
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,8 @@ static void __init collie_init(void)

GPSR |= _COLLIE_GPIO_UCB1x00_RESET;

sa11x0_ppc_configure_mcp();


platform_scoop_config = &collie_pcmcia_config;

Expand Down
10 changes: 10 additions & 0 deletions trunk/arch/arm/mach-sa1100/generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,16 @@ static struct platform_device sa11x0mcp_device = {
.resource = sa11x0mcp_resources,
};

void __init sa11x0_ppc_configure_mcp(void)
{
/* Setup the PPC unit for the MCP */
PPDR &= ~PPC_RXD4;
PPDR |= PPC_TXD4 | PPC_SCLK | PPC_SFRM;
PSDR |= PPC_RXD4;
PSDR &= ~(PPC_TXD4 | PPC_SCLK | PPC_SFRM);
PPSR &= ~(PPC_TXD4 | PPC_SCLK | PPC_SFRM);
}

void sa11x0_register_mcp(struct mcp_plat_data *data)
{
sa11x0_register_device(&sa11x0mcp_device, data);
Expand Down
1 change: 1 addition & 0 deletions trunk/arch/arm/mach-sa1100/generic.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,5 @@ struct irda_platform_data;
void sa11x0_register_irda(struct irda_platform_data *irda);

struct mcp_plat_data;
void sa11x0_ppc_configure_mcp(void);
void sa11x0_register_mcp(struct mcp_plat_data *data);
1 change: 1 addition & 0 deletions trunk/arch/arm/mach-sa1100/lart.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ static struct mcp_plat_data lart_mcp_data = {

static void __init lart_init(void)
{
sa11x0_ppc_configure_mcp();
sa11x0_register_mcp(&lart_mcp_data);
}

Expand Down
1 change: 1 addition & 0 deletions trunk/arch/arm/mach-sa1100/shannon.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ static struct mcp_plat_data shannon_mcp_data = {

static void __init shannon_init(void)
{
sa11x0_ppc_configure_mcp();
sa11x0_register_mtd(&shannon_flash_data, &shannon_flash_resource, 1);
sa11x0_register_mcp(&shannon_mcp_data);
}
Expand Down
1 change: 1 addition & 0 deletions trunk/arch/arm/mach-sa1100/simpad.c
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,7 @@ static int __init simpad_init(void)

pm_power_off = simpad_power_off;

sa11x0_ppc_configure_mcp();
sa11x0_register_mtd(&simpad_flash_data, simpad_flash_resources,
ARRAY_SIZE(simpad_flash_resources));
sa11x0_register_mcp(&simpad_mcp_data);
Expand Down
9 changes: 0 additions & 9 deletions trunk/drivers/mfd/mcp-sa11x0.c
Original file line number Diff line number Diff line change
Expand Up @@ -165,15 +165,6 @@ static int mcp_sa11x0_probe(struct platform_device *pdev)
ASSABET_BCR_set(ASSABET_BCR_CODEC_RST);
}

/*
* Setup the PPC unit correctly.
*/
PPDR &= ~PPC_RXD4;
PPDR |= PPC_TXD4 | PPC_SCLK | PPC_SFRM;
PSDR |= PPC_RXD4;
PSDR &= ~(PPC_TXD4 | PPC_SCLK | PPC_SFRM);
PPSR &= ~(PPC_TXD4 | PPC_SCLK | PPC_SFRM);

/*
* Initialise device. Note that we initially
* set the sampling rate to minimum.
Expand Down

0 comments on commit 71e1ef5

Please sign in to comment.