[U-Boot] RFC Pin Configuration Device Tree Bindings for Altera Arria10 SOCFPGA

2014-11-30 Thread Matthew Gerlach
Altera Arria10 SOCFPGA Pin Configuration Bindings This document describes device tree bindings required to perform configuration of the pins for an Altera Arria10 SOCFPGA . The bindings are intended to be compact and easy to be consumed only by a SPL running in a small on-chip ram before external

[U-Boot] [PATCH V2 04/12] lcd: remove LCD_MONOCHROME

2014-11-30 Thread Nikita Kiryanov
No one is using LCD_MONOCHROME; remove related code. Signed-off-by: Nikita Kiryanov Cc: Wolfgang Denk Cc: Anatolij Gustschin Acked-by: Simon Glass --- Changes in V2: - No changes. common/lcd.c | 30 ++ drivers/video/mpc8xx_lcd.c | 17

[U-Boot] [PATCH V2 05/12] lcd: rename console_(row|col)

2014-11-30 Thread Nikita Kiryanov
Rename console_(row|col) to console_curr_(row|col) to make their meaning clearer and distinguish them from CONSOLE_(COLS|ROWS). This is a preparatory step for extracting lcd console code into its own file. Signed-off-by: Nikita Kiryanov Cc: Simon Glass Cc: Anatolij Gustschin --- Changes in V2:

[U-Boot] [PATCH V2 01/12] lcd: remove CONFIG_SYS_INVERT_COLORS

2014-11-30 Thread Nikita Kiryanov
No one is using CONFIG_SYS_INVERT_COLORS; remove related code. Signed-off-by: Nikita Kiryanov Cc: Simon Glass Cc: Anatolij Gustschin Acked-by: Simon Glass --- Changes in V2: - No changes. common/lcd.c | 8 drivers/video/mpc8xx_lcd.c | 4 +--- 2 files changed, 1

[U-Boot] [PATCH V2 03/12] mpc8xx_lcd: get rid of CONFIG_EDT32F10

2014-11-30 Thread Nikita Kiryanov
No one is using CONFIG_EDT32F10; remove related code. Signed-off-by: Nikita Kiryanov Cc: Wolfgang Denk Cc: Anatolij Gustschin Acked-by: Simon Glass --- Changes in V2: - No changes. drivers/video/mpc8xx_lcd.c | 28 include/configs/R360MPI.h | 1 - 2 file

[U-Boot] [PATCH V2 02/12] lcd: cleanup lcd_drawchars

2014-11-30 Thread Nikita Kiryanov
Remove code duplication from lcd_drawchars(). Signed-off-by: Nikita Kiryanov Cc: Anatolij Gustschin Cc: Simon Glass Acked-by: Simon Glass --- Changes in V2: - No changes. common/lcd.c | 14 +- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/common/lcd.c b/co

[U-Boot] [PATCH V2 06/12] lcd: replace CONSOLE_(ROWS|COLS) with variables

2014-11-30 Thread Nikita Kiryanov
Replace CONSOLE_(ROWS|COLS) macros with variables, and assign the original macro values. This is a preparatory step for extracting lcd console code into its own file. Signed-off-by: Nikita Kiryanov Cc: Anatolij Gustschin Cc: Simon Glass --- Changes in V2: - New patch. common/lcd.c |

[U-Boot] [PATCH V2 09/12] lcd: introduce getters for bg/fg color

2014-11-30 Thread Nikita Kiryanov
Introduce lcd_getbgcolor() and lcd_getfgcolor(), and use them where applicable. This is a preparatory step for extracting lcd console code into its own file. Signed-off-by: Nikita Kiryanov c: Anatolij Gustschin Cc: Simon Glass --- Changes in V2: - New patch. common/lcd.c | 20 ++

[U-Boot] [PATCH V2 07/12] lcd: expand console api

2014-11-30 Thread Nikita Kiryanov
Introduce set_console_row(), set_console_col(), and lcd_init_console(). Use these functions in lcd functions: lcd_init(), lcd_clear(), lcd_logo(). This is a preparatory step for extracting lcd console code into its own file. Signed-off-by: Nikita Kiryanov Cc: Anatolij Gustschin Cc: Simon Glass

