Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 163195
b: refs/heads/master
c: c96b56c
h: refs/heads/master
i:
  163193: 9b3b5e9
  163191: f6a65df
v: v3
  • Loading branch information
Sudhakar Rajashekhara authored and Kevin Hilman committed Aug 26, 2009
1 parent f3f27a9 commit ce18dcc
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 39 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: 2259bbd460c5c15567e2e311d0ab0fe763b40031
refs/heads/master: c96b56c53fb76c540a1a8103c7594859db4351dd
4 changes: 2 additions & 2 deletions trunk/arch/arm/mach-davinci/board-da830-evm.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ static __init void da830_evm_init(void)
pr_warning("da830_evm_init: edma registration failed: %d\n",
ret);

ret = da830_pinmux_setup(da830_i2c0_pins);
ret = da8xx_pinmux_setup(da830_i2c0_pins);
if (ret)
pr_warning("da830_evm_init: i2c0 mux setup failed: %d\n",
ret);
Expand All @@ -75,7 +75,7 @@ static __init void da830_evm_init(void)
soc_info->emac_pdata->mdio_max_freq = DA830_EVM_MDIO_FREQUENCY;
soc_info->emac_pdata->rmii_en = 1;

ret = da830_pinmux_setup(da830_cpgmac_pins);
ret = da8xx_pinmux_setup(da830_cpgmac_pins);
if (ret)
pr_warning("da830_evm_init: cpgmac mux setup failed: %d\n",
ret);
Expand Down
35 changes: 0 additions & 35 deletions trunk/arch/arm/mach-davinci/da830.c
Original file line number Diff line number Diff line change
Expand Up @@ -428,27 +428,6 @@ static struct davinci_clk da830_clks[] = {
CLK(NULL, NULL, NULL),
};

#define PINMUX0 0x00
#define PINMUX1 0x04
#define PINMUX2 0x08
#define PINMUX3 0x0c
#define PINMUX4 0x10
#define PINMUX5 0x14
#define PINMUX6 0x18
#define PINMUX7 0x1c
#define PINMUX8 0x20
#define PINMUX9 0x24
#define PINMUX10 0x28
#define PINMUX11 0x2c
#define PINMUX12 0x30
#define PINMUX13 0x34
#define PINMUX14 0x38
#define PINMUX15 0x3c
#define PINMUX16 0x40
#define PINMUX17 0x44
#define PINMUX18 0x48
#define PINMUX19 0x4c

/*
* Device specific mux setup
*
Expand Down Expand Up @@ -1036,20 +1015,6 @@ const short da830_eqep1_pins[] __initdata = {
-1
};

int da830_pinmux_setup(const short pins[])
{
int i, error = -EINVAL;

if (pins)
for (i = 0; pins[i] >= 0; i++) {
error = davinci_cfg_reg(pins[i]);
if (error)
break;
}

return error;
}

/* FIQ are pri 0-1; otherwise 2-7, with 7 lowest priority */
static u8 da830_default_priorities[DA830_N_CP_INTC_IRQ] = {
[IRQ_DA8XX_COMMTX] = 7,
Expand Down
23 changes: 22 additions & 1 deletion trunk/arch/arm/mach-davinci/include/mach/da8xx.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,27 @@
#define DA8XX_GPIO_BASE 0x01e26000
#define DA8XX_PSC1_BASE 0x01e27000

#define PINMUX0 0x00
#define PINMUX1 0x04
#define PINMUX2 0x08
#define PINMUX3 0x0c
#define PINMUX4 0x10
#define PINMUX5 0x14
#define PINMUX6 0x18
#define PINMUX7 0x1c
#define PINMUX8 0x20
#define PINMUX9 0x24
#define PINMUX10 0x28
#define PINMUX11 0x2c
#define PINMUX12 0x30
#define PINMUX13 0x34
#define PINMUX14 0x38
#define PINMUX15 0x3c
#define PINMUX16 0x40
#define PINMUX17 0x44
#define PINMUX18 0x48
#define PINMUX19 0x4c

void __init da830_init(void);

int da8xx_register_edma(void);
Expand Down Expand Up @@ -72,6 +93,6 @@ extern const short da830_ecap2_pins[];
extern const short da830_eqep0_pins[];
extern const short da830_eqep1_pins[];

int da830_pinmux_setup(const short pins[]);
int da8xx_pinmux_setup(const short pins[]);

#endif /* __ASM_ARCH_DAVINCI_DA8XX_H */
14 changes: 14 additions & 0 deletions trunk/arch/arm/mach-davinci/mux.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,17 @@ int __init_or_module davinci_cfg_reg(const unsigned long index)
return 0;
}
EXPORT_SYMBOL(davinci_cfg_reg);

int da8xx_pinmux_setup(const short pins[])
{
int i, error = -EINVAL;

if (pins)
for (i = 0; pins[i] >= 0; i++) {
error = davinci_cfg_reg(pins[i]);
if (error)
break;
}

return error;
}

0 comments on commit ce18dcc

Please sign in to comment.