Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 762be297 authored by Rafal Prylowski's avatar Rafal Prylowski Committed by Ryan Mallon
Browse files

ep93xx: Add IDE support to edb93xx boards



Add IDE support to edb93xx boards.

Signed-off-by: default avatarRafal Prylowski <prylowski@metasoft.pl>
Acked-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: default avatarRyan Mallon <rmallon@gmail.com>
parent eb774a09
Loading
Loading
Loading
Loading
+24 −0
Original line number Diff line number Diff line
@@ -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();
@@ -243,6 +266,7 @@ static void __init edb93xx_init_machine(void)
	edb93xx_register_i2s();
	edb93xx_register_pwm();
	edb93xx_register_fb();
	edb93xx_register_ide();
}