[PATCH] ARM: Kirkwood: Iomega_IX2_200 DT support Signed-off-by: Alan M Butler <alanbutty12 at gmail.com>
Alan M Butler
alanbutty12 at gmail.com
Mon Aug 20 08:55:39 EDT 2012
On 20 August 2012 12:43, Andrew Lunn <andrew at lunn.ch> wrote:
> Hi Alan
>
> Overall this is looking good.
>
> Just a few minor comments below.
>
>> diff --git a/arch/arm/mach-kirkwood/board-iomega_ix2_200.c b/arch/arm/mach-kirkwood/board-iomega_ix2_200.c
>> new file mode 100644
>> index 0000000..0c78752
>> --- /dev/null
>> +++ b/arch/arm/mach-kirkwood/board-iomega_ix2_200.c
>> @@ -0,0 +1,79 @@
>> +/*
>> + * arch/arm/mach-kirkwood/board-iomega_ix2_200.c
>> + *
>> + * Iomega StorCenter ix2-200
>> + *
>> + * This file is licensed under the terms of the GNU General Public
>> + * License version 2. This program is licensed "as is" without any
>> + * warranty of any kind, whether express or implied.
>> + */
>> +
>> +#include <linux/kernel.h>
>> +#include <linux/init.h>
>> +#include <linux/platform_device.h>
>> +#include <linux/irq.h>
>> +#include <linux/mtd/partitions.h>
>> +#include <linux/ata_platform.h>
>> +#include <linux/mv643xx_eth.h>
>> +#include <linux/ethtool.h>
>> +#include <net/dsa.h>
>> +#include <linux/gpio.h>
>> +#include <linux/leds.h>
>> +#include <linux/i2c.h>
>> +#include <asm/mach-types.h>
>> +#include <asm/mach/arch.h>
>> +#include <mach/kirkwood.h>
>> +#include "common.h"
>> +#include "mpp.h"
>
> It would be good to remove all the unneeded include files.
>
>> +
>> +static struct mv643xx_eth_platform_data iomega_ix2_200_ge00_data = {
>> + .phy_addr = MV643XX_ETH_PHY_NONE,
>> + .speed = SPEED_1000,
>> + .duplex = DUPLEX_FULL,
>> +};
>
> It is somewhat unusual to have this configuration, 1000 full. Is this
> a hardware limitation? Or is the port connected to an internal switch?
> Maybe add a comment why its hard coded.
>
> Andrew
>
the only 2 includes i can think of that might be able to be removed are:
#include <linux/ethtool.h>
#include <net/dsa.h>
As they do not appear in the iconnect or the goflexnet which i have
been using as my guide to makeing the dts file.
But i am not sure about the include files its probably best to leave
them the way they are maybe?.
As for the network that was setup that way in the origional modified
config file and in uboot on the device it states 2 network devices
egiga0 and egiga1 i believe it refers to them by but the device only
has only 1 phisical network interface (egiga1) so i think there must
be some kind of switch inside.
More information about the linux-arm-kernel
mailing list