Re: [U-Boot] [PATCH 6/6] mx6q: mx6qsabrelite: Provide defaults for placing environment in serial flash

2012-01-20 Thread Stefano Babic
On 20/01/2012 08:48, Jason Hui wrote: >>> >>> I'm wondering how the CONFIG_ENV_SPI_CS could be 0x5300? Vague? > > Then the left open question is only above one. The SPI driver can take as chip select the controller's chip selects as well as an external GPIO. The LSB byte has the value of the in

Re: [U-Boot] [PATCH 1/2 V2] arm926: Flush the data cache before disabling it.

2012-01-20 Thread Aneesh V
Sughosh, On Friday 20 January 2012 12:58 PM, Christian Riesch wrote: On Thu, Jan 19, 2012 at 12:54 PM, Aneesh V wrote: On Thursday 19 January 2012 05:00 PM, Christian Riesch wrote: On Thu, Jan 19, 2012 at 11:17 AM, Aneesh Vwrote: On Thursday 19 January 2012 12:23 PM, Sughosh Ganu wrote:

[U-Boot] uboot configuration for uImage

2012-01-20 Thread manishdkanchan
hi, I am manish. I recently started working with beagleboard xm . I have a basic doubt.. The sd card is divided into fat32 and ext3 partition. All the neccesary files such as MLO, uboot.bin,uimage are put in the fat32 folder.I belive this is done so that the uboot will pick up uimage from this pa

Re: [U-Boot] [RFC] CDC Ethernet support + USB Gadget in U-boot

2012-01-20 Thread subhashini
Hi Remy, I am in the process of adding USB CDC-ECM support for the platform based on OAMP3. Can you give the pointers to start my porting 1. Linux files you modified to port gadget driver to U-boot 2. Under which U-Boot directory you copied these files 2. Linux files you modified to p

[U-Boot] [PATCH 11/28] net: Refactor IP, UPD, and ICMP header writing functions

2012-01-20 Thread Joe Hershberger
ICMP (ping) was reimplementing IP header code... it now shares code. Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Wolfgang Denk --- include/net.h |4 +++- net/bootp.c |6 +++--- net/net.c | 47 --- net/ping.c| 52 +

[U-Boot] [PATCH 22/28] net: Fix net buffer initialization

2012-01-20 Thread Joe Hershberger
A new non-static function NetInit() will initialize buffers and read from the env Only update from the env on each entry to NetLoop() Check when attempting to send a packet that the buffers were initialized Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Wolfgang Denk --- include/net

[U-Boot] [PATCH 04/28] net: Make the MAC-seeded random number generator available to /net

2012-01-20 Thread Joe Hershberger
MAC-seeded rand() will be needed by link-local as well, so give it an interface Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Wolfgang Denk --- net/Makefile |1 + net/bootp.c| 69 +++ net/bootp.h|3 -- net/net_ran

[U-Boot] [PATCH 25/28] net: Add option CONFIG_BOOTP_CAN_FAIL

2012-01-20 Thread Joe Hershberger
This is useful if you want to look for a DHCP server, but try some other settings if not available Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Wolfgang Denk --- README |7 +++ net/bootp.c |5 + 2 files changed, 12 insertions(+), 0 deletions(-) diff --git a/R

[U-Boot] [PATCH 03/28] net: Move mv64x6x_eth_initialize() to board_eth_init()

2012-01-20 Thread Joe Hershberger
Clears up checkpatch.pl complaint about extern in c file Completes the effort started by Ben Warren in 2008 to generalize eth init Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Wolfgang Denk --- board/Marvell/db64360/db64360.c | 12 ++- board/Marvell/db64360/mv_eth.c | 76 +++

[U-Boot] [PATCH 23/28] net: Refactor NetSendUDPPacket to share more code

2012-01-20 Thread Joe Hershberger
Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Wolfgang Denk --- net/net.c | 44 +--- 1 files changed, 25 insertions(+), 19 deletions(-) diff --git a/net/net.c b/net/net.c index 51d899b..59ac167 100644 --- a/net/net.c +++ b/net/net.c @@ -638,6

[U-Boot] [PATCH 20/28] net: Fix compile warning if CONFIG_BOOTP_SERVERIP is not defined

