diff options
author | Alessandro Zummo <azummo-armlinux@towertech.it> | 2006-02-22 16:12:06 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2006-02-22 16:12:06 -0500 |
commit | bc66d4496f106a8e3a936dc24c9965a2f9c13e50 (patch) | |
tree | 2a5f55829332e7e1e737bf274e2e6201135b0ee6 /arch/arm/mach-ixp4xx | |
parent | af898b8f602441a3bebe918a3b26adc92b30762e (diff) |
[ARM] 3344/1: NSLU2: beeper support
Patch from Alessandro Zummo
This patch adds support for the beeper
embedded in the NSLU2 to the machine setup code.
Signed-off-by: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: Rod Whitby <rod@whitby.id.au>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-ixp4xx')
-rw-r--r-- | arch/arm/mach-ixp4xx/nslu2-setup.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/mach-ixp4xx/nslu2-setup.c b/arch/arm/mach-ixp4xx/nslu2-setup.c index f260a9d34f70..55411f21d838 100644 --- a/arch/arm/mach-ixp4xx/nslu2-setup.c +++ b/arch/arm/mach-ixp4xx/nslu2-setup.c | |||
@@ -50,6 +50,12 @@ static struct platform_device nslu2_i2c_controller = { | |||
50 | .num_resources = 0, | 50 | .num_resources = 0, |
51 | }; | 51 | }; |
52 | 52 | ||
53 | static struct platform_device nslu2_beeper = { | ||
54 | .name = "ixp4xx-beeper", | ||
55 | .id = NSLU2_GPIO_BUZZ, | ||
56 | .num_resources = 0, | ||
57 | }; | ||
58 | |||
53 | static struct resource nslu2_uart_resources[] = { | 59 | static struct resource nslu2_uart_resources[] = { |
54 | { | 60 | { |
55 | .start = IXP4XX_UART1_BASE_PHYS, | 61 | .start = IXP4XX_UART1_BASE_PHYS, |
@@ -97,6 +103,7 @@ static struct platform_device *nslu2_devices[] __initdata = { | |||
97 | &nslu2_i2c_controller, | 103 | &nslu2_i2c_controller, |
98 | &nslu2_flash, | 104 | &nslu2_flash, |
99 | &nslu2_uart, | 105 | &nslu2_uart, |
106 | &nslu2_beeper, | ||
100 | }; | 107 | }; |
101 | 108 | ||
102 | static void nslu2_power_off(void) | 109 | static void nslu2_power_off(void) |