forked from Minki/linux
afcad88425
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>
273 lines
7.8 KiB
Plaintext
273 lines
7.8 KiB
Plaintext
if ARCH_KIRKWOOD
|
|
|
|
menu "Marvell Kirkwood Implementations"
|
|
|
|
config MACH_DB88F6281_BP
|
|
bool "Marvell DB-88F6281-BP Development Board"
|
|
help
|
|
Say 'Y' here if you want your kernel to support the
|
|
Marvell DB-88F6281-BP Development Board.
|
|
|
|
config MACH_RD88F6192_NAS
|
|
bool "Marvell RD-88F6192-NAS Reference Board"
|
|
help
|
|
Say 'Y' here if you want your kernel to support the
|
|
Marvell RD-88F6192-NAS Reference Board.
|
|
|
|
config MACH_RD88F6281
|
|
bool "Marvell RD-88F6281 Reference Board"
|
|
help
|
|
Say 'Y' here if you want your kernel to support the
|
|
Marvell RD-88F6281 Reference Board.
|
|
|
|
config MACH_MV88F6281GTW_GE
|
|
bool "Marvell 88F6281 GTW GE Board"
|
|
help
|
|
Say 'Y' here if you want your kernel to support the
|
|
Marvell 88F6281 GTW GE Board.
|
|
|
|
config MACH_SHEEVAPLUG
|
|
bool "Marvell SheevaPlug Reference Board"
|
|
help
|
|
Say 'Y' here if you want your kernel to support the
|
|
Marvell SheevaPlug Reference Board.
|
|
|
|
config MACH_ESATA_SHEEVAPLUG
|
|
bool "Marvell eSATA SheevaPlug Reference Board"
|
|
help
|
|
Say 'Y' here if you want your kernel to support the
|
|
Marvell eSATA SheevaPlug Reference Board.
|
|
|
|
config MACH_GURUPLUG
|
|
bool "Marvell GuruPlug Reference Board"
|
|
help
|
|
Say 'Y' here if you want your kernel to support the
|
|
Marvell GuruPlug Reference Board.
|
|
|
|
config ARCH_KIRKWOOD_DT
|
|
bool "Marvell Kirkwood Flattened Device Tree"
|
|
select USE_OF
|
|
help
|
|
Say 'Y' here if you want your kernel to support the
|
|
Marvell Kirkwood using flattened device tree.
|
|
|
|
config MACH_DREAMPLUG_DT
|
|
bool "Marvell DreamPlug (Flattened Device Tree)"
|
|
select ARCH_KIRKWOOD_DT
|
|
help
|
|
Say 'Y' here if you want your kernel to support the
|
|
Marvell DreamPlug (Flattened Device Tree).
|
|
|
|
config MACH_ICONNECT_DT
|
|
bool "Iomega Iconnect (Flattened Device Tree)"
|
|
select ARCH_KIRKWOOD_DT
|
|
help
|
|
Say 'Y' here to enable Iomega Iconnect support.
|
|
|
|
config MACH_DLINK_KIRKWOOD_DT
|
|
bool "D-Link Kirkwood-based NAS (Flattened Device Tree)"
|
|
select ARCH_KIRKWOOD_DT
|
|
help
|
|
Say 'Y' here if you want your kernel to support the
|
|
Kirkwood-based D-Link NASes such as DNS-320 & DNS-325,
|
|
using Flattened Device Tree.
|
|
|
|
config MACH_IB62X0_DT
|
|
bool "RaidSonic IB-NAS6210, IB-NAS6220 (Flattened Device Tree)"
|
|
select ARCH_KIRKWOOD_DT
|
|
help
|
|
Say 'Y' here if you want your kernel to support the
|
|
RaidSonic IB-NAS6210 & IB-NAS6220 devices, using
|
|
Flattened Device Tree.
|
|
|
|
config MACH_TS219_DT
|
|
bool "Device Tree for QNAP TS-11X, TS-21X NAS"
|
|
select ARCH_KIRKWOOD_DT
|
|
select ARM_APPENDED_DTB
|
|
select ARM_ATAG_DTB_COMPAT
|
|
help
|
|
Say 'Y' here if you want your kernel to support the QNAP
|
|
TS-110, TS-119, TS-119P+, TS-210, TS-219, TS-219P and
|
|
TS-219P+ Turbo NAS devices using Fattened Device Tree.
|
|
There are two different Device Tree descriptions, depending
|
|
on if the device is based on an if the board uses the MV6281
|
|
or MV6282. If you have the wrong one, the buttons will not
|
|
work.
|
|
|
|
config MACH_DOCKSTAR_DT
|
|
bool "Seagate FreeAgent Dockstar (Flattened Device Tree)"
|
|
select ARCH_KIRKWOOD_DT
|
|
help
|
|
Say 'Y' here if you want your kernel to support the
|
|
Seagate FreeAgent Dockstar (Flattened Device Tree).
|
|
|
|
config MACH_GOFLEXNET_DT
|
|
bool "Seagate GoFlex Net (Flattened Device Tree)"
|
|
select ARCH_KIRKWOOD_DT
|
|
help
|
|
Say 'Y' here if you want your kernel to support the
|
|
Seagate GoFlex Net (Flattened Device Tree).
|
|
|
|
config MACH_LSXL_DT
|
|
bool "Buffalo Linkstation LS-XHL, LS-CHLv2 (Flattened Device Tree)"
|
|
select ARCH_KIRKWOOD_DT
|
|
help
|
|
Say 'Y' here if you want your kernel to support the
|
|
Buffalo Linkstation LS-XHL & LS-CHLv2 devices, using
|
|
Flattened Device Tree.
|
|
|
|
config MACH_IOMEGA_IX2_200_DT
|
|
bool "Iomega StorCenter ix2-200 (Flattened Device Tree)"
|
|
select ARCH_KIRKWOOD_DT
|
|
help
|
|
Say 'Y' here if you want your kernel to support the
|
|
Iomega StorCenter ix2-200 (Flattened Device Tree).
|
|
|
|
config MACH_KM_KIRKWOOD_DT
|
|
bool "Keymile Kirkwood Reference Design (Flattened Device Tree)"
|
|
select ARCH_KIRKWOOD_DT
|
|
help
|
|
Say 'Y' here if you want your kernel to support the
|
|
Keymile Kirkwood Reference Desgin, using Flattened Device Tree.
|
|
|
|
config MACH_INETSPACE_V2_DT
|
|
bool "LaCie Internet Space v2 NAS (Flattened Device Tree)"
|
|
select ARCH_KIRKWOOD_DT
|
|
help
|
|
Say 'Y' here if you want your kernel to support the LaCie
|
|
Internet Space v2 NAS, using Flattened Device Tree.
|
|
|
|
config MACH_NETSPACE_V2_DT
|
|
bool "LaCie Network Space v2 NAS (Flattened Device Tree)"
|
|
select ARCH_KIRKWOOD_DT
|
|
help
|
|
Say 'Y' here if you want your kernel to support the LaCie
|
|
Network Space v2 NAS, using Flattened Device Tree.
|
|
|
|
config MACH_NETSPACE_MAX_V2_DT
|
|
bool "LaCie Network Space Max v2 NAS (Flattened Device Tree)"
|
|
select ARCH_KIRKWOOD_DT
|
|
help
|
|
Say 'Y' here if you want your kernel to support the LaCie
|
|
Network Space Max v2 NAS, using Flattened Device Tree.
|
|
|
|
config MACH_NETSPACE_LITE_V2_DT
|
|
bool "LaCie Network Space Lite v2 NAS (Flattened Device Tree)"
|
|
select ARCH_KIRKWOOD_DT
|
|
help
|
|
Say 'Y' here if you want your kernel to support the LaCie
|
|
Network Space Lite v2 NAS, using Flattened Device Tree.
|
|
|
|
config MACH_NETSPACE_MINI_V2_DT
|
|
bool "LaCie Network Space Mini v2 NAS (Flattened Device Tree)"
|
|
select ARCH_KIRKWOOD_DT
|
|
help
|
|
Say 'Y' here if you want your kernel to support the LaCie
|
|
Network Space Mini v2 NAS (aka SafeBox), using Flattened
|
|
Device Tree.
|
|
|
|
config MACH_TOPKICK_DT
|
|
bool "USI Topkick (Flattened Device Tree)"
|
|
select ARCH_KIRKWOOD_DT
|
|
help
|
|
Say 'Y' here if you want your kernel to support the
|
|
USI Topkick, using Flattened Device Tree
|
|
|
|
config MACH_TS219
|
|
bool "QNAP TS-110, TS-119, TS-119P+, TS-210, TS-219, TS-219P and TS-219P+ Turbo NAS"
|
|
help
|
|
Say 'Y' here if you want your kernel to support the
|
|
QNAP TS-110, TS-119, TS-119P+, TS-210, TS-219, TS-219P and
|
|
TS-219P+ Turbo NAS devices.
|
|
|
|
config MACH_TS41X
|
|
bool "QNAP TS-410, TS-410U, TS-419P, TS-419P+ and TS-419U Turbo NAS"
|
|
help
|
|
Say 'Y' here if you want your kernel to support the
|
|
QNAP TS-410, TS-410U, TS-419P, TS-419P+ and TS-419U Turbo
|
|
NAS devices.
|
|
|
|
config MACH_DOCKSTAR
|
|
bool "Seagate FreeAgent DockStar"
|
|
help
|
|
Say 'Y' here if you want your kernel to support the
|
|
Seagate FreeAgent DockStar.
|
|
|
|
config MACH_OPENRD
|
|
bool
|
|
|
|
config MACH_OPENRD_BASE
|
|
bool "Marvell OpenRD Base Board"
|
|
select MACH_OPENRD
|
|
help
|
|
Say 'Y' here if you want your kernel to support the
|
|
Marvell OpenRD Base Board.
|
|
|
|
config MACH_OPENRD_CLIENT
|
|
bool "Marvell OpenRD Client Board"
|
|
select MACH_OPENRD
|
|
help
|
|
Say 'Y' here if you want your kernel to support the
|
|
Marvell OpenRD Client Board.
|
|
|
|
config MACH_OPENRD_ULTIMATE
|
|
bool "Marvell OpenRD Ultimate Board"
|
|
select MACH_OPENRD
|
|
help
|
|
Say 'Y' here if you want your kernel to support the
|
|
Marvell OpenRD Ultimate Board.
|
|
|
|
config MACH_NETSPACE_V2
|
|
bool "LaCie Network Space v2 NAS Board"
|
|
help
|
|
Say 'Y' here if you want your kernel to support the
|
|
LaCie Network Space v2 NAS.
|
|
|
|
config MACH_INETSPACE_V2
|
|
bool "LaCie Internet Space v2 NAS Board"
|
|
help
|
|
Say 'Y' here if you want your kernel to support the
|
|
LaCie Internet Space v2 NAS.
|
|
|
|
config MACH_NETSPACE_MAX_V2
|
|
bool "LaCie Network Space Max v2 NAS Board"
|
|
help
|
|
Say 'Y' here if you want your kernel to support the
|
|
LaCie Network Space Max v2 NAS.
|
|
|
|
config MACH_D2NET_V2
|
|
bool "LaCie d2 Network v2 NAS Board"
|
|
help
|
|
Say 'Y' here if you want your kernel to support the
|
|
LaCie d2 Network v2 NAS.
|
|
|
|
config MACH_NET2BIG_V2
|
|
bool "LaCie 2Big Network v2 NAS Board"
|
|
help
|
|
Say 'Y' here if you want your kernel to support the
|
|
LaCie 2Big Network v2 NAS.
|
|
|
|
config MACH_NET5BIG_V2
|
|
bool "LaCie 5Big Network v2 NAS Board"
|
|
help
|
|
Say 'Y' here if you want your kernel to support the
|
|
LaCie 5Big Network v2 NAS.
|
|
|
|
config MACH_T5325
|
|
bool "HP t5325 Thin Client"
|
|
help
|
|
Say 'Y' here if you want your kernel to support the
|
|
HP t5325 Thin Client.
|
|
|
|
config MACH_NSA310_DT
|
|
bool "ZyXEL NSA-310 (Flattened Device Tree)"
|
|
select ARCH_KIRKWOOD_DT
|
|
select ARM_ATAG_DTB_COMPAT
|
|
help
|
|
Say 'Y' here if you want your kernel to support the
|
|
ZyXEL NSA-310 board (Flattened Device Tree).
|
|
|
|
endmenu
|
|
|
|
endif
|