2012-01-20 Thread Joe Hershberger
There is no reason to use compiler magic to fix this Actually move the definition inside the #ifdef Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Wolfgang Denk --- net/bootp.c |7 +++ 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/net/bootp.c b/net/bootp.c inde

[U-Boot] [PATCH 15/28] net: Refactor to call NetSendPacket() instead of calling eth_send()

2012-01-20 Thread Joe Hershberger
Use this entry-point consistently across the net/ code Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Wolfgang Denk --- net/arp.c |6 +++--- net/cdp.c |2 +- net/net.c |2 +- net/ping.c |3 +-- 4 files changed, 6 insertions(+), 7 deletions(-) diff --git a/net/arp.c

[U-Boot] [PATCH 18/28] net: Add NetUpdateEther() to handle ARP or Ping replies (VLAN or SNAP)

2012-01-20 Thread Joe Hershberger
NetUpdateEther() will preserve the original Ethernet packet header and simply replace the src and dest MACs and the protocol Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Wolfgang Denk --- include/net.h |1 + net/arp.c |2 +- net/net.c | 22 ++

[U-Boot] [PATCH 26/28] net: Add link-local addressing support

2012-01-20 Thread Joe Hershberger
Code based on networking/zcip.c in busybox - commit 8531d76a15890c2c535908ce888b2e2aed35b172 Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Wolfgang Denk --- README | 15 +++- common/cmd_net.c | 30 + include/net.h|2 +- net/Makefile |4 +- net/arp.

[U-Boot] [PATCH 12/28] net: Refactor packet length computations

2012-01-20 Thread Joe Hershberger
Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Wolfgang Denk --- net/arp.c | 13 - net/ping.c |7 --- net/rarp.c |6 -- 3 files changed, 16 insertions(+), 10 deletions(-) diff --git a/net/arp.c b/net/arp.c index 456decd..60a1ded 100644 --- a/net/arp.c +++

[U-Boot] [PATCH 19/28] net: Don't write the "serverip" env var if told not to in the config

2012-01-20 Thread Joe Hershberger
Before this patch, bootp would not overwrite the value, but the value was still clobbered in the env Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Wolfgang Denk --- common/cmd_net.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/cmd_net.c b/commo

[U-Boot] [PATCH 21/28] net: Remove unneeded static allocation for MAC address in PingSend()

2012-01-20 Thread Joe Hershberger
Don't force ARP clients to return the MAC address if they don't care about it (such as ping) Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Wolfgang Denk --- net/arp.c |9 + net/ping.c | 10 +++--- 2 files changed, 8 insertions(+), 11 deletions(-) diff --git a/ne

[U-Boot] [PATCH 06/28] net: Move ARP out of net.c

2012-01-20 Thread Joe Hershberger
Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Wolfgang Denk --- include/net.h |3 +- net/Makefile |1 + net/arp.c | 213 + net/arp.h | 30 net/net.c | 209 -

[U-Boot] [PATCH 01/28] net: Remove volatile from all of net except the eth driver interface

2012-01-20 Thread Joe Hershberger
The mv_eth driver should not redefine the net function definition Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Wolfgang Denk --- board/Marvell/db64360/mv_eth.c |2 -- board/Marvell/db64460/mv_eth.c |2 -- board/esd/cpci750/mv_eth.c |2 -- board/prodrive/p3mx/mv_eth.c

[U-Boot] [PATCH 16/28] net: Refactor to protect access to the NetState variable

2012-01-20 Thread Joe Hershberger
Changes to NetState now go through an accessor function called NetSetState() Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Wolfgang Denk --- drivers/net/netconsole.c |6 +++--- include/net.h| 13 +++-- net/cdp.c|2 +- net/dns.c

[U-Boot] [PATCH 07/28] net: Move PING out of net.c

2012-01-20 Thread Joe Hershberger
Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Wolfgang Denk --- include/configs/am3517_crane.h |2 +- include/configs/am3517_evm.h |2 +- include/configs/origen.h |2 +- net/Makefile |1 + net/net.c | 133 ++---

[U-Boot] [PATCH 13/28] net: Refactor bootp packet length computations

