Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 182959
b: refs/heads/master
c: 1fbd972
h: refs/heads/master
i:
  182957: ddf6318
  182955: d52615b
  182951: 2b97fb9
  182943: 2e300c4
v: v3
  • Loading branch information
Hartley Sweeten authored and Russell King committed Jan 12, 2010
1 parent bc5f306 commit 3ab2096
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: 64d6882d02b0e5f74dd5572039e88517e40edb50
refs/heads/master: 1fbd972ad0f97253ebfbb04881dc4ad95541153c
21 changes: 21 additions & 0 deletions trunk/arch/arm/mach-ep93xx/edb93xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -118,12 +118,33 @@ static void __init edb93xx_register_i2c(void)
}
}


/*************************************************************************
* EDB93xx pwm
*************************************************************************/
static void __init edb93xx_register_pwm(void)
{
if (machine_is_edb9301() ||
machine_is_edb9302() || machine_is_edb9302a()) {
/* EP9301 and EP9302 only have pwm.1 (EGPIO14) */
ep93xx_register_pwm(0, 1);
} else if (machine_is_edb9307() || machine_is_edb9307a()) {
/* EP9307 only has pwm.0 (PWMOUT) */
ep93xx_register_pwm(1, 0);
} else {
/* EP9312 and EP9315 have both */
ep93xx_register_pwm(1, 1);
}
}


static void __init edb93xx_init_machine(void)
{
ep93xx_init_devices();
edb93xx_register_flash();
ep93xx_register_eth(&edb93xx_eth_data, 1);
edb93xx_register_i2c();
edb93xx_register_pwm();
}


Expand Down

0 comments on commit 3ab2096

Please sign in to comment.