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.
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
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
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)
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
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
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
---
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
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
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
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
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:
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
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
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
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
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
@@
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
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
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
20 matches
Mail list logo