2012-01-20 Thread Joe Hershberger
Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Wolfgang Denk --- net/bootp.c | 26 ++ 1 files changed, 14 insertions(+), 12 deletions(-) diff --git a/net/bootp.c b/net/bootp.c index 0c2af48..0d5f4cf 100644 --- a/net/bootp.c +++ b/net/bootp.c @@ -582,7 +582,8 @

[U-Boot] [PATCH 14/28] net: Refactor ping recieve handler

2012-01-20 Thread Joe Hershberger
There is no need to call through the handler when we can handle it inline Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Wolfgang Denk --- net/ping.c | 19 ++- 1 files changed, 2 insertions(+), 17 deletions(-) diff --git a/net/ping.c b/net/ping.c index 12f9185..e4a7a

[U-Boot] [PATCH 27/28] net: Work-around for brain-damaged Cisco routers with arp-proxy

2012-01-20 Thread Joe Hershberger
Cisco's arp-proxy feature fails to ignore the link-local address range This means that a link-local device on a network with this Cisco equipment will reply to ARP requests for our device (in addition to our reply) If we happen to reply first, the requester's ARP table will be populated wi

[U-Boot] [PATCH 17/28] net: Refactor to separate the UDP handler from the ARP handler

2012-01-20 Thread Joe Hershberger
Only call the handlers if one was registered... don't require protocols to register a handler (eliminating dummies) NetConsole now uses the ARP handler when waiting on arp (instead of needing a #define hack in arp.c) Clear handlers at the end of net loop Signed-off-by: Joe Hershberger Cc: J

[U-Boot] [PATCH 24/28] net: Don't copy every packet that waits for an ARP

2012-01-20 Thread Joe Hershberger
Use the NetArpTxPacket for the ARP packet, not to hold what used to be in NetTxPacket This saves a copy and makes the code easier to understand Generalize the formation of the ARP packet Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Wolfgang Denk --- net/arp.c | 44 +

[U-Boot] [PATCH 09/28] net: cosmetic: Un-typedef variables in net

2012-01-20 Thread Joe Hershberger
Un-typedef IP_t, Ethernet_t, VLAN_Ethernet_t, ARP_t, ICMP_t Rename IP header related things to IP_UDP The existing definition of IP_t includes UDP header, so name it to accurately describe the structure Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Wolfgang Denk --- arch/powerpc/cpu/m

[U-Boot] [PATCH 00/28] Add link-local addressing support

2012-01-20 Thread Joe Hershberger
Link-local support allows the bootloader to get a usable network address regardless of network environment. Given that bootloaders may not always have access to a DHCP server, this functionality makes accessing it in those environments easier. It is also referred to as zero-configuration IP. The

[U-Boot] [PATCH 10/28] net: cosmetic: Improve variable names and code readability

2012-01-20 Thread Joe Hershberger
Rename parameter len to payload_len in NetSendUDPPacket: this name more explicitly claims that it does not include the header size Rename CDPHandler to CDPReceive: this is not called as a handler, so don't name it that way Rename OPT_SIZE to OPT_FIELD_SIZE: clearer constant name and also r

[U-Boot] [PATCH 28/28] net: Allow filtering on debug traces in the net subsystem

2012-01-20 Thread Joe Hershberger
Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Wolfgang Denk --- drivers/net/netconsole.c |6 ++ net/arp.c| 12 net/link_local.c | 31 +++ net/net.c| 45 ++-

[U-Boot] [PATCH 08/28] net: Move RARP receive logic out of net.c

2012-01-20 Thread Joe Hershberger
Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Wolfgang Denk --- net/net.c | 25 + net/rarp.c | 38 +++--- net/rarp.h |1 + 3 files changed, 29 insertions(+), 35 deletions(-) diff --git a/net/net.c b/net/net.c index c2fbc

[U-Boot] [PATCH 05/28] net: Move CDP out of net.c

2012-01-20 Thread Joe Hershberger
Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Wolfgang Denk --- arch/powerpc/cpu/mpc8xx/fec.c |2 +- include/net.h |9 +- net/Makefile |1 + net/cdp.c | 380 + net/cdp.h

Re: [U-Boot] mx6qsabrelite U-Boot from SPI-NOR

