projects
/
openwrt-github
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ar71xx: add NAND driver for the RB750
[openwrt-github/.git]
/
target
/
linux
/
ar71xx
/
files
/
arch
/
mips
/
ar71xx
/
mach-rb750.c
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 1698db9146426ac7535e5df4d970dc14af4622f8..c2c3ee623f999b43623b7abc52edf3cab3f61169 100644
(file)
--- 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",
static struct platform_device rb750_leds_device = {
.name = "leds-rb750",
- .id = -1,
.dev = {
.platform_data = &rb750_leds_data,
}
};
.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);
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);
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",
}
MIPS_MACHINE(AR71XX_MACH_RB_750, "750i", "MikroTik RouterBOARD 750",