aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/files/arch/mips
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2010-03-08 12:10:23 +0000
committerGabor Juhos <juhosg@openwrt.org>2010-03-08 12:10:23 +0000
commit961db2b91008ca2aef21a02514bd2bfc0dfc0141 (patch)
treebc51c81ea5e7657b4c0116b07eda7699c0f8c8d9 /target/linux/ar71xx/files/arch/mips
parentd980f74b2c6b74df4ed8d52271239da888aa6853 (diff)
downloadupstream-961db2b91008ca2aef21a02514bd2bfc0dfc0141.tar.gz
upstream-961db2b91008ca2aef21a02514bd2bfc0dfc0141.tar.bz2
upstream-961db2b91008ca2aef21a02514bd2bfc0dfc0141.zip
ar71xx: add NAND driver for the RB750
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20054 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx/files/arch/mips')
-rw-r--r--target/linux/ar71xx/files/arch/mips/ar71xx/mach-rb750.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-rb750.c b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-rb750.c
index 1698db9146..c2c3ee623f 100644
--- a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-rb750.c
+++ b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-rb750.c
@@ -50,12 +50,16 @@ static struct rb750_led_platform_data rb750_leds_data = {
static struct platform_device rb750_leds_device = {
.name = "leds-rb750",
- .id = -1,
.dev = {
.platform_data = &rb750_leds_data,
}
};
+static struct platform_device rb750_nand_device = {
+ .name = "rb750-nand",
+ .id = -1,
+};
+
int rb750_latch_change(u32 mask_clr, u32 mask_set)
{
static DEFINE_SPINLOCK(lock);
@@ -115,6 +119,7 @@ static void __init rb750_setup(void)
ap91_eth_init(NULL);
platform_device_register(&rb750_leds_device);
+ platform_device_register(&rb750_nand_device);
}
MIPS_MACHINE(AR71XX_MACH_RB_750, "750i", "MikroTik RouterBOARD 750",