[PATCH 1/5] ARM: i.MX: rename barebox_loc to bootsource

2013-04-03 Thread Sascha Hauer
Rename the barebox_loc environment variable to bootsource, since - barebox_loc is a mixture between abbriviation and fulltext which is not nice - technically it describes the source the SoC has booted from. This is not necessarily barebox but could also be some other first stage loader.

[PATCH 5/5] ARM: i.MX53: Add bootsource instance information

2013-04-03 Thread Sascha Hauer
The i.MX53 has the bootsource instance information stored in SBMR[21:22], expose it to the environment. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- arch/arm/mach-imx/boot.c | 18 -- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-imx/boot.c

[PATCH 4/5] bootsource: add support for bootsource instance information

2013-04-03 Thread Sascha Hauer
From: Marc Kleine-Budde m...@pengutronix.de Add a C interface to set and get the bootsource instance: int bootsource_get_instance(void); void bootsource_set_instance(int instance); Also export the shell variable barebox_loc_instance. Signed-off-by: Marc Kleine-Budde m...@pengutronix.de

[PATCH] bootsource

2013-04-03 Thread Sascha Hauer
This is a series based on earlier work by Marc. It creates an arch independent framework for storing/retrieving the bootsource. Changes to Marcs version are: - rename (currently i.MX specific) barebox_loc environment variable to 'bootsource' - initialize the bootsource instance to unknown (-1)

[PATCH 3/5] bootsource: use initcall to export bootsource location to environment

2013-04-03 Thread Sascha Hauer
From: Marc Kleine-Budde m...@pengutronix.de This way the bootsource is exported to the environment, even if unknown. Signed-off-by: Marc Kleine-Budde m...@pengutronix.de Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- common/bootsource.c | 11 ++- 1 file changed, 10

[PATCH 2/5] bootsource: create arch independent bootsource framework

2013-04-03 Thread Sascha Hauer
From: Marc Kleine-Budde m...@pengutronix.de This patch seperates the imx independent from the arch independent code. The following functions and enums are renamed: - imx_bootsource() - bootsource_get() - imx_set_bootsource() - bootsource_set() - enum imx_bootsource - enum bootsource

[PATCH] ARM: tqma53: change uart to second uart

2013-04-03 Thread Sascha Hauer
From: Steffen Trumtrar s.trumt...@pengutronix.de The second UART is used on the mba53 baseboard. The first UART is only used on custom hardware. This patch changes the UART to the one used on the freely available baseboard. Signed-off-by: Steffen Trumtrar s.trumt...@pengutronix.de ---

[PATCH 2/4] ARM: i.MX53: split lowlevel function into early/nonearly version

2013-04-03 Thread Sascha Hauer
clock_notifier_call_chain() can't be called before init time. Protecting it with IS_ENABLED(__PBL__) is not enough. This patch splits out a new imx53_init_lowlevel_early which can be called before init time and does not have the call to clock_notifier_call_chain() in it. Signed-off-by: Sascha

[PATCH 4/4] ARM: tqma53: call SoC lowlevel function early

2013-04-03 Thread Sascha Hauer
With CONFIG_MMU_EARLY enabled the board does not survive the call to imx53_init_lowlevel(). This should not happen, but the reasons are currently unknown. This works on other boards like the i.MX53 QSB. This patch moves the call to imx53_init_lowlevel to barebox_arm_reset_vector() which is

[PATCH 3/4] ARM: tx53: use early lowlevel function

2013-04-03 Thread Sascha Hauer
The tx53 calls imx53_init_lowlevel from early code, so use imx53_init_lowlevel_early instead. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- arch/arm/boards/karo-tx53/lowlevel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boards/karo-tx53/lowlevel.c

Re: [PATCH v2] commands/tftp: use debug() for debug output

