[U-Boot] [PATCH] sunxi: Support the FEL boot mode in the regular u-boot build

2015-02-16 Thread Siarhei Siamashka
So that the CONFIG_SPL_FEL option is not needed anymore. And the regular SPL binary, generated by the default u-boot build, is now also bootable over USB in the FEL mode. The SPL still can boot from the SD card too. A bunch of system registers need to be saved/restored in order to ensure that the

Re: [U-Boot] [u-boot 03/40] usb: gadget: udc: add udc-core from linux kernel to u-boot

2015-02-16 Thread Lukasz Majewski
Hi Marek, > On Friday, February 06, 2015 at 09:47:40 AM, Kishon Vijay Abraham I > wrote: > > Added udc-core.c from linux kernel 3.19-rc1 (97bf6af1f9) to u-boot. > > This will be adapted to work with u-boot in the > > following patches. > > Adding support for udc will help to seamlessly port dwc3 d

Re: [U-Boot] [u-boot 01/40] ARM: DRA7: Enable clocks for USB OTGSS and USB PHY

2015-02-16 Thread Lukasz Majewski
Hi Kishon, > Enabled clocks for dwc3 controller and USB PHY present in DRA7. > > Signed-off-by: Kishon Vijay Abraham I > --- > arch/arm/cpu/armv7/omap5/hw_data.c | 14 ++ > arch/arm/cpu/armv7/omap5/prcm-regs.c | 10 +- > arch/arm/include/asm/omap_common.h |4 ++--

Re: [U-Boot] [u-boot 02/40] ARM: AM43xx: Enable clocks for USB OTGSS and USB PHY

2015-02-16 Thread Lukasz Majewski
Hi Kishon, > Enabled clocks for dwc3 controller and USB PHY present in AM43xx. > > Signed-off-by: Kishon Vijay Abraham I > --- > arch/arm/cpu/armv7/am33xx/clock_am43xx.c | 12 +++ > arch/arm/include/asm/arch-am33xx/cpu.h | 22 > ++-- > arch/arm/i

Re: [U-Boot] [u-boot 03/40] usb: gadget: udc: add udc-core from linux kernel to u-boot

2015-02-16 Thread Lukasz Majewski
Hi Kishon, > Added udc-core.c from linux kernel 3.19-rc1 (97bf6af1f9) to u-boot. > This will be adapted to work with u-boot in the > following patches. > Adding support for udc will help to seamlessly port dwc3 driver from > linux kernel to u-boot (since dwc3 uses udc-core) and it'll also help > t

Re: [U-Boot] [u-boot 04/40] include: usb: modify gadget.h to include udc support

2015-02-16 Thread Lukasz Majewski
Hi Kishon, > Made changes in gadget.h that is required after adding udc-core.c > except changes that might break other platforms. > > Signed-off-by: Kishon Vijay Abraham I > --- > include/linux/usb/gadget.h | 43 > +++ 1 file changed, 43 > insertions(+)

Re: [U-Boot] [u-boot 05/40] usb: gadget: udc: make udc-core compile in u-boot build

2015-02-16 Thread Lukasz Majewski
Hi Kishon, > Make udc-core compile in u-boot by removing all linux specific > stuff and having only the bare minimal udc-core required for > usb gadget drivers. Also modified the file header to a format that is > generally being used in u-boot. > > Signed-off-by: Kishon Vijay Abraham I > --- >

Re: [U-Boot] [u-boot 06/40] include: asm: dma-mapping: get rid of the compilation warning in udc-core

2015-02-16 Thread Lukasz Majewski
Hi Kishon, > Fixed the following warning here. > "warning: ‘dma_alloc_coherent’ defined but not used" while compiling > udc-core > > Signed-off-by: Kishon Vijay Abraham I > --- > arch/arm/include/asm/dma-mapping.h |2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch

Re: [U-Boot] [u-boot 07/40] usb: dwc3: add dwc3 folder from linux kernel to u-boot

