aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-kirkwood
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-kirkwood')
-rw-r--r--arch/arm/mach-kirkwood/common.c9
-rw-r--r--arch/arm/mach-kirkwood/common.h2
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
308void __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;
16struct mv_sata_platform_data; 16struct mv_sata_platform_data;
17struct mvsdio_platform_data; 17struct mvsdio_platform_data;
18struct mtd_partition; 18struct mtd_partition;
19struct 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);
41void kirkwood_uart0_init(void); 42void kirkwood_uart0_init(void);
42void kirkwood_uart1_init(void); 43void kirkwood_uart1_init(void);
43void kirkwood_nand_init(struct mtd_partition *parts, int nr_parts, int delay); 44void kirkwood_nand_init(struct mtd_partition *parts, int nr_parts, int delay);
45void kirkwood_nand_init_rnb(struct mtd_partition *parts, int nr_parts, int (*dev_ready)(struct mtd_info *));
44 46
45extern int kirkwood_tclk; 47extern int kirkwood_tclk;
46extern struct sys_timer kirkwood_timer; 48extern struct sys_timer kirkwood_timer;