[PATCH 3/4] arm: mach-imx: add MMDC and CCM register defines for use in DCD

2014-08-12 Thread Lucas Stach
Makes .imxcfg files a lot more readable. Signed-off-by: Lucas Stach --- arch/arm/mach-imx/include/mach/imx6-ccm-regs.h | 24 + arch/arm/mach-imx/include/mach/imx6-ddr-regs.h | 67 arch/arm/mach-imx/include/mach/imx6dl-ddr-regs.h | 57 arc

[PATCH 2/4] scripts: imx-image: add input validation to mw

2014-08-12 Thread Lucas Stach
Stop and print a helpful message if we encounter an illegal token while parsing the DCD config, instead of silently swallowing the error and pushing random stuff into the DCD. Signed-off-by: Lucas Stach --- scripts/imx/imx-image.c | 21 ++--- 1 file changed, 18 insertions(+), 3 d

[PATCH 4/4] arm: nitrogen6x: new memory setup from BD u-boot

2014-08-12 Thread Lucas Stach
This fixes various stability issues seen on new boards with the old setup. Signed-off-by: Lucas Stach --- .../1066mhz_4x128mx16.imxcfg | 37 .../arm/boards/boundarydevices-nitrogen6x/Makefile | 3 +- .../boundarydevices-nitrogen6x/clocks.imxcfg | 7 ++ .

[PATCH 1/4] Makefile.lib: imxcfg: fix include path

2014-08-12 Thread Lucas Stach
MACH is not defined in this context, also it's very unlikely that we will use the imximg tool with an other arch than IMX, so just hardcode the path. Signed-off-by: Lucas Stach --- scripts/Makefile.lib | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/Makefile.lib b/scr

[PATCH 1/2] EFI: fix error handling in efi_get_boot()

2014-08-12 Thread Michael Olbrich
efi_get_global_var() returns an error code, not NULL when it fails. Signed-off-by: Michael Olbrich --- arch/efi/efi/efi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/efi/efi/efi.c b/arch/efi/efi/efi.c index ff97783..7de8ec8 100644 --- a/arch/efi/efi/efi.c +++ b/arch/

[PATCH 2/2] EFI: handle more boot devices

2014-08-12 Thread Michael Olbrich
efi_get_boot() fails for partitions that are not supported, so errors must be ignored to find all supported devices. Signed-off-by: Michael Olbrich --- I'm not sure about this one. We're not doing anythings with the return value of efi_get_boot(), so this is just some debug output + memory leak.