2015-02-16 Thread Lukasz Majewski
Hi Kishon, > Added dwc3 folder from linux kernel 3.19-rc1 (97bf6af1f9) > to u-boot. This will be adapted to work with u-boot in the > following patches. > > Signed-off-by: Kishon Vijay Abraham I Reviewed-by: Lukasz Majewski -- Best regards, Lukasz Majewski Samsung R&D Institute Poland (SRP

Re: [U-Boot] [u-boot 08/40] usb: dwc3: remove un-used files from dwc3 folder

2015-02-16 Thread Lukasz Majewski
Hi Kishon, > removed un-used/un-supported files from dwc3. These files can be added > later as and when the support is added. > > Signed-off-by: Kishon Vijay Abraham I Reviewed-by: Lukasz Majewski -- Best regards, Lukasz Majewski Samsung R&D Institute Poland (SRPOL) | Linux Platform Group _

Re: [U-Boot] [u-boot 09/40] usb: dwc3: Modify the file headers to u-boot format

2015-02-16 Thread Lukasz Majewski
Hi Kishon, > Modified the file header to the format that is used in u-boot. Also > included in the header, the commit in linux kernel from which each of > these files are added. > > Signed-off-by: Kishon Vijay Abraham I > --- > drivers/usb/dwc3/core.c | 15 +-- > drivers/usb/

Re: [U-Boot] [u-boot 11/40] usb: dwc3: fix dwc3 header files

2015-02-16 Thread Lukasz Majewski
Hi Kishon, > Changed the header files included in core.h and io.h to the u-boot > header files so that these files can be included in other dwc3 source > files and be compiled in uboot. Also added otg.h which has the > defines for dr_mode. > > Signed-off-by: Kishon Vijay Abraham I > --- > drive

Re: [U-Boot] [u-boot 10/40] usb: dwc3: remove trace_* APIs from dwc3 driver

2015-02-16 Thread Lukasz Majewski
Hi Kishon, > Removed most of the trace_* APIs from dwc3 driver since tracepoints > are not supported in u-boot. Replaced some of the trace_* API with > dev_dbg/dev/vdbg. > > Signed-off-by: Kishon Vijay Abraham I > --- > drivers/usb/dwc3/Makefile |5 +--- > drivers/usb/dwc3/ep0.c| 70 >

Re: [U-Boot] [u-boot 12/40] usb: dwc3: remove pm related operations from dwc3 driver

2015-02-16 Thread Lukasz Majewski
Hi Kishon, > Removed all pm related operations including pm_runtime APIs, > suspend/resume hooks as support for these are not present in u-boot. > > Signed-off-by: Kishon Vijay Abraham I > --- > drivers/usb/dwc3/core.c | 96 > -- > drivers/usb/dwc3/

Re: [U-Boot] [u-boot 13/40] arm: asm: dma-mapping: added dma_free_coherent API

2015-02-16 Thread Lukasz Majewski
Hi Kishon, > Added dma_free_coherent corresponding to the dma_alloc_coherent in > dma-mapping.h in order to free memory allocated using > dma_alloc_coherent. This API is used in dwc3 driver. > > Signed-off-by: Kishon Vijay Abraham I > --- > arch/arm/include/asm/dma-mapping.h |7 +++ > 1

Re: [U-Boot] [u-boot 14/40] usb: dwc3: linux-compat: Add header for dwc3 linux compatibiltiy

2015-02-16 Thread Lukasz Majewski
Hi Kishon, Marek > Added a header file to include various linux specific APIs like > pr_debug, WARN_ WARN_ON_ONCE etc.. in order to avoid compilation > error while building dwc3 driver. > > Signed-off-by: Kishon Vijay Abraham I > --- > drivers/usb/dwc3/linux-compat.h | 30

Re: [U-Boot] [u-boot 15/40] usb: dwc3: gadget: make dwc3 gadget build in uboot

2015-02-16 Thread Lukasz Majewski
Hi Kishon, > Did a bunch of things to get dwc3/gadget.c compile in u-boot without > build errors and warnings > *) Changed the included header files to that used in u-boot. > *) Used dma_alloc_coherent and dma_free_coherent APIs of u-boot > *) removed sg support > *) remove jiffies and used a simp

Re: [U-Boot] [u-boot 16/40] include: asm: types: add resource_size_t type

2015-02-16 Thread Lukasz Majewski
Hi Kishon, > Added resource_size_t type in order to get rid of the following > compilation error whiel building dwc3 gadget. > include/linux/ioport.h:19:2: error: unknown type name > ‘resource_size_t’ > > Signed-off-by: Kishon Vijay Abraham I > --- > arch/arm/include/asm/types.h |1 + > 1 f

Re: [U-Boot] [u-boot 17/40] usb: dwc3: ep0: make dwc3 ep0 build in uboot

2015-02-16 Thread Lukasz Majewski
Hi Kishon, > *) Changed the included header files to that used in u-boot. > *) added dwc3_ep_event_string() used in ep0.c > *) Fixed other misc warnings > > Signed-off-by: Kishon Vijay Abraham I > --- > drivers/usb/dwc3/core.h | 24 > drivers/usb/dwc3/ep0.c

Re: [U-Boot] [u-boot 18/40] include: usb: composite: add USB_GADGET_DELAYED_STATUS to avoid compilation error

2015-02-16 Thread Lukasz Majewski
Hi Kishon, > Added USB_GADGET_DELAYED_STATUS to avoid the following compilation > error. error: ‘USB_GADGET_DELAYED_STATUS’ undeclared (first use in > this function) while compiling dwc3/ep0.c > > While this is been added only to avoid compilation error, the > complete fix should be something lik

Re: [U-Boot] [u-boot 19/40] usb: dwc3: core: make dwc3 core build in uboot

2015-02-16 Thread Lukasz Majewski
Hi Kishon, > *) Changed the include header files to that used in u-boot. > *) Removed phy_* APIs > *) Removed jiffies and used a simple while loop > *) Used dma_alloc_coherent and dma_free_coherent APIs of u-boot > *) Fixed other misc warnings > > Signed-off-by: Kishon Vijay Abraham I > --- > d

Re: [U-Boot] [u-boot 20/40] include: dwc3-uboot: add a structure for populating platform data

2015-02-16 Thread Lukasz Majewski
Hi Kishon, > Added a structure to populate dwc3 core platform data. The board file > should populate these platform data before invoking dwc3 driver. > This will be removed once we have dwc3 driver adapted to use the > driver model. > > Signed-off-by: Kishon Vijay Abraham I > --- > include/dwc3

Re: [U-Boot] [u-boot 21/40] dwc3: core: change probe and remove to uboot init and uboot exit code

2015-02-16 Thread Lukasz Majewski
Hi Kishon, > Removed probe and remove that are specific to linux and replaced it > with uboot init and uboot exit. These functions will be invoked from > boardfile. > > Signed-off-by: Kishon Vijay Abraham I > --- > drivers/usb/dwc3/core.c | 218 > +++

Re: [U-Boot] [u-boot 22/40] dwc3: core: add support for multiple dwc3 controllers

2015-02-16 Thread Lukasz Majewski
Hi Kishon, > Added support for multiple dwc3 controllers. This gives uboot > the capability to control multiple dwc3 controllers. > > Signed-off-by: Kishon Vijay Abraham I > --- > drivers/usb/dwc3/core.c | 32 > drivers/usb/dwc3/core.h |4 > include/d

Re: [U-Boot] [u-boot 23/40] dwc3: core: added an API to invoke irq handlers

2015-02-16 Thread Lukasz Majewski
Hi Kishon, > Since interrupt support is not present in u-boot, added an > API to handle the interrupts in dwc3 core. This API can be > polled to handle the interrupts. > > Signed-off-by: Kishon Vijay Abraham I > --- > drivers/usb/dwc3/core.c | 21 + > include/dwc3-uboot.h

Re: [U-Boot] [u-boot 24/40] usb: dwc3: dwc3-omap: make dwc3-omap build in uboot