2012-01-20 Thread Wolfgang Grandegger
Hi Eric, On 01/20/2012 01:56 AM, Eric Nelson wrote: > Hi Wolfgang, > > On 01/19/2012 03:26 AM, Dirk Behme wrote: >> Dear Wolfgang, >> >> On 19.01.2012 10:58, Wolfgang Grandegger wrote: >>> >>> Where can I find the "SPI_to_SD_loader.bin" image? >> >> Unfortunately, at the moment you have to ask yo

Re: [U-Boot] [PATCH 1/2 V2] arm926: Flush the data cache before disabling it.

2012-01-20 Thread Christian Riesch
Hi Aneesh, On Fri, Jan 20, 2012 at 9:52 AM, Aneesh V wrote: > Sughosh, [...] > Can you send the value of SCR you found at SPL entry? This will clarify > what's enabled and what's not. I would like to try that on my board as well for comparison. Could you please tell me how this register can be r

Re: [U-Boot] [PATCH 1/2 V2] arm926: Flush the data cache before disabling it.

2012-01-20 Thread James W.
so sorry to you, i think it's difference between DISABLE and Flush. be careful. On Wed, Jan 11, 2012 at 2:12 AM, Sughosh Ganu wrote: > The current implementation invalidates the cache instead of flushing > it. This causes problems on platforms where the spl/u-boot is already > loaded to the RAM

[U-Boot] About mtest on boot

2012-01-20 Thread Érico Porto
Hello, I want to stop autoboot and use mtest to check if my ram is alright, but 0x07FD2C00 forward freezes, and 0x0902 also freezes, mtest, when using it. My ramsize is 0x0800. Does u-boot uses any parts of ram by itself, I mean, is there any known spots where I can't test because it woul

Re: [U-Boot] About mtest on boot

2012-01-20 Thread Anatolij Gustschin
Hi, On Fri, 20 Jan 2012 08:07:41 -0200 Érico Porto wrote: > Hello, > > I want to stop autoboot and use mtest to check if my ram is alright, but > 0x07FD2C00 forward freezes, and 0x0902 also freezes, mtest, when using > it. My ramsize is 0x0800. > > Does u-boot uses any parts of ram by

Re: [U-Boot] About mtest on boot

2012-01-20 Thread Érico Porto
Now I understood, LTIB is giving me an older u-boot version - 1.1.6 and not 2011.12. Will try to update it... Érico V. Porto On Fri, Jan 20, 2012 at 8:38 AM, Anatolij Gustschin wrote: > Hi, > > On Fri, 20 Jan 2012 08:07:41 -0200 > Érico Porto wrote: > > > Hello, > > > > I want to stop autoboo

Re: [U-Boot] [PATCH v2 1/3] ARM: I2C: I2C Multi byte address support

2012-01-20 Thread Tom Rini
--- >>  drivers/i2c/omap24xx_i2c.h |    2 + >>  2 files changed, 298 insertions(+), 172 deletions(-) > > Sorry, your patch did not apply, nor on "u-boot.git master" nor on > "u-boot-ti-git master": > > [hs@pollux u-boot-i2c]$ git am 20120120/000

Re: [U-Boot] [PATCH 1/2 V2] arm926: Flush the data cache before disabling it.

2012-01-20 Thread Tom Rini
On Fri, Jan 20, 2012 at 12:28 AM, Christian Riesch wrote: > On Thu, Jan 19, 2012 at 12:54 PM, Aneesh V wrote: >> On Thursday 19 January 2012 05:00 PM, Christian Riesch wrote: >>> On Thu, Jan 19, 2012 at 11:17 AM, Aneesh V  wrote: On Thursday 19 January 2012 12:23 PM, Sughosh Ganu wrote:

Re: [U-Boot] [PATCH 1/2 V2] arm926: Flush the data cache before disabling it.

2012-01-20 Thread Aneesh V
On Friday 20 January 2012 02:51 PM, Christian Riesch wrote: Hi Aneesh, On Fri, Jan 20, 2012 at 9:52 AM, Aneesh V wrote: Sughosh, [...] Can you send the value of SCR you found at SPL entry? This will clarify what's enabled and what's not. I would like to try that on my board as well for com

Re: [U-Boot] [PATCH 1/2 V2] arm926: Flush the data cache before disabling it.