[U-Boot] [PATCH V2 12/12] lcd_console: remove unused defines

2014-11-30 Thread Nikita Kiryanov
CONSOLE_ROW_SECOND, CONSOLE_ROW_LAST, and CONSOLE_SCROLL_SIZE are unused. Remove them. Signed-off-by: Nikita Kiryanov Cc: Anatolij Gustschin Cc: Simon Glass --- Changes in V2: - New patch. common/lcd_console.c | 4 1 file changed, 4 deletions(-) diff --git a/common/lcd_console.c

[U-Boot] [PATCH V2 08/12] lcd: get rid of COLOR_MASK

2014-11-30 Thread Nikita Kiryanov
COLOR_MASK macro doesn't do anything; Remove it to reduce visual complexity. This is a preparatory step for extracting lcd console code into its own file. Signed-off-by: Nikita Kiryanov Cc: Anatolij Gustschin Cc: Simon Glass --- Changes in V2: - New patch. common/lcd.c | 14 ++---

[U-Boot] [PATCH V2 10/12] lcd: make lcd_drawchars() independant of lcd_base

2014-11-30 Thread Nikita Kiryanov
lcd_logo() has the following return value: #if defined(CONFIG_LCD_LOGO) && !defined(CONFIG_LCD_INFO_BELOW_LOGO) return (void *)((ulong)lcd_base + BMP_LOGO_HEIGHT * lcd_line_length); #else return (void *)lcd_base; #endif This return value gets assigned to lcd_console_address. lc

[U-Boot] [PATCH V2 00/12] cleanup and refactor lcd.c

2014-11-30 Thread Nikita Kiryanov
NOTE: I'm resending this cover letter with a shorter Cc list because the original mail got held up. Sorry for the double post. This series is a first step towards an end goal of merging all CONFIG_LCD related functionality into CONFIG_VIDEO code. My plan is to start by refactoring lcd.c into somet

[U-Boot] [PATCH V2 11/12] lcd: refactor lcd console stuff into its own file

2014-11-30 Thread Nikita Kiryanov
common/lcd.c is a mix of code portions that do different but related things. To improve modularity, the various code portions should be split into their own modules. Separate lcd console code into its own file. Signed-off-by: Nikita Kiryanov Cc: Anatolij Gustschin Cc: Wolfgang Denk Cc: Simon Gl

[U-Boot] [PATCH V2 00/12] cleanup and refactor lcd.c

2014-11-30 Thread Nikita Kiryanov
This series is a first step towards an end goal of merging all CONFIG_LCD related functionality into CONFIG_VIDEO code. My plan is to start by refactoring lcd.c into something cleaner (less ifdefs) and more modular (split code into multiple files), then possibly refactor CONFIG_VIDEO code if needed

[U-Boot] [PATCH V2 11/12] lcd: refactor lcd console stuff into its own file

2014-11-30 Thread Nikita Kiryanov
common/lcd.c is a mix of code portions that do different but related things. To improve modularity, the various code portions should be split into their own modules. Separate lcd console code into its own file. Signed-off-by: Nikita Kiryanov Cc: Anatolij Gustschin Cc: Wolfgang Denk Cc: Lukasz M

Re: [U-Boot] [PATCH 1/2 v2] Exynos5800: The Peach-Pi board does not have a Parade video bridge

2014-11-30 Thread Simon Glass
On 27 November 2014 at 08:08, Sjoerd Simons wrote: > Unlike the Peach-Pit board, there is no parade edp to lvds bridge on the > Pi. So drop it from device-tree > > Signed-off-by: Sjoerd Simons > --- > Changes since v1: Only modify the DTB > > arch/arm/dts/exynos5800-peach-pi.dts | 5 - > 1

Re: [U-Boot] [PATCH 2/2 v2] exynos5420: fix compilation without parade video

2014-11-30 Thread Simon Glass
On 27 November 2014 at 08:08, Sjoerd Simons wrote: > Not all exynos 5420 based devices with an LCD also have a parade LVDS > bridge. So make sure compilation doesn't break if CONFIG_LCD is enabled > and CONFIG_VIDEO_PARADE is not. > > Signed-off-by: Sjoerd Simons > --- > Changes since V1: New pa