2015-02-16 Thread Lukasz Majewski
Hi Kishon, > *) Changed the included header files to that used in u-boot. > *) Removed extcon_* APIs > *) Removed regulator_* APIs > *) Fixed other misc warnings > *) Added dwc3-omap.h to include the definitions of UTMI modes. > > Signed-off-by: Kishon Vijay Abraham I > --- > drivers/usb/dwc3/d

Re: [U-Boot] [u-boot 25/40] include: dwc3-omap-uboot: add a structure for populating dwc3-omap platform data

2015-02-16 Thread Lukasz Majewski
Hi Kishon, > Added a structure to populate dwc3 omap platform data. The board file > should populate these platform data before invoking dwc3 omap driver. > > This will be removed once dwc3-omap driver is adapted to use the > driver model. > > Signed-off-by: Kishon Vijay Abraham I > --- > driv

Re: [U-Boot] [u-boot 26/40] usb: dwc3: dwc3-omap: change probe and remove to uboot init and uboot exit code

2015-02-16 Thread Lukasz Majewski
Hi Kishon, > Removed probe and remove that are specific to linux and replaced it > with uboot init and uboot exit. These functions will be invoked from > boardfile. > > This will change once we have dwc3-omap driver adapted to use the > uboot driver model. > > Signed-off-by: Kishon Vijay Abraham

Re: [U-Boot] [u-boot 27/40] dwc3: dwc3-omap: add support for multiple dwc3-omap controllers

2015-02-16 Thread Lukasz Majewski
Hi Kishon, > Added support for multiple dwc3 omap controllers. This gives uboot > the capability to control multiple dwc3 omap controllers. > > Signed-off-by: Kishon Vijay Abraham I > --- > drivers/usb/dwc3/dwc3-omap.c | 26 -- > include/dwc3-omap-uboot.h|3 ++-

Re: [U-Boot] [u-boot 28/40] usb: dwc3: dwc3-omap: add interrupt status API to check for interrupts

2015-02-16 Thread Lukasz Majewski
Hi Kishon, > Added an API to check for interrupt status. This API is generally > called from board file to check for interrupt status. > > Signed-off-by: Kishon Vijay Abraham I > --- > drivers/usb/dwc3/dwc3-omap.c | 20 > include/dwc3-omap-uboot.h|1 + > 2 files c

Re: [U-Boot] [PATCH] lsxl: add a README file

2015-02-16 Thread Luka Perkov
Hi Michael, On Fri, Feb 13, 2015 at 06:45:57PM +0100, Michael Walle wrote: > The README describes the recovery method which can be used if the NAS box > is not reachable anymore. Addionally, it describes the different boot > scripts. > > Signed-off-by: Michael Walle > --- > board/buffalo/lsxl/R

Re: [U-Boot] [u-boot 29/40] usb: dwc3: TI PHY: PHY driver for dwc3 in TI platforms

2015-02-16 Thread Lukasz Majewski
Hi Kishon, > Added a single driver for both USB2 PHY programming and USB3 PHY > programming. > > USB3 PHY is taken from drivers/phy/phy-ti-pipe3.c in linux kernel. > commit 56042e : phy: ti-pipe3: Fix suspend/resume and module reload. > > USB2 PHY is taken from drivers/phy/phy-omap-usb2.c in lin

Re: [U-Boot] [u-boot 30/40] dwc3: flush the buffers before using it

2015-02-16 Thread Lukasz Majewski
Hi Kishon, > In the linux kernel, non cacheable buffers are used. However in uboot > since there are no APIs to allocate non cacheable memory, all > the buffers should be flushed before using it. > > Signed-off-by: Kishon Vijay Abraham I > --- > drivers/usb/dwc3/core.c |7 +++ > drive

Re: [U-Boot] [u-boot 31/40] usb: dwc3: ep0: preparation for implementing chained TRB

2015-02-16 Thread Lukasz Majewski
Hi Kishon, > No functional change. Modified few things so that there are no > code duplication while implementing chained TRB. > > Signed-off-by: Kishon Vijay Abraham I > --- > drivers/usb/dwc3/ep0.c | 20 > 1 file changed, 12 insertions(+), 8 deletions(-) > > diff --git

Re: [U-Boot] [PATCH] lsxl: add a README file

2015-02-16 Thread Michael Walle
Hi Luka, Am 2015-02-16 11:48, schrieb Luka Perkov: Do you have any other pending work for which you plan to send patches? no, this was the last one. forgot it in the previous series, sorry. -michael ___ U-Boot mailing list U-Boot@lists.denx.de http:

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

2015-02-16 Thread Michal Suchanek
On 13 February 2015 at 05:51, Simon Glass wrote: > Hi Michal, > > On 11 February 2015 at 10:16, Michal Suchanek wrote: >> >> Hello, >> >> I changed the SYS_START to work around the bug in the manufacturer >> firmware, applied snow_defconfig, built u-boot.bin, packed it into >> kernel uimage, sign

Re: [U-Boot] [u-boot 33/40] usb: dwc3: Makefile: Make dwc3 driver compile in u-boot

2015-02-16 Thread Lukasz Majewski
Hi Kishon, > Now that the entire dwc3 driver is adapted to compile with uboot > build, modify the Makefiles so that the dwc3 driver can be built. > > Signed-off-by: Kishon Vijay Abraham I > --- > Makefile|2 ++ > drivers/usb/dwc3/Makefile | 35 > +++--

Re: [U-Boot] [u-boot 32/40] usb: dwc3: Add chained TRB support for ep0

2015-02-16 Thread Lukasz Majewski
Hi Kishon, > dwc3 can do only max packet aligned transfers. So in case request > length is not max packet aligned and is bigger than > DWC3_EP0_BOUNCE_SIZE two chained TRBs is required to handle the > transfer. > > Signed-off-by: Kishon Vijay Abraham I > --- > drivers/usb/dwc3/ep0.c| 72 >

Re: [U-Boot] [u-boot 34/40] usb: gadget: defer setting maxpacket till ->setup()