2012-01-20 Thread Christian Riesch
Hi Aneesh, On Fri, Jan 20, 2012 at 1:13 PM, Aneesh V wrote: > On Friday 20 January 2012 02:51 PM, Christian Riesch wrote: >> On Fri, Jan 20, 2012 at 9:52 AM, Aneesh V  wrote: >>> Sughosh, >> >> [...] >>> >>> Can you send the value of SCR you found at SPL entry? This will clarify >>> what's enable

Re: [U-Boot] [PATCH 1/2 V2] arm926: Flush the data cache before disabling it.

2012-01-20 Thread Aneesh V
Hi Christian, On Friday 20 January 2012 06:18 PM, Christian Riesch wrote: Hi Aneesh, On Fri, Jan 20, 2012 at 1:13 PM, Aneesh V wrote: On Friday 20 January 2012 02:51 PM, Christian Riesch wrote: On Fri, Jan 20, 2012 at 9:52 AM, Aneesh Vwrote: Sughosh, [...] Can you send the value of

[U-Boot] [PATCH] [v2] mtd/nand: Fix IFC driver to support 2K NAND page

2012-01-20 Thread Prabhakar Kushwaha
1) OOB area should be updated irrespective of NAND page size. Earlier it was updated only for 512byte NAND page. 2) During OOB update fbcr should be equal to OOB size. Signed-off-by: Poonam Aggrwal Signed-off-by: Prabhakar Kushwaha --- Based upon git://git.denx.de/u-boot.git (branch master)

[U-Boot] [PATCH] mtd/nand:Fix wrong usage of is_blank() in fsl_ifc_run_command

2012-01-20 Thread Prabhakar Kushwaha
Freescale IFC NAND Machine calculates ECC on 512byte sector and same is used in fsl_ifc_run_command() during ECC status verification. Also this sector is passed to is_blank() for blank checking. It is wrong at first place because is_blank()'s implementation checks for Page size and OOB area size.

[U-Boot] [u-boot]

2012-01-20 Thread periyasamy samy
Hi, I am new to U-Boot, how do I get started? -- *Thanks & Regards** * *periyasamy.R* ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

[U-Boot] New MIPS64R2 Target in QEMU

2012-01-20 Thread Zain Ahmed
I am trying to emulate a new MIPS64R2 based target in QEMU, which actually uses U-Boot as a bootloader. Can I skip U-Boot and and directly load the kernel as it is done in Matla Mips 64 board?? ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.den

Re: [U-Boot] [PATCH 6/6] mx6q: mx6qsabrelite: Provide defaults for placing environment in serial flash

2012-01-20 Thread Eric Nelson
On 01/19/2012 08:27 PM, Jason Hui wrote: On Wed, Jan 18, 2012 at 6:09 AM, Eric Nelson wrote: Signed-off-by: Eric Nelson --- include/configs/mx6qsabrelite.h | 12 +++- 1 files changed, 11 insertions(+), 1 deletions(-) diff --git a/include/configs/mx6qsabrelite.h b/include/configs

Re: [U-Boot] [PATCH 6/6] mx6q: mx6qsabrelite: Provide defaults for placing environment in serial flash

2012-01-20 Thread Eric Nelson
On 01/20/2012 01:47 AM, Stefano Babic wrote: On 20/01/2012 08:48, Jason Hui wrote: I'm wondering how the CONFIG_ENV_SPI_CS could be 0x5300? Vague? Then the left open question is only above one. The SPI driver can take as chip select the controller's chip selects as well as an external GPI

Re: [U-Boot] mx6qsabrelite U-Boot from SPI-NOR

2012-01-20 Thread Eric Nelson
On 01/20/2012 02:15 AM, Wolfgang Grandegger wrote: On 01/20/2012 01:56 AM, Eric Nelson wrote: Yes. If you program u-boot.imx to offset 0x400, it will boot. I just did so as shown below. I started by placing SW1 in the 01 position (boot to USB), and used imx_usb to dowload u-boot.imx: M

Re: [U-Boot] [PATCH 01/28] net: Remove volatile from all of net except the eth driver interface

