Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 313206
b: refs/heads/master
c: 762be29
h: refs/heads/master
v: v3
  • Loading branch information
Rafal Prylowski authored and Ryan Mallon committed Jun 4, 2012
1 parent bf0e8c8 commit 0eafe6c
Show file tree
Hide file tree
Showing 2 changed files with 25 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: eb774a09017e39a3255e144465d150877b6e6e2f
refs/heads/master: 762be29733d5b02b4359691f64c0cc968cd23c93
24 changes: 24 additions & 0 deletions trunk/arch/arm/mach-ep93xx/edb93xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,29 @@ static void __init edb93xx_register_fb(void)
}


/*************************************************************************
* EDB93xx IDE
*************************************************************************/
static int __init edb93xx_has_ide(void)
{
/*
* Although EDB9312 and EDB9315 do have IDE capability, they have
* INTRQ line wired as pull-up, which makes using IDE interface
* problematic.
*/
return machine_is_edb9312() || machine_is_edb9315() ||
machine_is_edb9315a();
}

static void __init edb93xx_register_ide(void)
{
if (!edb93xx_has_ide())
return;

ep93xx_register_ide();
}


static void __init edb93xx_init_machine(void)
{
ep93xx_init_devices();
Expand All @@ -243,6 +266,7 @@ static void __init edb93xx_init_machine(void)
edb93xx_register_i2s();
edb93xx_register_pwm();
edb93xx_register_fb();
edb93xx_register_ide();
}


Expand Down

0 comments on commit 0eafe6c

Please sign in to comment.