Re: [U-Boot] [PATCH] cros-ec-keyboard: Synchronize DT binding from linux

2014-11-30 Thread Simon Glass
On 27 November 2014 at 08:34, Sjoerd Simons wrote: > The ChromeOS EC keyboard is used by various different chromebooks. Peach > pi being the third board in the u-boot tree to use it (snow and peach > pit the other two). Rather then embedding the same big DT node in the > peach-pi DT again, copy th

Re: [U-Boot] [PATCH V2 05/12] lcd: rename console_(row|col)

2014-11-30 Thread Simon Glass
On 30 November 2014 at 05:29, Nikita Kiryanov wrote: > Rename console_(row|col) to console_curr_(row|col) to make their meaning > clearer > and distinguish them from CONSOLE_(COLS|ROWS). > > This is a preparatory step for extracting lcd console code into its own file. > > Signed-off-by: Nikita Ki

Re: [U-Boot] [PATCH V2 07/12] lcd: expand console api

2014-11-30 Thread Simon Glass
On 30 November 2014 at 05:29, Nikita Kiryanov wrote: > Introduce set_console_row(), set_console_col(), and lcd_init_console(). > Use these functions in lcd functions: lcd_init(), lcd_clear(), lcd_logo(). > > This is a preparatory step for extracting lcd console code into its own > file. > > Signed

Re: [U-Boot] [PATCH V2 08/12] lcd: get rid of COLOR_MASK

2014-11-30 Thread Simon Glass
On 30 November 2014 at 05:29, Nikita Kiryanov wrote: > COLOR_MASK macro doesn't do anything; Remove it to reduce visual > complexity. > > This is a preparatory step for extracting lcd console code into its own > file. > > Signed-off-by: Nikita Kiryanov > Cc: Anatolij Gustschin > Cc: Simon Glass

Re: [U-Boot] [PATCH V2 09/12] lcd: introduce getters for bg/fg color

2014-11-30 Thread Simon Glass
Hi Nikita, On 30 November 2014 at 05:29, Nikita Kiryanov wrote: > Introduce lcd_getbgcolor() and lcd_getfgcolor(), and use them where > applicable. > > This is a preparatory step for extracting lcd console code into its own > file. > > Signed-off-by: Nikita Kiryanov > c: Anatolij Gustschin > Cc

Re: [U-Boot] [PATCH V2 11/12] lcd: refactor lcd console stuff into its own file

2014-11-30 Thread Simon Glass
Hi Nikita, On 30 November 2014 at 06:22, Nikita Kiryanov wrote: > common/lcd.c is a mix of code portions that do different but related > things. To improve modularity, the various code portions should be split > into their own modules. Separate lcd console code into its own file. > > Signed-off-b

Re: [U-Boot] [PATCH V2 12/12] lcd_console: remove unused defines

2014-11-30 Thread Simon Glass
On 30 November 2014 at 05:29, Nikita Kiryanov wrote: > CONSOLE_ROW_SECOND, CONSOLE_ROW_LAST, and > CONSOLE_SCROLL_SIZE are unused. Remove them. > > Signed-off-by: Nikita Kiryanov > Cc: Anatolij Gustschin > Cc: Simon Glass > --- > Changes in V2: > - New patch. Acked-by: Simon Glass Te

Re: [U-Boot] [PATCH v2] arm: build arch memset/memcpy in Thumb2 mode

2014-11-30 Thread Simon Glass
Hi Stefan, On 21 November 2014 at 08:34, Stefan Agner wrote: > Resynchronize memcpy/memset with kernel and build them explicitly > in Thumb2 mode (unified syntax). Those assembler files can be > built and linked in ARM mode too, however when calling them from > Thumb2 built code, the stack got co

Re: [U-Boot] [PATCH v2] arm: build arch memset/memcpy in Thumb2 mode

2014-11-30 Thread Stefan Agner
On 2014-11-30 20:33, Simon Glass wrote: > Hi Stefan, > > On 21 November 2014 at 08:34, Stefan Agner wrote: >> Resynchronize memcpy/memset with kernel and build them explicitly >> in Thumb2 mode (unified syntax). Those assembler files can be >> built and linked in ARM mode too, however when callin