2013-04-03 Thread Sascha Hauer
On Tue, Apr 02, 2013 at 10:07:07AM +0200, Hubert Feurstein wrote: Signed-off-by: Hubert Feurstein h.feurst...@gmail.com Applied, thanks Sascha --- commands/tftp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/tftp.c b/commands/tftp.c index 558b0ac..c83d174

Re: [RFCv2 PATCH 1/2] OMAP: Move bootsource functions

2013-04-03 Thread Sascha Hauer
On Tue, Apr 02, 2013 at 02:48:06PM +0200, Teresa Gámez wrote: The bootsource functions are not specific to the first stage bootloader. They may also be used for detecting the bootsource to decide where to load the environment from. Also clean up includes in board files. Signed-off-by:

[PATCH] ARM: zynq: fix zynq_clks enum

2013-04-03 Thread Steffen Trumtrar
clk-zynq7000 registers arm_smp_twd as clk. This clock was however not added to the zynq_clks enum. Signed-off-by: Steffen Trumtrar s.trumt...@pengutronix.de --- arch/arm/mach-zynq/clk-zynq7000.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

[PATCH 3/3] ARM: zedboard: add ethernet device

2013-04-03 Thread Steffen Trumtrar
The ZedBoard has a connection for the GEM0. Use it. Signed-off-by: Steffen Trumtrar s.trumt...@pengutronix.de --- arch/arm/boards/avnet-zedboard/board.c| 13 + arch/arm/boards/avnet-zedboard/lowlevel.c | 11 ++- 2 files changed, 23 insertions(+), 1 deletion(-) diff --git

[PATCH 1/3] net: macb: turn off endian_swp_pkt_en

2013-04-03 Thread Steffen Trumtrar
The core has a bit for swapping packet data endianism. Reset default from Cadence is off. Xilinx however, that uses this core on the Zynq SoCs, opted for on. Turn it off for all devices. Signed-off-by: Steffen Trumtrar s.trumt...@pengutronix.de Cc: Jean-Christophe PLAGNIOL-VILLARD

[PATCH v2 3/7] bootsource: use initcall to export bootsource location to environment

2013-04-03 Thread Marc Kleine-Budde
This way the bootsource is exported to the environment, even if unknown. Signed-off-by: Marc Kleine-Budde m...@pengutronix.de Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- common/bootsource.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git

[PATCH v2 5/7] bootsource: add definition for i2c-eeprom, spi-nor, spi-eeprom and usb

2013-04-03 Thread Marc Kleine-Budde
Signed-off-by: Marc Kleine-Budde m...@pengutronix.de --- common/bootsource.c | 4 include/bootsource.h | 4 2 files changed, 8 insertions(+) diff --git a/common/bootsource.c b/common/bootsource.c index 7367215..7f3d51f 100644 --- a/common/bootsource.c +++ b/common/bootsource.c @@

[PATCH v2 4/7] bootsource: add support for bootsource instance information

2013-04-03 Thread Marc Kleine-Budde
Add a C interface to set and get the bootsource instance: int bootsource_get_instance(void); void bootsource_set_instance(int instance); Also export the shell variable bootsource_instance. Signed-off-by: Marc Kleine-Budde m...@pengutronix.de Signed-off-by: Sascha Hauer

[PATCH v2 1/7] ARM: i.MX: rename barebox_loc to bootsource

2013-04-03 Thread Marc Kleine-Budde
From: Sascha Hauer s.ha...@pengutronix.de Rename the barebox_loc environment variable to bootsource, since - barebox_loc is a mixture between abbriviation and fulltext which is not nice - technically it describes the source the SoC has booted from. This is not necessarily barebox but could also

[PATCH v2 6/7] ARM: i.MX53: Add bootsource instance information

2013-04-03 Thread Marc Kleine-Budde
From: Sascha Hauer s.ha...@pengutronix.de The i.MX53 has the bootsource instance information stored in SBMR[21:22], expose it to the environment. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de Signed-off-by: Marc Kleine-Budde m...@pengutronix.de --- arch/arm/mach-imx/boot.c | 18