Re: [U-Boot] Setting Ethernet Speed in NFS boot

2013-06-29 Thread Wolfgang Denk
Dear Sandeep C R, In message you wrote: > > I have a powerpc system with u-boot as the boot loader. Is it possible for > me to set the speed of the ethernet link while doing a nfs boot? ie. When > the nfs boot is happening i want to set the ethernet speed to say 10mbps > or 100mbps according to

Re: [U-Boot] [PATCH] blackfin: Fix using gd->baudrate before setting its value

2013-06-29 Thread Marek Vasut
Dear Axel Lin, > Current code uses gd->baudrate before setting its value. > Besides, I got below build warning which is introduced by > commit ddb5c5be "blackfin: add baudrate to bdinfo". > > board.c:235:3: warning: passing argument 1 of 'simple_strtoul' makes > pointer from integer without a cas

Re: [U-Boot] [PATCH] blackfin: Fix using gd->baudrate before setting its value

2013-06-29 Thread Axel Lin
2013/6/29 Marek Vasut : > Dear Axel Lin, > >> Current code uses gd->baudrate before setting its value. >> Besides, I got below build warning which is introduced by >> commit ddb5c5be "blackfin: add baudrate to bdinfo". >> >> board.c:235:3: warning: passing argument 1 of 'simple_strtoul' makes >> po

[U-Boot] [PATCH] net: Use ARRAY_SIZE at appropriate places

2013-06-29 Thread Axel Lin
Use ARRAY_SIZE instead of having similar implementation in each drivers. Signed-off-by: Axel Lin Cc: Albert Aribaud Cc: Ben Warren Cc: Jean-Christophe PLAGNIOL-VILLARD Cc: Joe Hershberger Cc: Marek Vasut Cc: Mike Frysinger Cc: Nobuhiro Iwamatsu Cc: TsiChungLiew Cc: Wolfgang Denk Cc: York

Re: [U-Boot] howto write uboot to nand

2013-06-29 Thread Jason Cooper
On Fri, Jun 28, 2013 at 03:15:03PM -0500, kqt4a...@gmail.com wrote: > I thought I should ask before I screw this up. I have a new uboot > that I load with kwboot. It works fine and I want to write it to > nand. I see many references to write it after loading with tftp but > not kwboot. Can I do thi

Re: [U-Boot] [PATCH] net: Use ARRAY_SIZE at appropriate places

2013-06-29 Thread Jagan Teki
Hi Axel, On Sat, Jun 29, 2013 at 6:46 PM, Axel Lin wrote: > Use ARRAY_SIZE instead of having similar implementation in each drivers. > > Signed-off-by: Axel Lin > Cc: Albert Aribaud > Cc: Ben Warren > Cc: Jean-Christophe PLAGNIOL-VILLARD > Cc: Joe Hershberger > Cc: Marek Vasut > Cc: Mike Fr

Re: [U-Boot] [PATCH] net: Use ARRAY_SIZE at appropriate places

2013-06-29 Thread Marek Vasut
Dear Axel Lin, > Use ARRAY_SIZE instead of having similar implementation in each drivers. > > Signed-off-by: Axel Lin > Cc: Albert Aribaud > Cc: Ben Warren > Cc: Jean-Christophe PLAGNIOL-VILLARD > Cc: Joe Hershberger > Cc: Marek Vasut > Cc: Mike Frysinger > Cc: Nobuhiro Iwamatsu > Cc: Tsi

Re: [U-Boot] [PATCH v5 2/8] usb: ehci-marvell: add support for second USB controller

2013-06-29 Thread Marek Vasut
Dear Sascha Silbe, > Dear Wolfgang Denk, > > Wolfgang Denk writes: > >> -#define rdl(off) readl(MVUSB0_BASE + (off)) > >> -#define wrl(off, val) writel((val), MVUSB0_BASE + (off)) > >> +#define rdl(base, off)readl((base) + (off)) > >> +#define wrl(base, off, val) writel((v

Re: [U-Boot] [PATCH] usb: ehci-marvell: use structs for registers

2013-06-29 Thread Marek Vasut
Dear Sascha Silbe, > Use structs instead of computing offsets for accessing individual > registers. The base address of the USB controller is still an offset > defined in SoC headers as it can differ between SoCs. > > Signed-off-by: Sascha Silbe > --- > Tested on CuBox Pro only. > > drivers/us

Re: [U-Boot] [PATCH] net: Use ARRAY_SIZE at appropriate places

2013-06-29 Thread Axel Lin
2013/6/30 Marek Vasut : > Dear Axel Lin, > >> Use ARRAY_SIZE instead of having similar implementation in each drivers. >> >> Signed-off-by: Axel Lin >> Cc: Albert Aribaud >> Cc: Ben Warren >> Cc: Jean-Christophe PLAGNIOL-VILLARD >> Cc: Joe Hershberger >> Cc: Marek Vasut >> Cc: Mike Frysinger

[U-Boot] [PATCH v2] net: Use ARRAY_SIZE at appropriate places

2013-06-29 Thread Axel Lin
Use ARRAY_SIZE instead of having similar implementation in each drivers. Signed-off-by: Axel Lin Cc: Albert Aribaud Cc: Ben Warren Cc: Jean-Christophe PLAGNIOL-VILLARD Cc: Joe Hershberger Cc: Marek Vasut Cc: Mike Frysinger Cc: Nobuhiro Iwamatsu Cc: TsiChungLiew Cc: Wolfgang Denk Cc: York

Re: [U-Boot] [PATCH] net: Use ARRAY_SIZE at appropriate places

2013-06-29 Thread Axel Lin
>> diff --git a/drivers/net/npe/include/IxOsalTypes.h >> b/drivers/net/npe/include/IxOsalTypes.h index 06e71de..615c655 100644 >> --- a/drivers/net/npe/include/IxOsalTypes.h >> +++ b/drivers/net/npe/include/IxOsalTypes.h >> @@ -93,7 +93,7 @@ typedef volatile INT32 VINT32; >> >> >> #ifndef NUMELEMS

Re: [U-Boot] [PATCH] gpio: spear_gpio: Fix gpio_set_value() implementation

2013-06-29 Thread Axel Lin
2013/6/21 Michael Trimarchi : > On 06/21/2013 06:40 AM, Vipin Kumar wrote: >> On 6/20/2013 7:26 PM, Axel Lin wrote: >>> 2013/6/20 Marek Vasut Dear Axel Lin, > In current gpio_set_value() implementation, it always sets the gpio > control > bit no matter the value argument