Re: [U-Boot] [PATCH v2] Export redesign

2014-11-30 Thread Simon Glass
Hi Martin, On 27 November 2014 at 01:42, Martin Dorwig wrote: > this is an atempt to make the export of functions typesafe. > I replaced the jumptable void ** by a struct (jt_funcs) with function > pointers. > The EXPORT_FUNC macro now has 3 fixed parameters and one > variadic parameter > The fi

Re: [U-Boot] [PATCH 2/2 v2] exynos5420: fix compilation without parade video

2014-11-30 Thread Minkyu Kang
Dear Sjoerd Simons, On 28/11/14 00:08, Sjoerd Simons wrote: > Not all exynos 5420 based devices with an LCD also have a parade LVDS > bridge. So make sure compilation doesn't break if CONFIG_LCD is enabled > and CONFIG_VIDEO_PARADE is not. > > Signed-off-by: Sjoerd Simons > --- > Changes since

[U-Boot] [PATCH 3/7] arm: rmobile: Add mstp_setclrbits and mstp_setclrbits_le32

2014-11-30 Thread Nobuhiro Iwamatsu
This addes macro for set and clear bit control for module control register. This is used when user want to disable the function of the devices corresponding to register. Signed-off-by: Nobuhiro Iwamatsu --- arch/arm/include/asm/arch-rmobile/rcar-mstp.h | 4 1 file changed, 4 insertions(+)

[U-Boot] [PATCH 4/7] arm: rmobile: lager: Halt clock prior to booting kernel

2014-11-30 Thread Nobuhiro Iwamatsu
Before a kernel boots, GPIO, SYS-DMAC, QSPI and MSIOF clock is halted. Signed-off-by: Hisashi Nakamura Signed-off-by: Nobuhiro Iwamatsu --- board/renesas/lager/lager.c | 43 +-- 1 file changed, 41 insertions(+), 2 deletions(-) diff --git a/board/renesas/

[U-Boot] [PATCH 1/7] arm: rmobile: Move module control register to header file of SoC

2014-11-30 Thread Nobuhiro Iwamatsu
Module control registers of R-Car ARM SoC (r8a7790, r8a7791, r8a7793 and r8a7794) are same address. This moves these to header file of SoC. Signed-off-by: Nobuhiro Iwamatsu --- arch/arm/include/asm/arch-rmobile/rcar-base.h | 39 +++ board/renesas/alt/alt.c

[U-Boot] [PATCH 2/7] arm: rmobile: Move control macro of mstp to arch-rmobile/rcar-mstp.h

2014-11-30 Thread Nobuhiro Iwamatsu
Control macro of mstp is common in R-Car ARM SoC (r8a7790, r8a7791, r8a7793 and r8a7794). This moves these to arch-rmobile/rcar-mstp.h Signed-off-by: Nobuhiro Iwamatsu --- arch/arm/include/asm/arch-rmobile/rcar-mstp.h | 22 ++ board/renesas/alt/alt.c | 1

[U-Boot] [PATCH 6/7] arm: rmobile: alt: Halt clock prior to booting kernel

2014-11-30 Thread Nobuhiro Iwamatsu
Before a kernel boots, GPIO, SYS-DMAC, QSPI, MSIOF and IPMMU-GP clock is halted. Signed-off-by: Hisashi Nakamura Signed-off-by: Nobuhiro Iwamatsu --- board/renesas/alt/alt.c | 43 +-- 1 file changed, 41 insertions(+), 2 deletions(-) diff --git a/board/re

[U-Boot] [PATCH 5/7] arm: rmobile: koelsch: Halt clock prior to booting kernel

2014-11-30 Thread Nobuhiro Iwamatsu
Before a kernel boots, GPIO, SYS-DMAC, QSPI, MSIOF and IPMMU-GP clock is halted. Signed-off-by: Hisashi Nakamura Signed-off-by: Nobuhiro Iwamatsu --- board/renesas/koelsch/koelsch.c | 43 +++-- 1 file changed, 41 insertions(+), 2 deletions(-) diff --git a/bo

