Re: [U-Boot] [PATCH] am33xx, spl, siemens: enable debug uart output again

2015-03-03 Thread Heiko Schocher
Hello Tom, Am 02.03.2015 14:59, schrieb Tom Rini: On Mon, Mar 02, 2015 at 07:56:41AM +0100, Heiko Schocher wrote: Hello Simon, Am 24.02.2015 14:31, schrieb Simon Glass: Hi Heiko, On 23 February 2015 at 23:18, Heiko Schocher wrote: a6b541b090: TI ARMv7: Don't use GD before crt0.S has set it

[U-Boot] [PATCH] fdtdec: Improve fdtdec_get_pci_bdf() documentation

2015-03-03 Thread Bin Meng
Add the description that how the compatible property is involved in the fdtdec_get_pci_bdf() documentation. Signed-off-by: Bin Meng --- include/fdtdec.h | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/fdtdec.h b/include/fdtdec.h index 1bc70db..eef78a7 100644 ---

[U-Boot] [PATCH] arm: rmobile: alt: Add ethernet function B support

2015-03-03 Thread Nobuhiro Iwamatsu
From: Mitsuhiro Kimura Ethernet function of Alt board can select normal and B by DIP switch on board. But user need to set not only DIP switch but also pin function. This adds pin function of Ethernet function B. This can select from Kconfig. Signed-off-by: Mitsuhiro Kimura Signed-off-by: Nobuh

Re: [U-Boot] Ask for help: Compulab CM-510 U-boot version: Load Kernel from SD-Card

2015-03-03 Thread Dmitry Lifshitz
Hi Gabriel, Try fixing CM-A510 related code: mvBoardEnvSpec.h ... ... /* CM-A510 */ #define CM_A510_MPP0_7 0x0033 #define CM_A510_MPP8_150x00445050 #define CM_A510_MPP16_23 0x4040 #define CM_

Re: [U-Boot] Bad colors on BMP display on LCD

2015-03-03 Thread Michael Trimarchi
Hi Component order Michael On 26 Feb 2015 17:53, "Guillaume Gardet" wrote: > Hi, > > I am trying to display a BMP image on a Samsung Chromebook (snow), but I > get wrong colors. The image is displayed but colors are bad. > > I used my own image and images provided in tools/logos/ folder, thay

Re: [U-Boot] Bad colors on BMP display on LCD

