aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-kirkwood/Kconfig
diff options
context:
space:
mode:
authorTero Jaasko <tero.jaasko@gmail.com>2012-10-26 11:56:16 -0400
committerJason Cooper <jason@lakedaemon.net>2012-11-21 15:59:30 -0500
commitafcad884252b171ff6f2ac78eb43c2f5db612dd0 (patch)
tree6013519c908237795b4ab546234829ae969e6295 /arch/arm/mach-kirkwood/Kconfig
parent767fc1ea92f70b5a97d43b79c146c2bee3eb6e83 (diff)
arm: kirkwood: add support for ZyXEL NSA310
Hello, Andrew > > +#define NSA310_GPIO_LED_ESATA_GREEN 12 > > <..> > > +#define NSA310_GPIO_POWER_OFF 48 > > It looks like most of these are not used. Please remove them. True. Fixed. > > +static struct mtd_partition nsa310_mtd_parts[] = { > > + { > > + .name = "uboot", > > + .offset = 0, > > + .size = 0x100000, > > + .mask_flags = MTD_WRITEABLE, > > + }, { > > <..> > You should be able to put all that into DT. Take a look at Correct. I did the conversion and tested that the partitions can be read with dd and produce exactly the same data before and after conversion. So, the partition offsets at least should be fine. > > +static struct i2c_board_info __initdata nsa310_i2c_info[] = { > > + { I2C_BOARD_INFO("adt7476", 0x2e) }, > > +}; > > You can also do this in DT as well. kirkwood-ts219.dtsi has > > i2c@11000 { > status = "okay"; > clock-frequency = <400000>; Ok, I did convert the i2c definition to use the devicetree. The adt7476 device itself is not at reach of device tree, AFAIK and requires more work at there? Thanks for your valuable comments. Following is a new patch that should address the problems and mistakes you pointed and also some of the pointed by Jason Cooper. The nand and i2c are now defined at DT and I also removed the pointless defines and ARM_APPENDED_DTB. It is based against the Linus' official 3.6 version. Best regards, Tero Signed-off-by: Jason Cooper <jason@lakedaemon.net>
Diffstat (limited to 'arch/arm/mach-kirkwood/Kconfig')
-rw-r--r--arch/arm/mach-kirkwood/Kconfig8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/mach-kirkwood/Kconfig b/arch/arm/mach-kirkwood/Kconfig
index 1d5283fad014..a5b766e13304 100644
--- a/arch/arm/mach-kirkwood/Kconfig
+++ b/arch/arm/mach-kirkwood/Kconfig
@@ -259,6 +259,14 @@ config MACH_T5325
259 Say 'Y' here if you want your kernel to support the 259 Say 'Y' here if you want your kernel to support the
260 HP t5325 Thin Client. 260 HP t5325 Thin Client.
261 261
262config MACH_NSA310_DT
263 bool "ZyXEL NSA-310 (Flattened Device Tree)"
264 select ARCH_KIRKWOOD_DT
265 select ARM_ATAG_DTB_COMPAT
266 help
267 Say 'Y' here if you want your kernel to support the
268 ZyXEL NSA-310 board (Flattened Device Tree).
269
262endmenu 270endmenu
263 271
264endif 272endif