[U-Boot] [UNTESTED PATCH] ARM: orion5x: fix use of callee-saved registers in lowloevel_init

2018-05-07 Thread Mans Rullgard
The lowlevel_init function uses r4 and r6 without preserving their values as required by the AAPCS. Use r0 and r2 instead as these are call-clobbered. Signed-off-by: Mans Rullgard --- arch/arm/mach-orion5x/lowlevel_init.S | 168 +- 1 file changed, 84 insertions(+), 84

[U-Boot] [PATCH] ARM: mxs: let boards override entire dram parameter table

2018-04-27 Thread Mans Rullgard
If many values differ from the defaults, overriding the full table is simpler and more space efficient than tweaking it through mxs_adjust_memory_params(). Signed-off-by: Mans Rullgard --- arch/arm/cpu/arm926ejs/mxs/spl_mem_init.c | 14 +++--- 1 file changed, 7 insertions(+), 7

[U-Boot] [PATCH 4/5] ARM: mxs: move spl data

2018-04-21 Thread Mans Rullgard
With full SPL enabled, the loaded image overwrites the mxs_spl_data location. Moving it a slightly lower address fixes this. Signed-off-by: Mans Rullgard --- arch/arm/cpu/arm926ejs/mxs/mxs.c | 6 ++ arch/arm/cpu/arm926ejs/mxs/spl_boot.c | 3 +-- arch/arm/include/asm/arch-mxs

[U-Boot] [PATCH 5/5] ARM: mxs: support full SPL framework

2018-04-21 Thread Mans Rullgard
This allows using the full SPL framework on mxs devices. In this mode, the u-boot.sb image loaded by the boot ROM contains only the SPL which then loads U-Boot proper or a kernel in falcon mode. Signed-off-by: Mans Rullgard --- arch/arm/Kconfig | 2 +- arch/arm

[U-Boot] [PATCH 3/5] ARM: spl: include arm/thumb glue sections

2018-04-21 Thread Mans Rullgard
When building in Thumb mode, the linker might generate mode switching stubs in .glue sections. Include these in the final link. Signed-off-by: Mans Rullgard --- arch/arm/cpu/u-boot-spl.lds | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/cpu/u-boot-spl.lds b/arch/arm/cpu/u-boot

[U-Boot] [PATCH 2/5] ARM: arm926ejs: fix lowlevel_init call

2018-04-21 Thread Mans Rullgard
The code attempts to preserve the value of LR by storing it in R12/IP across the lowevel_init() call. However, this register is not saved by the callee. Use a register that guaranteed to be preserved instead. Signed-off-by: Mans Rullgard --- arch/arm/cpu/arm926ejs/start.S | 4 ++-- 1 file

[U-Boot] [PATCH 1/5] ARM: mxs: make lowlevel_init() weak

2018-04-21 Thread Mans Rullgard
With the full SPL framework enabled, lowlevel_init() is required. Make the empty stub weak so boards can override it. Signed-off-by: Mans Rullgard --- arch/arm/cpu/arm926ejs/mxs/mxs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/cpu/arm926ejs/mxs/mxs.c b/arch/arm

[U-Boot] [PATCH] gpio: mxs: add name_to_gpio() function

2015-12-15 Thread Mans Rullgard
mposite in decimal. Signed-off-by: Mans Rullgard --- drivers/gpio/mxs_gpio.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/drivers/gpio/mxs_gpio.c b/drivers/gpio/mxs_gpio.c index da0199b..b54a10b 100644 --- a/drivers/gpio/mxs_gpio.c +++ b/drivers/gpio/mxs_gpio.c @@ -114,3 +114

[U-Boot] [PATCH 1/2] net: fec_mxc: configure MDIO hold time

2015-12-08 Thread Mans Rullgard
kernel. Signed-off-by: Mans Rullgard --- drivers/net/fec_mxc.c | 18 +++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/drivers/net/fec_mxc.c b/drivers/net/fec_mxc.c index 79f6737..1250d2a 100644 --- a/drivers/net/fec_mxc.c +++ b/drivers/net/fec_mxc.c @@ -131,13

[U-Boot] [PATCH 2/2] net: fec_mxc: unregister mdio bus on probe error

2015-12-08 Thread Mans Rullgard
If fecmxc_initialize_multi() fails, it frees but does not unregister the mdio bus, causing subsequent uses of the "mii" command to crash. Fix this by adding mdio_unregister() calls where needed. Signed-off-by: Mans Rullgard --- drivers/net/fec_mxc.c | 2 ++ 1 file changed, 2 insertion

[U-Boot] [PATCH] Replace "extern inline" with "static inline"

2015-11-06 Thread Mans Rullgard
the semantics are slightly different (a static inline definition may result in an actual function being emitted), it works as intended in practice. This patch also removes extern prototype declarations for the changed functions where they existed. Signed-off-by: Mans Rullgard --- This is just

[U-Boot] [PATCH] OMAP3: set L1NEON bit in aux control register

2008-11-14 Thread Mans Rullgard
properly flushed from the Neon load queue. Signed-off-by: Mans Rullgard <[EMAIL PROTECTED]> --- cpu/arm_cortexa8/omap3/board.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/cpu/arm_cortexa8/omap3/board.c b/cpu/arm_cortexa8/omap3/board.c index 90809a6..7c2a7ea