2015-03-03 Thread Hannes Petermaier
On 2015-03-03 15:55, Guillaume Gardet wrote: Hi, Hi Guillaume, Le 26/02/2015 18:10, Hannes Petermaier a écrit : Hi Guillaume, which imageformat (bpp) do you have? It depends on images tested. Most of them are: "PC bitmap, Windows 3.x format, XXX x YY x 8". Just see tools/logos/*.bmp in U

[U-Boot] [PATCH] ARM: atmel: sama5d4: set non-secured for peripherals

2015-03-03 Thread Bo Shen
When access the programmable secure peripherals address space, it needs set them to non-secured. Signed-off-by: Bo Shen --- arch/arm/mach-at91/armv7/sama5d4_devices.c | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm/mach-at91/armv7/sama5d4_devices.c b/arch/arm/mach-at91/ar

[U-Boot] [PATCH] Net: macb: reset GBE bit when fallback checking

2015-03-03 Thread Bo Shen
If the GBE bit is set, when do next time autonegotiation, if the result is not 1000Mbps, it will fallback to 100Mbps checking. So, we need to clear the GBE bit. Signed-off-by: Bo Shen --- drivers/net/macb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/macb.c b

[U-Boot] [PATCH 2/2] ARM: atmel: armv7: move spl lds to armv7 directory

2015-03-03 Thread Bo Shen
As the u-boot-spl.lds is used only for armv7 SoCs (includes sama5d3 and sama5d4), so move it to armv7 directory. Signed-off-by: Bo Shen --- arch/arm/mach-at91/{ => armv7}/u-boot-spl.lds | 0 include/configs/sama5d3_xplained.h| 2 +- include/configs/sama5d3xek.h | 2

[U-Boot] [PATCH 1/2] ARM: atmel: sama5d4 boards: fix spl lds location

2015-03-03 Thread Bo Shen
As the u-boot-spl.lds is moved to directory. So, correct the path for sama5d4 related boards. Signed-off-by: Bo Shen --- include/configs/sama5d4_xplained.h | 2 +- include/configs/sama5d4ek.h| 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/configs/sama5d4_

Re: [U-Boot] [PATCH v3 0/9] sf: Update flash params for supported read commands and sector size

2015-03-03 Thread Bin Meng
Hi Tom, On Wed, Mar 4, 2015 at 6:52 AM, Tom Rini wrote: > On Tue, Mar 03, 2015 at 04:31:44PM +0800, Bin Meng wrote: >> +Tom >> >> Hi Jagan, >> >> On Tue, Jan 27, 2015 at 9:50 PM, Bin Meng wrote: >> > Hi Jagan, >> > >> > On Sat, Jan 24, 2015 at 6:34 PM, Bin Meng wrote: >> >> Hi Jagan, >> >> >> >

Re: [U-Boot] [PATCH v6 4/6] arm: spl: Allow board_init_r() to run with a larger stack

2015-03-03 Thread Simon Glass
Hi Tom, On 3 March 2015 at 13:14, Tom Rini wrote: > On Tue, Mar 03, 2015 at 12:04:16PM -0700, Simon Glass wrote: >> Hi Tom, >> >> On 3 March 2015 at 10:49, Tom Rini wrote: >> > On Tue, Mar 03, 2015 at 08:03:00AM -0700, Simon Glass wrote: >> > >> >> At present SPL uses a single stack, either CONF

[U-Boot] [PATCH v5 26/27] sandbox: eth: Add support for using the 'lo' interface

2015-03-03 Thread Joe Hershberger
The 'lo' interface on Linux doesn't support thinks like ARP or link-layer access like we use to talk to a normal network interface. A higher-level network API must be used to access localhost. As written, this interface is limited to not supporting ICMP since the API doesn't allow the socket to be

[U-Boot] [PATCH v5 13/27] dm: eth: Add basic driver model support to Ethernet stack

2015-03-03 Thread Joe Hershberger
First just add support for MAC drivers. Signed-off-by: Joe Hershberger --- Changes in v5: -Add a note to doc/README.drivers.eth about its obsolescence -Expanded the Kconfig help -Moved dm/ header -Use local var for priv in eth_get_dev() Changes in v4: --Don't prevent eth_initialize on driver m

[U-Boot] [PATCH v5 12/27] cmd: net: Clean up return codes

2015-03-03 Thread Joe Hershberger
The return codes in common/cmd_net.c had a number of inconsistencies. Update them to all use the enum from command.h Signed-off-by: Joe Hershberger --- Changes in v5: -New to v5 Changes in v4: None Changes in v3: None Changes in v2: None common/cmd_net.c | 45 +---

[U-Boot] [PATCH v5 10/27] net: Make netretry actually do something

2015-03-03 Thread Joe Hershberger
netretry previously would only retry in one specific case (your MAC address is not set) and no other. This is basically useless. In the DM implementation for eth it turns this into a completely useless case since an un-configured MAC address results in not even entering the NetLoop. The behavior is

[U-Boot] [PATCH v5 27/27] net: Improve error handling

2015-03-03 Thread Joe Hershberger
Take a pass at plumbing errors through to the users of the network stack Currently only the start() function errors will be returned from NetLoop(). recv() tends not to have errors, so that is likely not worth adding. send() certainly can return errors, but this patch does not attempt to plumb the

[U-Boot] [PATCH v5 24/27] sandbox: eth: Add a bridge to a real network for sandbox

2015-03-03 Thread Joe Hershberger
Implement a bridge between u-boot's network stack and Linux's raw packet API allowing the sandbox to send and receive packets using the host machine's network interface. This raw Ethernet API requires elevated privileges. You can either run as root, or you can add the capability needed like so:

[U-Boot] [PATCH v5 15/27] dm: eth: Pass the packet pointer as a parameter to recv

2015-03-03 Thread Joe Hershberger
Stop forcing drivers to call net_process_received_packet() - formerly called NetReceive(). Now the uclass will handle calling the driver for each packet until the driver errors or has nothing to return. The uclass will then pass the good packets off to the network stack by calling net_process_recei

[U-Boot] [PATCH v5 25/27] sandbox: Enable DHCP and IP defrag

2015-03-03 Thread Joe Hershberger
This is now testable via the eth-raw interface Signed-off-by: Joe Hershberger Reviewed-by: Simon Glass --- Changes in v5: None Changes in v4: -New to v4 Changes in v3: None Changes in v2: None include/configs/sandbox.h | 8 1 file changed, 8 insertions(+) diff --git a/include/conf

[U-Boot] [PATCH v5 09/27] net: Remove the bd* parameter from net stack functions

2015-03-03 Thread Joe Hershberger
This value is not used by the network stack and is available in the global data, so stop passing it around. For the one legacy function that still expects it (init op on old Ethernet drivers) pass in the global pointer version directly to avoid changing that interface. Signed-off-by: Joe Hershber

[U-Boot] [PATCH v5 07/27] net: Change return codes from net/eth.c to use errorno constants

2015-03-03 Thread Joe Hershberger
Many functions returned -1 previously. Change them to return appropriate error codes. Signed-off-by: Joe Hershberger Reported-by: Simon Glass Reviewed-by: Simon Glass --- Changes in v5: None Changes in v4: -New to v4 Changes in v3: None Changes in v2: None net/eth.c | 12 ++-- 1 fi

[U-Boot] [PATCH v5 11/27] net: Access mapped physmem in net functions

2015-03-03 Thread Joe Hershberger
Previously the net functions would access memory assuming physmem did not need to be mapped. In sandbox, that's not the case. Now we map the physmem specified by the user in loadaddr to the buffer that represents that space. Signed-off-by: Joe Hershberger --- Changes in v5: -Include new mapme

[U-Boot] [PATCH v5 03/27] net: Provide a function to get the current MAC address

2015-03-03 Thread Joe Hershberger
The current implementation exposes the eth_device struct to code that needs to access the MAC address. Add a wrapper function for this to abstract away the pointer for this operation. Signed-off-by: Joe Hershberger Reviewed-by: Simon Glass --- Changes in v5: None Changes in v4: None Changes in

[U-Boot] [PATCH v5 19/27] dm: eth: Add support for aliases

2015-03-03 Thread Joe Hershberger
Allow network devices to be referred to as "eth0" instead of "eth@12345678" when specified in ethact. Add tests to verify this behavior. Signed-off-by: Joe Hershberger Reviewed-by: Simon Glass --- Changes in v5: -Added a comment about devname -Only check for alias if the name is long enough

[U-Boot] [PATCH v5 06/27] net: Refactor in preparation for driver model

2015-03-03 Thread Joe Hershberger
Move some things around and organize things so that the driver model implementation will fit in more easily. Signed-off-by: Joe Hershberger Reviewed-by: Simon Glass --- Changes in v5: -Fixed warning from missing declaration Changes in v4: -Fix compile regression in !DM_ETH case Changes in v3

[U-Boot] [PATCH v5 0/27] Add Driver Model support to network stack

2015-03-03 Thread Joe Hershberger
Add support for the Ethernet MAC controllers. Phy support will come later. Switching from RFC to a patch series to be applied to dm/master as a staging area for this series to make it happen more quickly when the window opens. If desired, let me know which of the non-DM related prerequisite patc

[U-Boot] [PATCH v5 18/27] test: dm: eth: Add tests for the eth dm implementation

2015-03-03 Thread Joe Hershberger
Add a test for the eth uclass using the sandbox eth driver. Verify basic functionality of the network stack / eth uclass by exercising the ping function. Signed-off-by: Joe Hershberger Reviewed-by: Simon Glass --- Changes in v5: None Changes in v4: None Changes in v3: -Added dm eth testing Ch

[U-Boot] [PATCH v5 21/27] test: dm: eth: Add testing for ethrotate env var

2015-03-03 Thread Joe Hershberger
Make sure that the ethrotate behavior occurs as expected. Signed-off-by: Joe Hershberger Reviewed-by: Simon Glass --- Changes in v5: -Added a test for skipping un-probe-able devices Changes in v4: -Added testing for ethrotate Changes in v3: None Changes in v2: None test/dm/eth.c | 42 +

[U-Boot] [PATCH v5 22/27] sandbox: eth: Add ability to disable ping reply in sandbox eth driver

2015-03-03 Thread Joe Hershberger
This is needed to test the netretry functionality (make the command fail on a sandbox eth device). Signed-off-by: Joe Hershberger --- Changes in v5: -Use a function call to change mock driver behavior Changes in v4: -Add ability to disable ping reply in sandbox eth driver Changes in v3: None

[U-Boot] [PATCH v5 16/27] sandbox: eth: Add network support to sandbox

2015-03-03 Thread Joe Hershberger
Add basic network support to sandbox which includes a network driver. Signed-off-by: Joe Hershberger Reviewed-by: Simon Glass --- Changes in v5: -Added help to the sandbox eth mock driver Kconfig entry Changes in v4: -Cleaned up sandbox EXTRA_ENV define -Moved config to Kconfig Changes in v3

[U-Boot] [PATCH v5 20/27] dm: eth: Add support for ethprime env var

2015-03-03 Thread Joe Hershberger
The ethprime env var is used to indicate the starting device if none is specified in ethact. Also support aliases specified in the ethprime var. Signed-off-by: Joe Hershberger Reviewed-by: Simon Glass --- Changes in v5: -Fix compile error on !DM_ETH Changes in v4: -Load from ethprime on eth_i

[U-Boot] [PATCH v5 17/27] sandbox: eth: Add ARP and PING response to sandbox driver

2015-03-03 Thread Joe Hershberger
The sandbox driver will now generate response traffic to exercise the ping command even when no network exists. This allows the basic data pathways of the DM to be tested. Signed-off-by: Joe Hershberger Reviewed-by: Simon Glass --- Changes in v5: -Simplify sandbox eth driver by switching from

[U-Boot] [PATCH v5 01/27] test: dm: Reorder the objects to build

2015-03-03 Thread Joe Hershberger
Signed-off-by: Joe Hershberger Acked-by: Simon Glass --- Changes in v5: None Changes in v4: None Changes in v3: -Reorder dm test makefile Changes in v2: None test/dm/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/dm/Makefile b/test/dm/Makefile index 612

[U-Boot] [PATCH v5 08/27] net: Use int instead of u8 for boolean flag

2015-03-03 Thread Joe Hershberger
On some archs masking the parameter is inefficient, so don't use u8. Signed-off-by: Joe Hershberger Reported-by: Simon Glass Reviewed-by: Simon Glass --- Changes in v5: None Changes in v4: -New to v4 Changes in v3: None Changes in v2: None include/net.h | 2 +- net/eth.c | 2 +- 2 file

[U-Boot] [PATCH v5 14/27] net: Clean up network stack names used in DM drivers

2015-03-03 Thread Joe Hershberger
Take the opportunity to enforce better names on newly written or retrofitted Ethernet drivers. Signed-off-by: Joe Hershberger --- Changes in v5: -New to v5 Changes in v4: None Changes in v3: None Changes in v2: None include/net.h | 9 - net/net.c | 30 +++

[U-Boot] [PATCH v5 05/27] net: Remove unneeded "extern" in net.h

2015-03-03 Thread Joe Hershberger
Many of the functions in net.h were preceded extern needlessly. Removing them to limit the number of checkpatch.pl complaints. Signed-off-by: Joe Hershberger Reviewed-by: Simon Glass --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None include/net.h | 92 +++

[U-Boot] [PATCH v5 02/27] common: Make sure arch-specific map_sysmem() is defined

2015-03-03 Thread Joe Hershberger
In the case where the arch defines a custom map_sysmem(), make sure that including just common.h is sufficient to have these functions as they are when the arch does not override it. Signed-off-by: Joe Hershberger --- Changes in v5: -Moved to a separate header mapmem.h Changes in v4: -New to v

[U-Boot] [PATCH v5 04/27] net: Rename helper function to be more clear

2015-03-03 Thread Joe Hershberger
Make it clear that the helper is checking the addr, not setting it. Signed-off-by: Joe Hershberger Reviewed-by: Simon Glass --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None net/eth.c | 13 - 1 file changed, 4 insertions(+), 9 deletions(-) diff -

[U-Boot] [PATCH v5 23/27] test: dm: net: Add a test of the netretry behavior

2015-03-03 Thread Joe Hershberger
The effect of the "netretry" env var was recently changed. This test checks that behavior. Signed-off-by: Joe Hershberger --- Changes in v5: -Added comments about test cases -Switched to function to control state of mock driver Changes in v4: -Updated expected behavior based on changes to the

Re: [U-Boot] [PATCH] Don't apply: tools: add a tool to move automatically CONFIGs from headers to defconfigs

2015-03-03 Thread Simon Glass
Hi Masahiro, On 19 January 2015 at 05:12, Masahiro Yamada wrote: > This tool can move CONFIG macros from C headers (include/configs/*.h) > to defconfigs (configs/*_defconfig) all over the boards. > > There are tons of CONFIGs in U-boot and moving them by hand is > absolutely tool painful. I wrot

Re: [U-Boot] u-boot for Snow problem

2015-03-03 Thread Simon Glass
Hi Michal, On 2 March 2015 at 04:25, Michal Suchanek wrote: > Hello, > > On 18 February 2015 at 06:24, Michal Suchanek wrote: >> On 18 February 2015 at 03:27, Simon Glass wrote: >>> Hi Michal, >>> >>> On 16 February 2015 at 04:41, Michal Suchanek wrote: On 13 February 2015 at 05:51, Simon

Re: [U-Boot] [RFC PATCH 05/13] dts: sunxi: Bring in Ethernet device tree bindings

2015-03-03 Thread Simon Glass
Hi Ian, On 3 March 2015 at 01:36, Ian Campbell wrote: > On Sun, 2015-03-01 at 09:33 -0700, Simon Glass wrote: >> Since we will use these bindings on sunxi, bring them in from Linux >> 4.0-rc1. >> >> Signed-off-by: Simon Glass > > Acked-by: Ian Campbell > > Although I do wonder if rather than im

Re: [U-Boot] [RFC PATCH 12/13] dm: sunxi: Support driver model for Ethernet

2015-03-03 Thread Simon Glass
Hi Ian, On 3 March 2015 at 01:40, Ian Campbell wrote: > On Sun, 2015-03-01 at 09:33 -0700, Simon Glass wrote: >> Adjust the Ethernet initialisation code to support driver model. >> It is no-longer necessary to call designware_initialize(). The device will >> be probed when it is used. The PHY typ

Re: [U-Boot] [RFC PATCH 13/13] dm: sunxi: Use driver model for Ethernet on Linksprite pcDuino3

2015-03-03 Thread Simon Glass
Hi Ian, On 3 March 2015 at 01:41, Ian Campbell wrote: > On Sun, 2015-03-01 at 09:33 -0700, Simon Glass wrote: >> Switch this board over to use driver model for Ethernet >> >> Cover-letter >> RFC: dm: net: Conversion patches for sunxi driver model Ethernet >> This series is for Joe Hershberger. It

Re: [U-Boot] [RFC PATCH v4 0/23] Add Driver Model support to network stack

2015-03-03 Thread Simon Glass
Hi Joe, On 3 March 2015 at 16:32, Joe Hershberger wrote: > Hi Simon, > > > On Tue, Mar 3, 2015 at 5:14 PM, Simon Glass wrote: >> >> Hi Joe, >> >> On 3 March 2015 at 15:29, Joe Hershberger >> wrote: >> > On Sun, Mar 1, 2015 at 10:13 AM, Simon Glass wrote: >> > >> > [snip] >> > >> >> - I think t

Re: [U-Boot] [RFC PATCH v4 0/23] Add Driver Model support to network stack

2015-03-03 Thread Joe Hershberger
Hi Simon, On Tue, Mar 3, 2015 at 5:14 PM, Simon Glass wrote: > > Hi Joe, > > On 3 March 2015 at 15:29, Joe Hershberger wrote: > > On Sun, Mar 1, 2015 at 10:13 AM, Simon Glass wrote: > > > > [snip] > > > >> - I think the recv() method should change before long. The > >> NetReceive() call should

[U-Boot] [ANN] U-Boot v2015.04-rc3 released

2015-03-03 Thread Tom Rini
Hey all, I've pushed v2015.04-rc3 out to the repository and tarballs should exist soon. We're 2 weeks after -rc2 came out. I need to go and look for outstanding odds and ends and such tomorrow and I think once Simon fixes the SPL series he's doing for BBB I'll be confident enough to pull that in

Re: [U-Boot] [RFC PATCH v4 0/23] Add Driver Model support to network stack

2015-03-03 Thread Simon Glass
Hi Joe, On 3 March 2015 at 15:29, Joe Hershberger wrote: > On Sun, Mar 1, 2015 at 10:13 AM, Simon Glass wrote: > > [snip] > >> - I think the recv() method should change before long. The >> NetReceive() call should be made from the uclass since it is common to >> all drivers. Then the recv() meth

Re: [U-Boot] [PATCH v3 0/9] sf: Update flash params for supported read commands and sector size

2015-03-03 Thread Tom Rini
On Tue, Mar 03, 2015 at 04:31:44PM +0800, Bin Meng wrote: > +Tom > > Hi Jagan, > > On Tue, Jan 27, 2015 at 9:50 PM, Bin Meng wrote: > > Hi Jagan, > > > > On Sat, Jan 24, 2015 at 6:34 PM, Bin Meng wrote: > >> Hi Jagan, > >> > >> On Mon, Jan 12, 2015 at 2:52 PM, Jagan Teki > >> wrote: > >>> On

Re: [U-Boot] [PATCH] usb_storage : scan all interfaces to find a storage device

2015-03-03 Thread Marek Vasut
On Tuesday, March 03, 2015 at 10:17:11 PM, franck.jull...@gmail.com wrote: > From: Franck Jullien > > Mass storage is not necessary present on interface 0. This > patch allow usb_stor_scan to look in every available interface. > > Signed-off-by: Franck Jullien Hi! Do you happen to have such a

Re: [U-Boot] [RFC PATCH v4 0/23] Add Driver Model support to network stack

2015-03-03 Thread Joe Hershberger
On Sun, Mar 1, 2015 at 10:13 AM, Simon Glass wrote: [snip] > - I think the recv() method should change before long. The > NetReceive() call should be made from the uclass since it is common to > all drivers. Then the recv() method can return a packet if it finds > one, but not submit it for proc

[U-Boot] [PATCH V4 09/11] ARM: OMAP5 / DRA7: Setup L2 Aux Control Register with recommended configuration

2015-03-03 Thread Nishanth Menon
Update to existing recommendation for L2ACTLR configuration to prevent system instability and optimize performance. These apply to both OMAP5 and DRA7. Reported-by: Vivek Chengalvala Signed-off-by: Nishanth Menon --- arch/arm/cpu/armv7/omap5/hwinit.c | 16 1 file changed, 16

[U-Boot] [PATCH V4 00/11] ARM: OMAP3-DRA7: CP15 erratum workarounds and improvements

2015-03-03 Thread Nishanth Menon
The fourth incarnation of this series to address review comments on V3 With all the usual disclaimers and request to see V1 of the series for a detailed blurb.. As usual additional testing preferred.. Sorry, I dont have access to all possible variants atm.. changes since v3: - few correct

[U-Boot] [PATCH V4 04/11] ARM: Introduce erratum workaround for 621766

2015-03-03 Thread Nishanth Menon
621766: Under a specific set of conditions, executing a sequence of NEON or vfp load instructions can cause processor deadlock Impacts: Every Cortex-A8 processors with revision lower than r2p1 Work around: Set L1NEON to 1 Based on ARM errata Document revision 20.0 (13 Nov 2010) Signed-off

[U-Boot] [PATCH V4 11/11] ARM: OMAP3: rx51: Enable workaround for ARM errata 454179, 430973, 621766

2015-03-03 Thread Nishanth Menon
RX51 has a secure logic which uses different parameters compared to traditional implementation. So, make the generic secure acr write over-ride-able by board file and refactor rx51 code to use this. While at it, enable the OMAP3 specific errata code for 454179, 430973, 621766. Signed-off-by: Nish

[U-Boot] [PATCH V4 06/11] ARM: OMAP3: Rename omap3.h to omap.h to be generic as all SoCs

2015-03-03 Thread Nishanth Menon
This is in preperation of using generic cross OMAP code. Signed-off-by: Nishanth Menon --- .../arm/include/asm/arch-omap3/{omap3.h => omap.h} |0 include/configs/am3517_crane.h |2 +- include/configs/am3517_evm.h |2 +- include/configs/cm_t35

[U-Boot] [PATCH V4 10/11] ARM: OMAP3: Enable workaround for ARM errata 454179, 430973, 621766

2015-03-03 Thread Nishanth Menon
Enable the OMAP3 specific errata code for 454179, 430973, 621766 and while at it, remove legacy non-revision checked errata logic. Signed-off-by: Nishanth Menon --- arch/arm/cpu/armv7/omap3/board.c | 31 ++- include/configs/am3517_crane.h |4 include/

[U-Boot] [PATCH V4 05/11] ARM: OMAP: Change set_pl310_ctrl_reg to be generic

2015-03-03 Thread Nishanth Menon
set_pl310_ctrl_reg does use the Secure Monitor Call (SMC) to setup PL310 control register, however, that is something that is generic enough to be used for OMAP5 generation of processors as well. The only difference being the service being invoked for the function. So, convert the service to a mac

[U-Boot] [PATCH V4 08/11] ARM: DRA7 / OMAP5: Add workaround for ARM errata 798870

2015-03-03 Thread Nishanth Menon
From: Praveen Rao This patch enables the workaround for ARM errata 798870 for OMAP5 / DRA7 which says "If back-to-back speculative cache line fills (fill A and fill B) are issued from the L1 data cache of a CPU to the L2 cache, the second request (fill B) is then cancelled, and the second request

[U-Boot] [PATCH V4 01/11] ARM: Introduce erratum workaround for 798870

2015-03-03 Thread Nishanth Menon
Add workaround for Cortex-A15 ARM erratum 798870 which says "If back-to-back speculative cache line fills (fill A and fill B) are issued from the L1 data cache of a CPU to the L2 cache, the second request (fill B) is then cancelled, and the second request would have detected a hazard against a rece

[U-Boot] [PATCH V4 07/11] ARM: OMAP3: Get rid of omap3_gp_romcode_call and replace with omap_smc1

2015-03-03 Thread Nishanth Menon
omap_smc1 is now generic enough to remove duplicate omap3_gp_romcode_call logic that omap3 introduced. As part of this change, move to using the generic lowlevel_init.S for omap3 as well. Signed-off-by: Nishanth Menon --- arch/arm/cpu/armv7/omap-common/Makefile|2 +- arch/arm/cpu/ar

[U-Boot] [PATCH V4 03/11] ARM: Introduce erratum workaround for 430973

2015-03-03 Thread Nishanth Menon
430973: Stale prediction on replaced inter working branch causes Cortex-A8 to execute in the wrong ARM/Thumb state Impacts: Every Cortex-A8 processors with revision lower than r2p1 Work around: Set IBE to 1 Based on ARM errata Document revision 20.0 (13 Nov 2010) Signed-off-by: Nishanth M

[U-Boot] [PATCH V4 02/11] ARM: Introduce erratum workaround for 454179

2015-03-03 Thread Nishanth Menon
454179: Stale prediction may inhibit target address misprediction on next predicted taken branch Impacts: Every Cortex-A8 processors with revision lower than r2p1 Work around: Set IBE and disable branch size mispredict to 1 Also provide a hook for SoC specific handling to take place if ne

Re: [U-Boot] [PATCH 00/14] usb: dwc3: Fixes and improvements for DWC3 driver

2015-03-03 Thread Marek Vasut
On Tuesday, March 03, 2015 at 05:32:02 PM, Lukasz Majewski wrote: > This patch set should be applied on top of recent Kishon Vijay Abraham I > work (v2) regarding providing dwc3 support to u-boot as well as clean up > of the linux-compat header file. > > For the whole patch set please refer to -df

[U-Boot] [PATCH] sunxi: Add support for the Forfun Q88DB tablet

2015-03-03 Thread Jens Lucius
The Forfun Q88DB is an A13 tablet in the common Q8 format. Features are 512MB RAM, 4GB NAND, 7" Display, RTL8188 Wifi, 2 cameras. For more details see: http://linux-sunxi.org/Forfun_Q88DB Signed-off-by: Jens Lucius --- :100644 100644 9a287d3... cfc2764... M board/sunxi/MAINTAINERS :00 100

Re: [U-Boot] [PATCH] mx6sabre_common.h: remove deprecated mmc open/close

2015-03-03 Thread Otavio Salvador
On Tue, Mar 3, 2015 at 11:48 AM, Maxin B. John wrote: > Replace "mmc open/close" with "mmc dev" in mx6sabre_common.h as those commands > were removed with this commit: 614b2bf1c9bf80dbad24f5e5ce1d115bf24a831d > > cmd_mmc.c: Drop open/close mmc sub-commands > > Signed-off-by: Maxin B. John Ac

[U-Boot] Question about board-specific Makefile actions

2015-03-03 Thread James Chargin
I have a custom board in a git workspace for U-Boot 2014.07. I've copied most of this from the .../board/ti/beagle. My board directory Makefile looks like 8<--- obj-y := board.o 8<--- I'd like to add a few files to this directory that are processed during "make all" and have any newly derived

Re: [U-Boot] [PATCH 0/9] ARM: tegra: pinmux: Tegra210 support

2015-03-03 Thread Tom Warren
I'm using this locally, so I'll apply it and push a new u-boot-tegra/next. > -Original Message- > From: Stephen Warren [mailto:swar...@wwwdotorg.org] > Sent: Tuesday, March 03, 2015 1:20 PM > To: Tom Warren > Cc: u-boot@lists.denx.de; Simon Glass; Stephen Warren > Subject: Re: [U-Boot] [PA

Re: [U-Boot] [PATCH V2 2/2] ARM: tegra: import latest Jetson TK1 pinmux

2015-03-03 Thread Tom Warren
I've been side-tracked with other work. Let me take another look, if it's all gravy I'll apply them to u-boot-tegra/next. > -Original Message- > From: Stephen Warren [mailto:swar...@wwwdotorg.org] > Sent: Tuesday, March 03, 2015 1:19 PM > To: Tom Warren > Cc: u-boot@lists.denx.de; Simon G

Re: [U-Boot] [PATCH V2 2/2] ARM: tegra: import latest Jetson TK1 pinmux

2015-03-03 Thread Stephen Warren
On 02/18/2015 01:27 PM, Stephen Warren wrote: From: Stephen Warren Syseng has revamped the Jetson TK1 pinmux spreadsheet, basing the content completely on correct configuration for the board/schematic, rather than the previous version which was based on the bare minimum changes relative to anot

Re: [U-Boot] [PATCH 0/9] ARM: tegra: pinmux: Tegra210 support

2015-03-03 Thread Stephen Warren
On 02/24/2015 02:08 PM, Stephen Warren wrote: This series performs a few small cleanups to or parameterizations of the existing Tegra pinmux driver, and adds Tegra210 support. The Tegra210 code isn't actually used yet, since the balance of the Tegra210 support is not yet present. However, it shou

Re: [U-Boot] [PATCH v6 4/6] arm: spl: Allow board_init_r() to run with a larger stack

2015-03-03 Thread Tom Rini
On Tue, Mar 03, 2015 at 12:04:16PM -0700, Simon Glass wrote: > Hi Tom, > > On 3 March 2015 at 10:49, Tom Rini wrote: > > On Tue, Mar 03, 2015 at 08:03:00AM -0700, Simon Glass wrote: > > > >> At present SPL uses a single stack, either CONFIG_SPL_STACK or > >> CONFIG_SYS_INIT_SP_ADDR. Since some SP

Re: [U-Boot] [PATCH v6 4/6] arm: spl: Allow board_init_r() to run with a larger stack

2015-03-03 Thread Simon Glass
Hi Tom, On 3 March 2015 at 10:49, Tom Rini wrote: > On Tue, Mar 03, 2015 at 08:03:00AM -0700, Simon Glass wrote: > >> At present SPL uses a single stack, either CONFIG_SPL_STACK or >> CONFIG_SYS_INIT_SP_ADDR. Since some SPL features (such as MMC and >> environment) require a lot of stack, some bo

Re: [U-Boot] [PATCH 07/14] mx31pdk: Use the default CONFIG_SYS_PBSIZE

2015-03-03 Thread Magnus Lilja
Hi On 2 March 2015 at 18:14, Fabio Estevam wrote: > Entering the maximum number of characters defined by CONFIG_SYS_CBSIZE into > the console and hitting enter afterwards, causes a hang in the system because > CONFIG_SYS_PBSIZE is not capable of storing the extra characters of the error > message

Re: [U-Boot] [U-boot][PATCH] keystone2: add support for UART download

2015-03-03 Thread Vitaly Andrianov
On 03/03/2015 12:27 PM, Nishanth Menon wrote: On 02/18/2015 09:35 AM, menon.nisha...@gmail.com wrote: On Wed, Feb 18, 2015 at 7:12 AM, Vitaly Andrianov wrote: On 02/17/2015 05:47 PM, Nishanth Menon wrote: On Tue, Feb 17, 2015 at 4:27 PM, Murali Karicheri wrote: is complete the boot-load

Re: [U-Boot] [PATCH V3 05/11] ARM: OMAP: Change set_pl310_ctrl_reg to be generic

2015-03-03 Thread Tom Rini
On Tue, Mar 03, 2015 at 11:12:33AM -0600, Nishanth Menon wrote: > On 03/03/2015 11:08 AM, Tom Rini wrote: > > On Wed, Feb 25, 2015 at 02:55:13PM -0600, Nishanth Menon wrote: > > > >> set_pl310_ctrl_reg does use the Secure Monitor Call (SMC) to setup > >> PL310 control register, however, that is so

Re: [U-Boot] [PATCH V3 05/11] ARM: OMAP: Change set_pl310_ctrl_reg to be generic

2015-03-03 Thread Nishanth Menon
On 03/03/2015 11:12 AM, Nishanth Menon wrote: > On 03/03/2015 11:08 AM, Tom Rini wrote: >> On Wed, Feb 25, 2015 at 02:55:13PM -0600, Nishanth Menon wrote: >> >>> set_pl310_ctrl_reg does use the Secure Monitor Call (SMC) to setup >>> PL310 control register, however, that is something that is generic

Re: [U-Boot] [PATCH v6 4/6] arm: spl: Allow board_init_r() to run with a larger stack

2015-03-03 Thread Tom Rini
On Tue, Mar 03, 2015 at 08:03:00AM -0700, Simon Glass wrote: > At present SPL uses a single stack, either CONFIG_SPL_STACK or > CONFIG_SYS_INIT_SP_ADDR. Since some SPL features (such as MMC and > environment) require a lot of stack, some boards set CONFIG_SPL_STACK to > point into SDRAM. They then

Re: [U-Boot] [PATCH v1 4/4] ARM: DRA7: fastboot: Implement reboot-bootloader command

2015-03-03 Thread Nishanth Menon
On 03/03/2015 11:31 AM, Dileep Katta wrote: > On 3 March 2015 at 19:45, Rob Herring wrote: > >> On Tue, Mar 3, 2015 at 5:10 AM, Dileep Katta >> wrote: [...] >>> diff --git a/common/cmd_bootm.c b/common/cmd_bootm.c >>> index 48199bf..00791be 100644 >>> --- a/common/cmd_bootm.c >>> +++ b/common/c

Re: [U-Boot] [PATCH v1 4/4] ARM: DRA7: fastboot: Implement reboot-bootloader command

2015-03-03 Thread Dileep Katta
Hi Rob, On 3 March 2015 at 19:45, Rob Herring wrote: > On Tue, Mar 3, 2015 at 5:10 AM, Dileep Katta > wrote: > > Signed-off-by: Angela Stegmaier > > Signed-off-by: Dileep Katta > > --- > > board/ti/dra7xx/Makefile | 1 + > > board/ti/dra7xx/fastboot.c | 45 > ++

Re: [U-Boot] [U-boot][PATCH] keystone2: add support for UART download

2015-03-03 Thread Nishanth Menon
On 02/18/2015 09:35 AM, menon.nisha...@gmail.com wrote: > On Wed, Feb 18, 2015 at 7:12 AM, Vitaly Andrianov wrote: >> >> >> On 02/17/2015 05:47 PM, Nishanth Menon wrote: >>> >>> On Tue, Feb 17, 2015 at 4:27 PM, Murali Karicheri >>> wrote: >> >> is complete the boot-loader sets the PC to t

Re: [U-Boot] [PATCH V3 05/11] ARM: OMAP: Change set_pl310_ctrl_reg to be generic

2015-03-03 Thread Tom Rini
On Wed, Feb 25, 2015 at 02:55:13PM -0600, Nishanth Menon wrote: > set_pl310_ctrl_reg does use the Secure Monitor Call (SMC) to setup > PL310 control register, however, that is something that is generic > enough to be used for OMAP5 generation of processors as well. The > only difference being the

Re: [U-Boot] [PATCH V3 05/11] ARM: OMAP: Change set_pl310_ctrl_reg to be generic

2015-03-03 Thread Nishanth Menon
On 03/03/2015 11:08 AM, Tom Rini wrote: > On Wed, Feb 25, 2015 at 02:55:13PM -0600, Nishanth Menon wrote: > >> set_pl310_ctrl_reg does use the Secure Monitor Call (SMC) to setup >> PL310 control register, however, that is something that is generic >> enough to be used for OMAP5 generation of proce

[U-Boot] [PATCH] watchdog/imx_watchdog: do not set WCR_WDW

2015-03-03 Thread Sebastian Andrzej Siewior
with WCR_WDW set, the watchdog won't trigger if we bootet linux and idle around while the watchdog is not triggered. It seems the timer makes progress very slowly if at all. I managed to remain 20minutes alive while the timeout was set to 60secs. It reboots within 60secs if I start a busyloop in us

[U-Boot] [PATCH 05/14] usb: composite: Add .reset callback to usb_gadget_driver structure

2015-03-03 Thread Lukasz Majewski
DWC3 UDC driver requires presence of .reset callback in a composite driver. This setting is similar to the one nowadays present in linux kernel. Signed-off-by: Lukasz Majewski --- drivers/usb/gadget/composite.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/gadget/composite.c b/

[U-Boot] [PATCH 13/14] usb: dwc3: Correct clean up code for requests

2015-03-03 Thread Lukasz Majewski
For u-boot dwc3 driver the scatter gather list support has been removed from original linux code. It is correct, since we try to send one request at a time. However, the cleanup left spurious break, which caused early exit from loop at dwc3_cleanup_done_reqs() function. As a result the dwc3_gadget

[U-Boot] [PATCH 06/14] usb: dwc3: Remove BIT(x) macro from DWC3's gadget code

2015-03-03 Thread Lukasz Majewski
The BIT() macro is used only in those places, so it is reasonable to replace it by a constant value. Signed-off-by: Lukasz Majewski --- drivers/usb/dwc3/core.h | 2 +- drivers/usb/dwc3/gadget.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/dwc3/core.h b/dri

[U-Boot] [PATCH 11/14] usb: dwc3: gadget: Set all ctrl fields of Transfer Control Blocks (TRB) to be LST

2015-03-03 Thread Lukasz Majewski
It turned out that current dwc3 gadget code is preparing multiple TRBs for a transfer. Unfortunately, when multiple requests are in the same queue, only for the last one the LST (last) ctrl bit is set. Due to that dwc3 HW executes all TRBs up till the one marked as last. Unfortunately, UMS require

[U-Boot] [PATCH 12/14] usb: dwc3: gadget: Set non EP0 max packet limit to 512B

2015-03-03 Thread Lukasz Majewski
Commit "drivers/dwc3: add a workaround for too small OUT requests" sets max packet for OUT requests when transfer is smaller. Until this change the default maxpacket for non EP0 EPs was 1024. This is too much, since UMS LBA size is 512B Signed-off-by: Lukasz Majewski --- drivers/usb/dwc3/gadget

[U-Boot] [PATCH 07/14] usb: dwc3: make dwc3_set_mode to static

2015-03-03 Thread Lukasz Majewski
From: Joonyoung Shim This commit makes the dwc3_set_mode() as static, to prevent collisions. Signed-off-by: Joonyoung Shim Signed-off-by: Lukasz Majewski --- drivers/usb/dwc3/core.c | 2 +- drivers/usb/dwc3/core.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/us

[U-Boot] [PATCH 02/14] usb: board: goni: Add default board_usb_cleanup() definition for Goni board

2015-03-03 Thread Lukasz Majewski
This definition is necessary for S5PC110 based GONI board to work properly. Signed-off-by: Lukasz Majewski --- board/samsung/goni/goni.c | 5 + 1 file changed, 5 insertions(+) diff --git a/board/samsung/goni/goni.c b/board/samsung/goni/goni.c index 58cf96e..d943d63 100644 --- a/board/samsun

[U-Boot] [PATCH 01/14] usb: board: samsung: Add default board_usb_cleanup() definition for Exynos SoCs

2015-03-03 Thread Lukasz Majewski
This definition is necessary for Exynos based boards to work properly. Signed-off-by: Lukasz Majewski --- board/samsung/common/board.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/board/samsung/common/board.c b/board/samsung/common/board.c index 6c7f59b..7b10877 100644 --- a/board/s

[U-Boot] Ask for help: Compulab CM-510 U-boot version: Load Kernel from SD-Card

2015-03-03 Thread Gabriel Dobato
Hello, I am trying to boot the kernel image from SD-CARD (mmc0) in the CM-510 SoM(provided by Compulab) using the u-boot image provided by Compulab: http://www.compulab.co.il/products/computer-on-modules/cm-a510/#devres By default, it seems SD-Card is not enabled, so I think I have to config

[U-Boot] [PATCH 00/14] usb: dwc3: Fixes and improvements for DWC3 driver

2015-03-03 Thread Lukasz Majewski
This patch set should be applied on top of recent Kishon Vijay Abraham I work (v2) regarding providing dwc3 support to u-boot as well as clean up of the linux-compat header file. For the whole patch set please refer to -dfu u-boot repo, branch (devel/dwc3_gadget): http://git.denx.de/?p=u-boot/u-bo

[U-Boot] [PATCH 03/14] usb: gadget: UMS: Invoke board specific USB cleanup interface

2015-03-03 Thread Lukasz Majewski
From: Inha Song This patch invokes board-specific USB cleanup (board_usb_cleanup) function in the mass storage gadget Signed-off-by: Inha Song --- common/cmd_usb_mass_storage.c | 1 + 1 file changed, 1 insertion(+) diff --git a/common/cmd_usb_mass_storage.c b/common/cmd_usb_mass_storage.c ind

Re: [U-Boot] [PATCH] spl_mem_init.c : Added support for mDDR in SPL for i.MX28

2015-03-03 Thread Stefano Babic
Hi Marco, On 23/02/2015 15:34, Marco Cavallini wrote: > > Signed-off-by: Marco Cavallini > --- > arch/arm/cpu/arm926ejs/mxs/spl_mem_init.c | 18 ++ > 1 file changed, 18 insertions(+) > > diff --git a/arch/arm/cpu/arm926ejs/mxs/spl_mem_init.c > b/arch/arm/cpu/arm926ejs/mxs/sp

Re: [U-Boot] [PATCH v2 00/12] Power(full) framework based on Driver Model

2015-03-03 Thread Przemyslaw Marczak
And the patchset on github: https://github.com/bobenstein/u-boot/tree/dm-pmic-v2 Best regards, -- Przemyslaw Marczak Samsung R&D Institute Poland Samsung Electronics p.marc...@samsung.com ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.d

[U-Boot] [PATCH 14/14] usb: gadget: thor: Claim EP after allocating it in thor gadget

2015-03-03 Thread Lukasz Majewski
From: Marek Szyprowski Storing thor device struct as an EP private data. It is necessary for DWC3 operation. Signed-off-by: Marek Szyprowski --- drivers/usb/gadget/f_thor.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/usb/gadget/f_thor.c b/drivers/usb/gadget/f_thor.c index 1f

[U-Boot] [PATCH 10/14] usb: dwc3: optimize interrupt loop

2015-03-03 Thread Lukasz Majewski
From: Marek Szyprowski There is no point in calling dwc3_thread_interrupt() if no event is pending. There is also no point in flushing event cache in EVERY loop iteration. Signed-off-by: Marek Szyprowski --- drivers/usb/dwc3/core.c | 7 --- drivers/usb/dwc3/gadget.c | 15 +--

  1   2   >