2015-02-16 Thread Lukasz Majewski
Hi Kishon, > Taken from linux kernel with commit > commit 765f5b830e547229bb752e7b232ee83e2b3d49d5 > Author: Sebastian Andrzej Siewior > Date: Thu Jun 23 14:26:11 2011 +0200 > > usb: gadget: defer setting maxpacket till ->setup() > > Signed-off-by: Kishon Vijay Abraham I > --- > drivers/usb

Re: [U-Boot] [u-boot 35/40] common: cmd_dfu: invoke board_usb_cleanup() for cleaning up

2015-02-16 Thread Lukasz Majewski
Hi Kishon, > Invoked board_usb_cleanup for cleaning up initialized USB. It > will be invoked if the user enterts ctrl-C. > > Signed-off-by: Kishon Vijay Abraham I > --- > common/cmd_dfu.c |1 + > common/usb.c |7 +++ > 2 files changed, 8 insertions(+) > > diff --git a/common/cm

Re: [U-Boot] [u-boot 36/40] board: ti: DRA7: added USB initializtion code

2015-02-16 Thread Lukasz Majewski
Hi Kishon, > Implemented board_usb_init(), board_usb_cleanup() and > usb_gadget_handle_interrupts() in dra7xx board file that > can be invoked by various gadget drivers. > > Signed-off-by: Kishon Vijay Abraham I > --- > arch/arm/include/asm/arch-omap5/omap.h | 12 > board/ti/dra7xx/evm.c

Re: [U-Boot] [u-boot 37/40] include: configs: Enable DWC3 and DFU in DRA7xx

2015-02-16 Thread Lukasz Majewski
Hi Kishon, > Enabled dwc3, dwc3-omap and PHY for dwc3 are enabled. Also enabled > support for DFU. > > Signed-off-by: Kishon Vijay Abraham I > --- > include/configs/dra7xx_evm.h | 63 > + > include/configs/ti_omap5_common.h |5 +++ 2 files changed, 6

Re: [U-Boot] [u-boot 38/40] board: ti: AM43xx: added USB initializtion code

2015-02-16 Thread Lukasz Majewski
Hi Kishon, > Implemented board_usb_init(), board_usb_cleanup() and > usb_gadget_handle_interrupts() in am43xx board file that > can be invoked by various gadget drivers. > > Signed-off-by: Kishon Vijay Abraham I > --- > arch/arm/include/asm/arch-am33xx/hardware_am43xx.h |9 ++ > board/ti/am

Re: [U-Boot] [u-boot 39/40] include: configs: Enable DWC3 and DFU in AM43xx

2015-02-16 Thread Lukasz Majewski
Hi Kishon, > Enabled dwc3, dwc3-omap and PHY for dwc3 are enabled. Also enabled > support for DFU. > > Signed-off-by: Kishon Vijay Abraham I > --- > include/configs/am43xx_evm.h | 61 > +- 1 file changed, 60 > insertions(+), 1 deletion(-) > > diff --git

Re: [U-Boot] [u-boot 40/40] usb: modify usb_gadget_handle_interrupts to take controller index

2015-02-16 Thread Lukasz Majewski
Hi Kishon, > Since we support multiple dwc3 controllers to be existent at the same > time, in order to handle the interrupts of a particular dwc3 > controller usb_gadget_handle_interrutps should take controller index > as an argument. > > Hence the API of usb_gadget_handle_interrupts is modified

Re: [U-Boot] [u-boot 32/40] usb: dwc3: Add chained TRB support for ep0

2015-02-16 Thread Kishon Vijay Abraham I
Hi Lukasz, On Monday 16 February 2015 05:12 PM, Lukasz Majewski wrote: Hi Kishon, dwc3 can do only max packet aligned transfers. So in case request length is not max packet aligned and is bigger than DWC3_EP0_BOUNCE_SIZE two chained TRBs is required to handle the transfer. Signed-off-by: Kish

Re: [U-Boot] [PATCH 02/12] remove nowhere used symbol CONFIG_SYS_CLKS_IN_HZ

2015-02-16 Thread Stefano Babic
Hi Marcel, On 16/02/2015 13:14, Marcel Ziswiler wrote: > Basically finish what the following commit started a long time ago: > > 488f5d8790c451fc527fe5d2ef218f2a5e40ea17 > > Signed-off-by: Marcel Ziswiler > --- > include/configs/balloon3.h| 1 - > include/configs/flea3.h | 2

Re: [U-Boot] [u-boot 32/40] usb: dwc3: Add chained TRB support for ep0

2015-02-16 Thread Lukasz Majewski
Hi Kishon, > Hi Lukasz, > > On Monday 16 February 2015 05:12 PM, Lukasz Majewski wrote: > > Hi Kishon, > > > >> dwc3 can do only max packet aligned transfers. So in case request > >> length is not max packet aligned and is bigger than > >> DWC3_EP0_BOUNCE_SIZE two chained TRBs is required to hand

[U-Boot] Please pull u-boot-marvell master

2015-02-16 Thread Luka Perkov
Hi Tom, this series contains kirkwood patches from Michael. Please pull them when you find the time. The following changes since commit bd2a4888b123713adec271d6c8040ca9f609aa2f: sunxi: configs/sunxi-common.h: Enable CONFIG_CMD_PART (2015-02-11 19:43:45 -0500) are available in the git reposit

[U-Boot] [PATCH 1/2] arm:gplugd: Convert to generic board

2015-02-16 Thread Ajay Bhargav
Enable CONFIG_SYS_GENERIC_BOARD for Marvell Gplugd. Signed-off-by: Ajay Bhargav --- include/configs/gplugd.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/configs/gplugd.h b/include/configs/gplugd.h index 404c56a..0ac198d 100644 --- a/include/configs/gplugd.h +++ b/include/con

Re: [U-Boot] [u-boot 32/40] usb: dwc3: Add chained TRB support for ep0