[U-Boot] [PATCH 7/7] arm: rmobile: gose: Halt clock prior to booting kernel

2014-11-30 Thread Nobuhiro Iwamatsu
Before a kernel boots, GPIO, SYS-DMAC, QSPI, MSIOF and IPMMU-GP clock is halted. Signed-off-by: Hisashi Nakamura Signed-off-by: Nobuhiro Iwamatsu --- board/renesas/gose/gose.c | 44 ++-- 1 file changed, 42 insertions(+), 2 deletions(-) diff --git a/board

[U-Boot] [PATCH v3] Export redesign

2014-11-30 Thread Martin Dorwig
this is an atempt to make the export of functions typesafe. I replaced the jumptable void ** by a struct (jt_funcs) with function pointers. The EXPORT_FUNC macro now has 3 fixed parameters and one variadic parameter The first is the name of the exported function, the rest of the parameters are used

Re: [U-Boot] [PATCH 4/7] arm: rmobile: lager: Halt clock prior to booting kernel

2014-11-30 Thread Wolfgang Denk
Dear Nobuhiro, In message <1417417556-23946-4-git-send-email-nobuhiro.iwamatsu...@renesas.com> you wrote: > Before a kernel boots, GPIO, SYS-DMAC, QSPI and MSIOF clock > is halted. > > Signed-off-by: Hisashi Nakamura > Signed-off-by: Nobuhiro Iwamatsu The data structures and the code are all

Re: [U-Boot] [PATCH 1/6] kirkwood: ib62x0: add CONFIG_SYS_GENERIC_BOARD define

2014-11-30 Thread Stefan Roese
On 30.11.2014 05:00, Luka Perkov wrote: Signed-off-by: Luka Perkov CC: Prafulla Wadaskar CC: Stefan Roese Acked-by: Stefan Roese Thanks, Stefan ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH 5/6] kirkwood: pogo_e02: add CONFIG_SYS_GENERIC_BOARD define

2014-11-30 Thread Stefan Roese
On 30.11.2014 05:02, Luka Perkov wrote: Signed-off-by: Luka Perkov CC: Prafulla Wadaskar CC: Stefan Roese Acked-by: Stefan Roese Thanks, Stefan ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH 2/6] kirkwood: dockstar: add CONFIG_SYS_GENERIC_BOARD define

2014-11-30 Thread Stefan Roese
On 30.11.2014 05:01, Luka Perkov wrote: Signed-off-by: Luka Perkov CC: Prafulla Wadaskar CC: Stefan Roese Acked-by: Stefan Roese Thanks, Stefan ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH 6/6] kirkwood: sheevaplug: add CONFIG_SYS_GENERIC_BOARD define

2014-11-30 Thread Stefan Roese
On 30.11.2014 05:02, Luka Perkov wrote: Signed-off-by: Luka Perkov CC: Prafulla Wadaskar CC: Stefan Roese Acked-by: Stefan Roese Thanks, Stefan ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH 4/6] kirkwood: iconnect: add CONFIG_SYS_GENERIC_BOARD define

2014-11-30 Thread Stefan Roese
On 30.11.2014 05:01, Luka Perkov wrote: Signed-off-by: Luka Perkov CC: Prafulla Wadaskar CC: Stefan Roese Acked-by: Stefan Roese Thanks, Stefan ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH 3/6] kirkwood: goflexhome: add CONFIG_SYS_GENERIC_BOARD define

2014-11-30 Thread Stefan Roese
On 30.11.2014 05:01, Luka Perkov wrote: Signed-off-by: Luka Perkov CC: Prafulla Wadaskar CC: Stefan Roese Acked-by: Stefan Roese Thanks, Stefan ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

[U-Boot] [PATCH] powerpc/p2041rdb: enable generic board configs

2014-11-30 Thread shh.xie
From: Shaohui Xie Add following configs in header file: CONFIG_SYS_GENERIC_BOARD CONFIG_DISPLAY_BOARDINFO Signed-off-by: Shaohui Xie --- include/configs/P2041RDB.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/configs/P2041RDB.h b/include/configs/P2041RDB.h index 16f7525..ef062