diff options
Diffstat (limited to 'arch/arm/mach-kirkwood')
-rw-r--r-- | arch/arm/mach-kirkwood/common.c | 9 | ||||
-rw-r--r-- | arch/arm/mach-kirkwood/common.h | 2 |
2 files changed, 11 insertions, 0 deletions
diff --git a/arch/arm/mach-kirkwood/common.c b/arch/arm/mach-kirkwood/common.c index f759ca243925..6072eaa5e66a 100644 --- a/arch/arm/mach-kirkwood/common.c +++ b/arch/arm/mach-kirkwood/common.c | |||
@@ -305,6 +305,15 @@ void __init kirkwood_nand_init(struct mtd_partition *parts, int nr_parts, | |||
305 | platform_device_register(&kirkwood_nand_flash); | 305 | platform_device_register(&kirkwood_nand_flash); |
306 | } | 306 | } |
307 | 307 | ||
308 | void __init kirkwood_nand_init_rnb(struct mtd_partition *parts, int nr_parts, | ||
309 | int (*dev_ready)(struct mtd_info *)) | ||
310 | { | ||
311 | kirkwood_clk_ctrl |= CGC_RUNIT; | ||
312 | kirkwood_nand_data.parts = parts; | ||
313 | kirkwood_nand_data.nr_parts = nr_parts; | ||
314 | kirkwood_nand_data.dev_ready = dev_ready; | ||
315 | platform_device_register(&kirkwood_nand_flash); | ||
316 | } | ||
308 | 317 | ||
309 | /***************************************************************************** | 318 | /***************************************************************************** |
310 | * SoC RTC | 319 | * SoC RTC |
diff --git a/arch/arm/mach-kirkwood/common.h b/arch/arm/mach-kirkwood/common.h index d7de43464358..05e8a8a5692e 100644 --- a/arch/arm/mach-kirkwood/common.h +++ b/arch/arm/mach-kirkwood/common.h | |||
@@ -16,6 +16,7 @@ struct mv643xx_eth_platform_data; | |||
16 | struct mv_sata_platform_data; | 16 | struct mv_sata_platform_data; |
17 | struct mvsdio_platform_data; | 17 | struct mvsdio_platform_data; |
18 | struct mtd_partition; | 18 | struct mtd_partition; |
19 | struct mtd_info; | ||
19 | 20 | ||
20 | /* | 21 | /* |
21 | * Basic Kirkwood init functions used early by machine-setup. | 22 | * Basic Kirkwood init functions used early by machine-setup. |
@@ -41,6 +42,7 @@ void kirkwood_i2c_init(void); | |||
41 | void kirkwood_uart0_init(void); | 42 | void kirkwood_uart0_init(void); |
42 | void kirkwood_uart1_init(void); | 43 | void kirkwood_uart1_init(void); |
43 | void kirkwood_nand_init(struct mtd_partition *parts, int nr_parts, int delay); | 44 | void kirkwood_nand_init(struct mtd_partition *parts, int nr_parts, int delay); |
45 | void kirkwood_nand_init_rnb(struct mtd_partition *parts, int nr_parts, int (*dev_ready)(struct mtd_info *)); | ||
44 | 46 | ||
45 | extern int kirkwood_tclk; | 47 | extern int kirkwood_tclk; |
46 | extern struct sys_timer kirkwood_timer; | 48 | extern struct sys_timer kirkwood_timer; |