2015-02-16 Thread Kishon Vijay Abraham I
Hi, On Monday 16 February 2015 06:34 PM, Lukasz Majewski wrote: Hi Kishon, Hi Lukasz, On Monday 16 February 2015 05:12 PM, Lukasz Majewski wrote: Hi Kishon, dwc3 can do only max packet aligned transfers. So in case request length is not max packet aligned and is bigger than DWC3_EP0_BOUNCE

[U-Boot] [PATCH v2 10/12] jetson-tk1: Add PSCI configuration options and reserve secure code

2015-02-16 Thread Jan Kiszka
From: Ian Campbell The secure world code is relocated to the MB just below the top of 4G, we reserve it in the FDT (by setting CONFIG_ARMV7_SECURE_RESERVE_SIZE) but it is not protected in h/w. See next patch. Signed-off-by: Ian Campbell Signed-off-by: Jan Kiszka --- arch/arm/cpu/armv7/tegra12

[U-Boot] [PATCH v2 04/12] ARM: Put target PC for PSCI CPU_ON on per-CPU stack

2015-02-16 Thread Jan Kiszka
Use a per-CPU variable for saving the target PC during CPU_ON operations. This allows us to run this service independently on targets that have more than 2 cores and also core-local power control. Signed-off-by: Jan Kiszka --- arch/arm/cpu/armv7/psci.S | 8 ++-- arch/arm/cpu/armv7/sunx

[U-Boot] [PATCH v2 00/12] Add PSCI support for Jetson TK1/Tegra124 + CNTFRQ fix

2015-02-16 Thread Jan Kiszka
Version 2 introduces CPU-local target PC (power-up vector), as pointed out by Chen-Yu. It also includes a new patch to properly set CNTFRQ on all Tegra124 CPUs, not only CPU0. This finally allows to run KVM guests on TK1. The series was tested on the Banana Pi as well. The patches are also availab

[U-Boot] [PATCH v2 02/12] ARM: Factor out reusable psci_cpu_entry

2015-02-16 Thread Jan Kiszka
_sunxi_cpu_entry can be converted completely into a reusable psci_cpu_entry. Tegra124 will use it as well. Signed-off-by: Jan Kiszka --- arch/arm/cpu/armv7/psci.S | 19 +++ arch/arm/cpu/armv7/sunxi/psci.S | 21 ++--- 2 files changed, 21 insertions(+), 19 del

[U-Boot] [PATCH v2 05/12] tegra124: Add more registers to struct mc_ctlr

2015-02-16 Thread Jan Kiszka
From: Ian Campbell I will need mc_security_cfg0/1 in a future patch and I added the rest while debugging, so thought I might as well commit them. Signed-off-by: Ian Campbell Signed-off-by: Jan Kiszka --- arch/arm/include/asm/arch-tegra124/mc.h | 35 +++-- 1 file ch

[U-Boot] [PATCH v2 09/12] tegra124: Add PSCI support for Tegra124

2015-02-16 Thread Jan Kiszka
This is based on Thierry Reding's work and uses Ian Campell's preparatory patches. It comes with full support for CPU_ON/OFF PSCI services. The algorithm used in this version for turning CPUs on and off was proposed by Thierry Reding in http://thread.gmane.org/gmane.comp.boot-loaders.u-boot/210881.

[U-Boot] [PATCH v2 11/12] tegra124: Reserve secure RAM using MC_SECURITY_CFG{0, 1}_0

2015-02-16 Thread Jan Kiszka
From: Ian Campbell These registers can be used to prevent non-secure world from accessing a megabyte aligned region of RAM, use them to protect the u-boot secure monitor code. At first I tried to do this from s_init(), however this inexplicably causes u-boot's networking (e.g. DHCP) to fail, whi

[U-Boot] [PATCH v2 08/12] tegra: Add ap_pm_init hook

2015-02-16 Thread Jan Kiszka
This function will be used to initialize CPU power management for Tegra SOCs. For now it does nothing. Signed-off-by: Jan Kiszka --- arch/arm/include/asm/arch-tegra/ap.h | 5 + board/nvidia/common/board.c | 4 2 files changed, 9 insertions(+) diff --git a/arch/arm/include/asm/

[U-Boot] [PATCH v2 12/12] tegra: Set CNTFRQ for secondary CPUs

2015-02-16 Thread Jan Kiszka
We only set CNTFRQ in arch_timer_init for the boot CPU. But this has to happen for all cores. Fixing this resolves problems of KVM with emulating the generic timer/counter. Signed-off-by: Jan Kiszka --- arch/arm/cpu/armv7/tegra-common/psci.S | 13 + 1 file changed, 13 insertions(+)

[U-Boot] [PATCH v2 01/12] ARM: Factor out reusable psci_cpu_off_common

2015-02-16 Thread Jan Kiszka
Move parts of sunxi's psci_cpu_off into psci_cpu_off_common, namely cache disabling and flushing, clrex and the disabling of SMP for the dying CPU. These steps are apparently generic for ARMv7 and will be reused for Tegra124 support. Signed-off-by: Jan Kiszka --- arch/arm/cpu/armv7/psci.S

[U-Boot] [PATCH v2 07/12] tegra: Make tegra_powergate_power_on public

2015-02-16 Thread Jan Kiszka
Will be used for unpowergating CPUs. Signed-off-by: Jan Kiszka --- arch/arm/cpu/tegra-common/powergate.c | 2 +- arch/arm/include/asm/arch-tegra/powergate.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/cpu/tegra-common/powergate.c b/arch/arm/cpu/tegra-comm

[U-Boot] [PATCH v2 06/12] virt-dt: Allow reservation of the secure region when it is in a RAM carveout.

2015-02-16 Thread Jan Kiszka
From: Ian Campbell In this case the secure code lives in RAM, and hence needs to be reserved, but it has been relocated, so the reservation of __secure_start does not apply. Add support for setting CONFIG_ARMV7_SECURE_RESERVE_SIZE to reserve such a region. This will be used in a subsequent patc

[U-Boot] [PATCH v2 03/12] ARM: Factor out reusable psci_get_cpu_stack_top

