[PATCH 2/3] ARM: i.MX6: fix clock gating

2016-09-20 Thread Jan Luebbe
Since ce6755ca1c41b8dd3b40cf3c9d6f3a1237a92720, both IPU and OpenVG are enabled if CONFIG_DRIVER_VIDEO_IMX_IPUV3 is true, but in the other case, only OpenVG was disabled. Signed-off-by: Jan Luebbe --- arch/arm/mach-imx/clk-imx6.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --

[PATCH 1/3] ARM: i.MX6: remove duplicate clock initialization

2016-09-20 Thread Jan Luebbe
These registers are already set by imx6_ccm_probe (in clk-imx6.c) during core_initcall, while imx6_init_lowlevel is only called during postcore_initcall via imx_init in imx.c. Signed-off-by: Jan Luebbe --- arch/arm/mach-imx/imx6.c | 9 - 1 file changed, 9 deletions(-) diff --git a/arch/

[PATCH 3/3] ARM: i.MX6: gate PCIe when unused

2016-09-20 Thread Jan Luebbe
Signed-off-by: Jan Luebbe --- arch/arm/mach-imx/clk-imx6.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-imx/clk-imx6.c b/arch/arm/mach-imx/clk-imx6.c index 26dfd1a7e16b..8ac43bebb075 100644 --- a/arch/arm/mach-imx/clk-imx6.c +++ b/arch/arm/mach-imx/clk-imx

[PATCH 3/3] state: consistently pass one type as private data to dev_add_param_*

2016-09-20 Thread Sascha Hauer
The different dev_add_param_* calls all use different types as private data. This is unnecessary, use struct state_variable * for all of them. Signed-off-by: Sascha Hauer --- common/state/state_variables.c | 29 +++-- 1 file changed, 15 insertions(+), 14 deletions(-) dif

[PATCH 2/3] state: make locally used function static

2016-09-20 Thread Sascha Hauer
state_set_dirty() is only used in one file, make it static. Signed-off-by: Sascha Hauer --- common/state/state.h | 1 - common/state/state_variables.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/common/state/state.h b/common/state/state.h index 855ba9d..bc6917

[PATCH 1/3] state: Add state to state_variable

2016-09-20 Thread Sascha Hauer
A state variable should know which state it belongs to. Add field for it to struct state_variable. Signed-off-by: Sascha Hauer --- common/state/state.h | 3 +-- common/state/state_variables.c | 11 +++ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/common/state

[PATCH] Documentation: imd: fix sphinx warning

2016-09-20 Thread Antony Pavlov
The patch fixes this sphinx warnings: barebox/Documentation/user/imd.rst:27: WARNING: Could not lex literal_block as "c". Highlighting skipped. Signed-off-by: Antony Pavlov Cc: Sascha Hauer --- Documentation/user/imd.rst | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff

[PATCH 1/2] globalvar: Move static inline functions to common/

2016-09-20 Thread Sascha Hauer
These functions will get bigger in the next patch which disqualifies them as static inline functions. Signed-off-by: Sascha Hauer --- common/globalvar.c | 67 ++ include/globalvar.h | 76 + 2 files c

[PATCH 2/2] globalvar: sync with nvvars

2016-09-20 Thread Sascha Hauer
This patch fixes the behaviour when a driver creates a globalvar using globalvar_add_simple_[string|int|bool|enum|ip]) *after* nvvars are initialized and this globalvar is overwritten with a nvvar. Currently this fix is not needed because all globalvars are registered before the nvvars are initiali