2012-01-20 Thread Simon Glass
Hi Joe, On Thu, Jan 19, 2012 at 4:53 PM, Joe Hershberger wrote: > The mv_eth driver should not redefine the net function definition > > Signed-off-by: Joe Hershberger > Cc: Joe Hershberger > Cc: Wolfgang Denk > --- >  board/Marvell/db64360/mv_eth.c |    2 -- >  board/Marvell/db64460/mv_eth.c |

Re: [U-Boot] [PATCH 02/28] net: cosmetic: checkpatch compliance

2012-01-20 Thread Simon Glass
Hi Joe, On Thu, Jan 19, 2012 at 4:53 PM, Joe Hershberger wrote: > Signed-off-by: Joe Hershberger > Cc: Joe Hershberger > Cc: Wolfgang Denk > --- >  common/main.c            |    1 - >  drivers/net/netconsole.c |  122 + >  include/common.h         |    4 + >  include/net.h      

Re: [U-Boot] [PATCH 5/6] tegra: nand: Add Tegra NAND driver

2012-01-20 Thread Stephen Warren
On 01/13/2012 04:10 PM, Simon Glass wrote: > From: Jim Lin > > A device tree is used to configure the NAND, including memory > timings and block/pages sizes. > > If this node is not present or is disabled, then NAND will not > be initialized. > > Signed-off-by: Simon Glass > diff --git a/driv

Re: [U-Boot] About mtest on boot