2015-02-16 Thread Jan Kiszka
This algorithm will be useful on Tegra as well, plus we will need it for making _psci_target_pc per-CPU. Signed-off-by: Jan Kiszka --- arch/arm/cpu/armv7/psci.S | 14 ++ arch/arm/cpu/armv7/sunxi/psci.S | 17 +++-- 2 files changed, 21 insertions(+), 10 deletions(-)

[U-Boot] [PATCH 2/2] arm:aspenite: Convert to generic board

2015-02-16 Thread Ajay Bhargav
Enable CONFIG_SYS_GENERIC_BOARD for Marvell aspenite. Signed-off-by: Ajay Bhargav --- include/configs/aspenite.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/configs/aspenite.h b/include/configs/aspenite.h index 727b14a..5258486 100644 --- a/include/configs/aspenite.h +++ b/i

[U-Boot] [PATCH 1/3] ARM: mx6: move to a standard arch/board approach

2015-02-16 Thread Boris Brezillon
Freescale boards are currently all defined in arch/arm/Kconfig, which makes them hard to detect. Moreover the MX6 SoC variant (Q, D, DL, S, SL) selection is currently done via the SYS_EXTRA_OPTIONS option which marked as deprecated. Move to a more standard way to select sub-architecture and board

[U-Boot] [PATCH 2/3] ARM: iMX: define an IMX_CONFIG Kconfig option

2015-02-16 Thread Boris Brezillon
IMX_CONFIG is currently passed via the SYS_EXTRA_OPTIONS which is marked as deprecated. Add a new Kconfig file under arch/arm/imx-common and define the IMX_CONFIG Kconfig in there. Each board is supposed to provide a default value pointing to the appropriate imximage.cfg file. Signed-off-by: Bor

[U-Boot] [PATCH 3/3] board/seco: Add mx6q-uq7 basic board support

2015-02-16 Thread Boris Brezillon
Add basic SECO MX6Q/uQ7 board support (Ethernet, UART, SD are supported). It also adds a Kconfig skeleton to later add more SECO board (supporting SoC and board variants). Signed-off-by: Boris Brezillon --- arch/arm/cpu/armv7/mx6/Kconfig| 11 +++ board/seco/Kconfig| 63

[U-Boot] [PATCH 0/3] board/seco: Add mx6q-uq7 basic board support

2015-02-16 Thread Boris Brezillon
Hello, This series adds a preliminary support for SECO's iMX6 based boards. The first 2 patches rework the way MX6 support is activated: - avoid defining SoC variant and imximage.cfg file path in the deprecated SYS_EXTRA_OPTIONS Kconfig option - remove the need for the CONFIG_MX6 definition

Re: [U-Boot] [PATCH 1/2] arm:gplugd: Convert to generic board

2015-02-16 Thread Prafulla Wadaskar
> -Original Message- > From: Ajay Bhargav [mailto:ajay.bhar...@einfochips.com] > Sent: 16 February 2015 18:37 > To: u-boot@lists.denx.de; ma...@denx.de > Cc: tr...@ti.com; Prafulla Wadaskar; yamad...@jp.panasonic.com; Ajay > Bhargav > Subject: [PATCH 1/2] arm:gplugd: Convert to generic bo

Re: [U-Boot] [PATCH v2 12/12] tegra: Set CNTFRQ for secondary CPUs

2015-02-16 Thread Mark Rutland
On Mon, Feb 16, 2015 at 12:54:49PM +, Jan Kiszka wrote: > We only set CNTFRQ in arch_timer_init for the boot CPU. But this has to > happen for all cores. > > Fixing this resolves problems of KVM with emulating the generic > timer/counter. > > Signed-off-by: Jan Kiszka > --- > arch/arm/cpu/a

Re: [U-Boot] [PATCH v2 06/12] virt-dt: Allow reservation of the secure region when it is in a RAM carveout.

2015-02-16 Thread Mark Rutland
On Mon, Feb 16, 2015 at 12:54:43PM +, Jan Kiszka wrote: > From: Ian Campbell > > In this case the secure code lives in RAM, and hence needs to be reserved, but > it has been relocated, so the reservation of __secure_start does not apply. > > Add support for setting CONFIG_ARMV7_SECURE_RESERV

[U-Boot] [PATCH 01/12] pxa: fix wrong comment about vpac270 being the arch number

2015-02-16 Thread Marcel Ziswiler
Signed-off-by: Marcel Ziswiler --- board/balloon3/balloon3.c | 2 +- board/toradex/colibri_pxa270/colibri_pxa270.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/board/balloon3/balloon3.c b/board/balloon3/balloon3.c index aa108ca..458d90c 100644 --- a/b

[U-Boot] u-boot tftp problem

2015-02-16 Thread PF4Public
Hi all I'm asking for your help to figure out what interferes with u-boot's tftp in my setup. I have a custom board with TI OMAP SoC. I'm trying to download uImage from linux machine via tftp. It fails with timeouts (most of the tries timeout limit exceeds) on several, but succeeds on others.

[U-Boot] [PATCH 00/12] various fixes mainly for pxa and colibri_pxa270

2015-02-16 Thread Marcel Ziswiler
The following is a set of various fixes mainly for PXA and the Toradex Colibri PXA270 introducing it to generic board to save it from becoming obsolete as those modules are still on sale for another 3 to 4 years. Marcel Ziswiler (12): pxa: fix wrong comment about vpac270 being the arch number

[U-Boot] [PATCH 03/12] pxa: balloon3: remove nowhere used symbol CONFIG_SYS_MEM_BUF_IMP

2015-02-16 Thread Marcel Ziswiler
Signed-off-by: Marcel Ziswiler --- include/configs/balloon3.h | 1 - include/configs/vpac270.h | 1 - 2 files changed, 2 deletions(-) diff --git a/include/configs/balloon3.h b/include/configs/balloon3.h index 8dabc80..f20a631 100644 --- a/include/configs/balloon3.h +++ b/include/configs/balloon

[U-Boot] [PATCH 04/12] pxa: balloon3: fix comment about sdram banks

2015-02-16 Thread Marcel Ziswiler
Signed-off-by: Marcel Ziswiler --- include/configs/balloon3.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/configs/balloon3.h b/include/configs/balloon3.h index f20a631..e7f0345 100644 --- a/include/configs/balloon3.h +++ b/include/configs/balloon3.h @@ -13,7

[U-Boot] [PATCH 02/12] remove nowhere used symbol CONFIG_SYS_CLKS_IN_HZ

2015-02-16 Thread Marcel Ziswiler
Basically finish what the following commit started a long time ago: 488f5d8790c451fc527fe5d2ef218f2a5e40ea17 Signed-off-by: Marcel Ziswiler --- include/configs/balloon3.h| 1 - include/configs/flea3.h | 2 -- include/configs/mx35pdk.h | 2 -- include/configs/palmld.h

[U-Boot] [PATCH 06/12] pxa: colibri_pxa270: migrate to generic board

2015-02-16 Thread Marcel Ziswiler
Migrate Toradex Colibri PXA270 to use CONFIG_SYS_GENERIC_BOARD. Signed-off-by: Marcel Ziswiler --- include/configs/colibri_pxa270.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/configs/colibri_pxa270.h b/include/configs/colibri_pxa270.h index b8df89c..bb48419 100644 --- a/includ

[U-Boot] [PATCH 08/12] pxa: colibri_pxa270: avoid overwriting factory configuration block

2015-02-16 Thread Marcel Ziswiler
Specify a CONFIG_BOARD_SIZE_LIMIT of 256 KB in order to avoid overwriting the factory configuration block located at offset 0x4 in NOR flash. Signed-off-by: Marcel Ziswiler --- include/configs/colibri_pxa270.h | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a

[U-Boot] [PATCH 07/12] pxa: colibri_pxa270: disable loadb/s commands and long help

2015-02-16 Thread Marcel Ziswiler
To save more than 20 KB of precious space in NOR flash get rid of the following configuration options: CONFIG_CMD_LOADB CONFIG_CMD_LOADS CONFIG_SYS_LONGHELP Signed-off-by: Marcel Ziswiler --- include/configs/colibri_pxa270.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a

[U-Boot] [PATCH 11/12] pxa: colibri_pxa270: remove CONFIG_ENV_ADDR_REDUND

2015-02-16 Thread Marcel Ziswiler
Usually not required for NOR flash. Signed-off-by: Marcel Ziswiler --- include/configs/colibri_pxa270.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/configs/colibri_pxa270.h b/include/configs/colibri_pxa270.h index 28e57b5..ed0589a 100644 --- a/include/configs/colibri_pxa270.h ++

[U-Boot] [PATCH 09/12] pxa: colibri_pax270: fix CONFIG_BOOTCOMMAND

2015-02-16 Thread Marcel Ziswiler
While 'mmc init' is no longer required the address to bootm the kernel from NOR flash was wrong. Signed-off-by: Marcel Ziswiler --- include/configs/colibri_pxa270.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/configs/colibri_pxa270.h b/include/configs/colibri_

[U-Boot] [PATCH 05/12] pxa: balloon3/colibri_pxa270: fix environment optionally being nowhere

2015-02-16 Thread Marcel Ziswiler
I couldn't quite figure out whether or not CONFIG_SYS_ENV_IS_NOWHERE actually ever worked but nowadays this is called CONFIG_ENV_IS_NOWHERE. Signed-off-by: Marcel Ziswiler --- include/configs/balloon3.h | 2 +- include/configs/colibri_pxa270.h | 2 +- include/configs/vpac270.h| 2 +

[U-Boot] [PATCH 10/12] pxa: colibri_pxa270: fix wrong comment about voipac ethernet chip

2015-02-16 Thread Marcel Ziswiler
Signed-off-by: Marcel Ziswiler --- include/configs/colibri_pxa270.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/configs/colibri_pxa270.h b/include/configs/colibri_pxa270.h index 07426d1..28e57b5 100644 --- a/include/configs/colibri_pxa270.h +++ b/include/configs/colibri_pxa270.h @@

[U-Boot] [PATCH 12/12] pxa: colibri_pxa270: integrate latest validated register settings

2015-02-16 Thread Marcel Ziswiler
Integrate latest validated register settings from Toradex WinCE BSP 4.2 working accross all module versions from early V1.x, V1.2D, V2.2B to V2.4A. Signed-off-by: Marcel Ziswiler --- include/configs/colibri_pxa270.h | 48 1 file changed, 24 insertions(+),

Re: [U-Boot] [PATCH v2 12/12] tegra: Set CNTFRQ for secondary CPUs

2015-02-16 Thread Jan Kiszka
On 2015-02-16 14:37, Mark Rutland wrote: > On Mon, Feb 16, 2015 at 12:54:49PM +, Jan Kiszka wrote: >> We only set CNTFRQ in arch_timer_init for the boot CPU. But this has to >> happen for all cores. >> >> Fixing this resolves problems of KVM with emulating the generic >> timer/counter. >> >> Si

Re: [U-Boot] [PATCH v2 11/12] tegra124: Reserve secure RAM using MC_SECURITY_CFG{0, 1}_0

2015-02-16 Thread Mark Rutland
On Mon, Feb 16, 2015 at 12:54:48PM +, Jan Kiszka wrote: > From: Ian Campbell > > These registers can be used to prevent non-secure world from accessing a > megabyte aligned region of RAM, use them to protect the u-boot secure monitor > code. What happens if the CPU tried to read this memory

Re: [U-Boot] [PATCH v2 12/12] tegra: Set CNTFRQ for secondary CPUs

2015-02-16 Thread Mark Rutland
On Mon, Feb 16, 2015 at 01:44:36PM +, Jan Kiszka wrote: > On 2015-02-16 14:37, Mark Rutland wrote: > > On Mon, Feb 16, 2015 at 12:54:49PM +, Jan Kiszka wrote: > >> We only set CNTFRQ in arch_timer_init for the boot CPU. But this has to > >> happen for all cores. > >> > >> Fixing this resolv