2012-01-20 Thread Érico Porto
Okay, got 2011.12 working here. Same problem, my system stalls when I try using mtest on low position of the memory, but now I have the relocaddr var to tell me what is the superior memory limit. ( I can't paste any output here because the list gives me a BASE ENCODE64 not allowed error... ) And

Re: [U-Boot] [PATCH v2 1/8] sandbox: fdt: Add support for CONFIG_OF_CONTROL

2012-01-20 Thread Mike Frysinger
On Tuesday 10 January 2012 19:45:45 Simon Glass wrote: > This adds support for a controlling fdt, mirroring the ARM implementation. OK, but what's the point if we aren't doing FDT's ? > +#ifdef CONFIG_OF_EMBED > + /* Get a pointer to the FDT */ > + gd->fdt_blob = _binary_dt_dtb_start; > +

Re: [U-Boot] [PATCH v2 2/8] sandbox: config: Enable fdt and snprintf() options

2012-01-20 Thread Mike Frysinger
On Tuesday 10 January 2012 19:45:46 Simon Glass wrote: > +#define CONFIG_LMB do we need this ? -mike signature.asc Description: This is a digitally signed message part. ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/

Re: [U-Boot] [PATCH v2 3/8] sandbox: gpio: Add basic driver for simulating GPIOs

2012-01-20 Thread Mike Frysinger
On Tuesday 10 January 2012 19:45:47 Simon Glass wrote: > This provides a way of simulating GPIOs by setting values which are seen > by the normal gpio_get/set_value() calls. seems to be a desync in types ... all "gpio" fields should be "unsigned" and not "int" > --- /dev/null > +++ b/arch/sandbo

Re: [U-Boot] [PATCH v2 4/8] sandbox: Enable GPIO driver

2012-01-20 Thread Mike Frysinger
On Tuesday 10 January 2012 19:45:48 Simon Glass wrote: > --- a/include/configs/sandbox.h > +++ b/include/configs/sandbox.h > > +#define CONFIG_SANDBOX_GPIO_COUNT224 do we really need 224 examples GPIOs ? can't we do with like 20 ? -mike signature.asc Description: This is a digitally signed

Re: [U-Boot] [PATCH v2 6/8] sandbox: Allow processing instead of or before main loop

2012-01-20 Thread Mike Frysinger
On Tuesday 10 January 2012 19:45:50 Simon Glass wrote: > In order to pass command line arguments to sandbox we need to be able > to act on them. So take control back at the end of board_init_r() from > where we can call the main loop or do something else. does this need to be done this early ? pa

Re: [U-Boot] [PATCH v2 8/8] sandbox: Add basic command line parsing

2012-01-20 Thread Mike Frysinger
On Tuesday 10 January 2012 19:45:52 Simon Glass wrote: > --- a/arch/sandbox/cpu/os.c > +++ b/arch/sandbox/cpu/os.c > > +static struct option long_options[] = { constify > +void os_usage(int err) > +{ > + if (err < 0) > + fprintf(stderr, "Try `--help' for more information.\n"); > +

[U-Boot] [PATCH] sandbox: add ifdef protection to os.h

2012-01-20 Thread Mike Frysinger
Signed-off-by: Mike Frysinger --- include/os.h |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/include/os.h b/include/os.h index f3af4f0..c17a8a5 100644 --- a/include/os.h +++ b/include/os.h @@ -25,6 +25,9 @@ * This provides access to useful OS routines from the san

[U-Boot] [PATCH 1/3] cmd_mem: replace custom PRINTF() with debug()

2012-01-20 Thread Mike Frysinger
Signed-off-by: Mike Frysinger --- common/cmd_mem.c | 12 +++- 1 files changed, 3 insertions(+), 9 deletions(-) diff --git a/common/cmd_mem.c b/common/cmd_mem.c index 9ad932c..5121b22 100644 --- a/common/cmd_mem.c +++ b/common/cmd_mem.c @@ -35,12 +35,6 @@ #include #include -#ifdef

[U-Boot] [PATCH 2/3] cmd_mem: cmp: unify size code paths

2012-01-20 Thread Mike Frysinger
Not only does the source code get simpler, but it also shrinks the compiled object code too. While we're here, tweak the summary message to avoid the plural issue. It isn't that big of a deal, and it's currently wrong anyways in the single (1 byte) case: Total of 1 byte were the same Gram

[U-Boot] [PATCH 3/3] cmd_mem: cmp: convert while() to for() loop

2012-01-20 Thread Mike Frysinger
Simplify the code slightly by using a for() loop since this is basically what we're already doing -- incrementing "ngood" to the value in "count". Signed-off-by: Mike Frysinger --- common/cmd_mem.c |7 ++- 1 files changed, 2 insertions(+), 5 deletions(-) diff --git a/common/cmd_mem.c b/

Re: [U-Boot] [PATCH 01/28] net: Remove volatile from all of net except the eth driver interface

2012-01-20 Thread Joe Hershberger
Hi Simon, On Fri, Jan 20, 2012 at 10:22 AM, Simon Glass wrote: > Hi Joe, > > On Thu, Jan 19, 2012 at 4:53 PM, Joe Hershberger > wrote: >> The mv_eth driver should not redefine the net function definition >> >> Signed-off-by: Joe Hershberger >> Cc: Joe Hershberger >> Cc: Wolfgang Denk >> ---

Re: [U-Boot] [PATCH 02/28] net: cosmetic: checkpatch compliance

2012-01-20 Thread Joe Hershberger
Hi Simon, On Fri, Jan 20, 2012 at 10:30 AM, Simon Glass wrote: > Hi Joe, > > On Thu, Jan 19, 2012 at 4:53 PM, Joe Hershberger > wrote: >> Signed-off-by: Joe Hershberger >> Cc: Joe Hershberger >> Cc: Wolfgang Denk >> --- >>  common/main.c            |    1 - >>  drivers/net/netconsole.c |  12

Re: [U-Boot] About mtest on boot

2012-01-20 Thread Érico Porto
I've partially solved the ctrl+c situatin inserting more check for it into the code. But this isn't really what I was hoping... Any known alternatives? Thanks. Érico V. Porto On Fri, Jan 20, 2012 at 4:22 PM, Érico Porto wrote: > Okay, got 2011.12 working here. > > Same problem, my system stall

Re: [U-Boot] [PATCH] nand_util: correct YAFFS image write function

2012-01-20 Thread Scott Wood
On 01/20/2012 12:17 AM, Kassey Lee wrote: > hi, Lei, Scott: > I think this is correct, > do you have some comments ? Looks right. -Scott ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

[U-Boot] USBTTY for CONFIG_USB_GADGET

2012-01-20 Thread Michael Schwartz
Hi, Can new UDCs be written for CONFIG_USB_DEVICE or is that deprecated in favour of CONFIG_USB_GADGET? If that is the case and CONFIG_USB_DEVICE is deprecated, if I want to get USBTTY enabled for a currently unsupported UDC I would need to port USBTTY to CONFIG_USB_GADGET; is there interest i

[U-Boot] [PATCH v2] main: unify command parsing functions

2012-01-20 Thread Michael Walle
Introduce source_commands() which incorporates run_command2() and parts of source(). All command script are now treated the same, that is newlines are accepted within a command script and variable. Signed-off-by: Michael Walle Cc: Wolfgang Denk Cc: Mike Frysinger --- changes v2: - uncondition

Re: [U-Boot] [PATCH 5/6] tegra: nand: Add Tegra NAND driver

2012-01-20 Thread Scott Wood
On 01/13/2012 05:10 PM, Simon Glass wrote: > +/* Information about an attached NAND chip */ > +struct fdt_nand { > + struct nand_ctlr *reg; > + int enabled;/* 1 to enable, 0 to disable */ > + struct fdt_gpio_state wp_gpio; /* write-protect GPIO */ > + int width;

Re: [U-Boot] [PATCH v3 4/9] tegra: Add keyboard support to funcmux

2012-01-20 Thread Stephen Warren
On 01/16/2012 11:11 PM, Simon Glass wrote: > Add funcmux support for the default keyboard mapping. > > Signed-off-by: Simon Glass > diff --git a/arch/arm/cpu/armv7/tegra2/funcmux.c > b/arch/arm/cpu/armv7/tegra2/funcmux.c > + case PERIPH_ID_KBC: > + if (config == FUNCMUX_DEFAULT

Re: [U-Boot] [PATCH v3 5/9] tegra: fdt: Add keyboard controller definition

2012-01-20 Thread Stephen Warren
On 01/16/2012 11:11 PM, Simon Glass wrote: > From: Anton Staff > > The Tegra keyboard controller provides a simple interface to a matrix > keyboard. > diff --git a/arch/arm/dts/tegra20.dtsi b/arch/arm/dts/tegra20.dtsi > + kbc@7000e200 { > + compatible = "nvidia,tegra20-kbc"; > +

Re: [U-Boot] [PATCH v2] main: unify command parsing functions

2012-01-20 Thread Michael Walle
Am Freitag 20 Januar 2012, 23:46:51 schrieb Michael Walle: > Introduce source_commands() which incorporates run_command2() and parts of > source(). > > All command script are now treated the same, that is newlines are accepted > within a command script and variable. > > Signed-off-by: Michael Wal

Re: [U-Boot] [PATCH v3 7/9] tegra: Add tegra keyboard driver

2012-01-20 Thread Stephen Warren
On 01/16/2012 11:11 PM, Simon Glass wrote: > From: Rakesh Iyer > > Add support for internal matrix keyboard controller for Nvidia Tegra > platforms. > This driver uses the fdt decode function to obtain its key codes. ... > +static uchar *create_keymap(u32 *data, int len, int map_keycode, int *p

Re: [U-Boot] [PATCH] sandbox: add ifdef protection to os.h

2012-01-20 Thread Simon Glass
On Fri, Jan 20, 2012 at 11:07 AM, Mike Frysinger wrote: > Signed-off-by: Mike Frysinger Acked-by: Simon Glass > --- >  include/os.h |    5 + >  1 files changed, 5 insertions(+), 0 deletions(-) > > diff --git a/include/os.h b/include/os.h > index f3af4f0..c17a8a5 100644 > --- a/include/os.h

Re: [U-Boot] [PATCH v2] main: unify command parsing functions

2012-01-20 Thread Simon Glass
Hi Michael, On Fri, Jan 20, 2012 at 3:37 PM, Michael Walle wrote: > Am Freitag 20 Januar 2012, 23:46:51 schrieb Michael Walle: >> Introduce source_commands() which incorporates run_command2() and parts of >> source(). >> >> All command script are now treated the same, that is newlines are accepte

Re: [U-Boot] [PATCH] ARM: tegra: Define Tegra20 CAR binding

2012-01-20 Thread Olof Johansson
Hi, On Thu, Jan 19, 2012 at 9:17 AM, Stephen Warren wrote: > Olof Johansson wrote at Wednesday, January 18, 2012 10:32 PM: >> On Wed, Jan 18, 2012 at 05:16:52PM -0700, Stephen Warren wrote: >> > diff --git a/Documentation/devicetree/bindings/clock/nvidia,tegra20-car.txt >> > +* NVIDIA Tegra20 Clo