Re: [U-Boot] [PATCH v2 06/12] virt-dt: Allow reservation of the secure region when it is in a RAM carveout.

2015-02-16 Thread Jan Kiszka
On 2015-02-16 14:42, Mark Rutland wrote: > On Mon, Feb 16, 2015 at 12:54:43PM +, Jan Kiszka wrote: >> From: Ian Campbell >> >> In this case the secure code lives in RAM, and hence needs to be reserved, >> but >> it has been relocated, so the reservation of __secure_start does not apply. >> >>

Re: [U-Boot] [PATCH v2 11/12] tegra124: Reserve secure RAM using MC_SECURITY_CFG{0, 1}_0

2015-02-16 Thread Jan Kiszka
On 2015-02-16 14:49, Mark Rutland wrote: > On Mon, Feb 16, 2015 at 12:54:48PM +, Jan Kiszka wrote: >> From: Ian Campbell >> >> These registers can be used to prevent non-secure world from accessing a >> megabyte aligned region of RAM, use them to protect the u-boot secure monitor >> code. > >

Re: [U-Boot] [PATCH v2 12/12] tegra: Set CNTFRQ for secondary CPUs

2015-02-16 Thread Jan Kiszka
On 2015-02-16 14:51, Mark Rutland wrote: > On Mon, Feb 16, 2015 at 01:44:36PM +, Jan Kiszka wrote: >> On 2015-02-16 14:37, Mark Rutland wrote: >>> On Mon, Feb 16, 2015 at 12:54:49PM +, Jan Kiszka wrote: We only set CNTFRQ in arch_timer_init for the boot CPU. But this has to happen

[U-Boot] [PATCH] tools: imagetool: Remove "INSERT BEFORE" from linker script

2015-02-16 Thread Lukasz Majewski
Not all linkers are able to parse "INSERT BEFORE" part of the linker script. For example following (rather new) "gold" one: GNU gold (GNU Binutils for Debian 2.22) 1.11 produces following error: HOSTLD tools/mkenvimage /usr/bin/ld: error: ./tools/imagetool.lds:23:8: syntax error, unexpected ST

Re: [U-Boot] [PATCH 2/2] arm:aspenite: Convert to generic board

2015-02-16 Thread Prafulla Wadaskar
> -Original Message- > From: Ajay Bhargav [mailto:ajay.bhar...@einfochips.com] > Sent: 16 February 2015 18:37 > To: u-boot@lists.denx.de; ma...@denx.de > Cc: tr...@ti.com; Prafulla Wadaskar; yamad...@jp.panasonic.com; Ajay > Bhargav > Subject: [PATCH 2/2] arm:aspenite: Convert to generic

Re: [U-Boot] [PATCH v2 06/12] virt-dt: Allow reservation of the secure region when it is in a RAM carveout.

2015-02-16 Thread Mark Rutland
On Mon, Feb 16, 2015 at 01:51:37PM +, Jan Kiszka wrote: > On 2015-02-16 14:42, Mark Rutland wrote: > > On Mon, Feb 16, 2015 at 12:54:43PM +, Jan Kiszka wrote: > >> From: Ian Campbell > >> > >> In this case the secure code lives in RAM, and hence needs to be reserved, > >> but > >> it has

Re: [U-Boot] [PATCH v2 06/12] virt-dt: Allow reservation of the secure region when it is in a RAM carveout.

2015-02-16 Thread Jan Kiszka
On 2015-02-16 15:25, Mark Rutland wrote: > On Mon, Feb 16, 2015 at 01:51:37PM +, Jan Kiszka wrote: >> On 2015-02-16 14:42, Mark Rutland wrote: >>> On Mon, Feb 16, 2015 at 12:54:43PM +, Jan Kiszka wrote: From: Ian Campbell In this case the secure code lives in RAM, and hence

Re: [U-Boot] [PATCH v2 06/12] virt-dt: Allow reservation of the secure region when it is in a RAM carveout.

2015-02-16 Thread Mark Rutland
On Mon, Feb 16, 2015 at 02:31:21PM +, Jan Kiszka wrote: > On 2015-02-16 15:25, Mark Rutland wrote: > > On Mon, Feb 16, 2015 at 01:51:37PM +, Jan Kiszka wrote: > >> On 2015-02-16 14:42, Mark Rutland wrote: > >>> On Mon, Feb 16, 2015 at 12:54:43PM +, Jan Kiszka wrote: > From: Ian Cam

[U-Boot] [PATCH v2 2/8] arm: relocation: clear .bss section with arch memset if defined

2015-02-16 Thread Przemyslaw Marczak
For ARM architecture, enable the CONFIG_USE_ARCH_MEMSET/MEMCPY, will highly increase the memset/memcpy performance. This is able thanks to the ARM multiple register instructions. Unfortunatelly the relocation is done without the cache enabled, so it takes some time, but zeroing the BSS memory take

[U-Boot] [PATCH v2 5/8] README: add info about skip memset at malloc init

2015-02-16 Thread Przemyslaw Marczak
Signed-off-by: Przemyslaw Marczak --- README | 7 +++ 1 file changed, 7 insertions(+) diff --git a/README b/README index fefa71c..8673640 100644 --- a/README +++ b/README @@ -3989,6 +3989,13 @@ Configuration Settings: - CONFIG_SYS_MALLOC_LEN: Size of DRAM reserved for malloc

[U-Boot] [PATCH v2 6/8] kconfig: malloc: add option for skip memset at malloc init

2015-02-16 Thread Przemyslaw Marczak
Signed-off-by: Przemyslaw Marczak --- Kconfig | 26 +++--- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/Kconfig b/Kconfig index 4157da3..e08e44a 100644 --- a/Kconfig +++ b/Kconfig @@ -57,13 +57,25 @@ config CC_OPTIMIZE_FOR_SIZE This option is enable

  1   2   >