Re: [U-Boot] [PATCH 0/9] EFI payload / application support

2016-01-14 Thread Peter Robinson
On Mon, Jan 4, 2016 at 6:03 PM, Andreas Färber wrote: > Am 04.01.2016 um 17:56 schrieb Tom Rini: >> Please note that with the generic distro framework U-Boot will grok >> https://wiki.freedesktop.org/www/Specifications/BootLoaderSpec/ and >> things Just Work. I setup a bunch of

Re: [U-Boot] [PATCH 0/4] tegra: Move tegra20 towards the 'new' display bindings

2016-01-14 Thread Simon Glass
Hi Lucas, On 14 January 2016 at 13:34, Lucas Stach wrote: > Am Donnerstag, den 14.01.2016, 13:26 -0700 schrieb Simon Glass: >> The original tegra20 display driver was written before Linux had >> device tree >> bindings for display. Since then Linux has developed a robust set of

Re: [U-Boot] [PATCH 1/9] disk/part.c: Expose a list of available block drivers

2016-01-14 Thread Alexander Graf
On 15.01.16 00:11, Simon Glass wrote: > Hi Alexander, > > On 22 December 2015 at 06:57, Alexander Graf wrote: >> We have a pretty nice and generic interface to ask for a specific block >> device. However, that one is still based around the magic notion that >> we know the driver

[U-Boot] [PATCH 02/25] exynos: video: Drop dead code

2016-01-14 Thread Simon Glass
We always use device tree with video, so can drop these #ifdefs. Some of the hardware addresses are not needed either. Signed-off-by: Simon Glass --- arch/arm/mach-exynos/include/mach/cpu.h | 2 -- drivers/video/exynos/exynos_dp_lowlevel.c | 4

[U-Boot] [PATCH 03/25] exynos: video: Remove use of vidinfo_t typedef

2016-01-14 Thread Simon Glass
Use 'struct vidinfo' instead so that we can change this to a struct with a different name in future. Signed-off-by: Simon Glass --- arch/arm/mach-exynos/include/mach/mipi_dsim.h | 3 ++- drivers/video/exynos/exynos_fb.c | 10 +-

[U-Boot] [PATCH 04/25] exynos: video: Drop the static lcd_base_addr variable

2016-01-14 Thread Simon Glass
Drop this and use parameters instead. Signed-off-by: Simon Glass --- drivers/video/exynos/exynos_fb.c | 21 +++-- drivers/video/exynos/exynos_fb.h | 2 +- drivers/video/exynos/exynos_fimd.c | 26 +++--- 3 files changed, 15

[U-Boot] [PATCH 01/25] exynos: video: Move driver files into their own directory

2016-01-14 Thread Simon Glass
Move all the exynos video drivers into one place for ease of maintenance. Signed-off-by: Simon Glass --- drivers/video/Makefile| 6 +- drivers/video/exynos/Makefile | 12 drivers/video/{ =>

[U-Boot] [PATCH 05/19] video: Handle the 'bell' character

2016-01-14 Thread Simon Glass
This can be sent when to many characters are entered. Make sure it is ignored and does not cause a character to be displayed. Signed-off-by: Simon Glass --- drivers/video/vidconsole-uclass.c | 3 +++ test/dm/video.c | 2 +- 2 files changed, 4 insertions(+),

[U-Boot] [PATCH 02/19] Makefile: Add rules to build in .ttf files

2016-01-14 Thread Simon Glass
Add rules to allow TrueType files to be compiled into U-Boot for use on the video console. Signed-off-by: Simon Glass --- scripts/Makefile.lib | 21 + 1 file changed, 21 insertions(+) diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index

[U-Boot] [PATCH 08/19] video: Provide a backspace method

2016-01-14 Thread Simon Glass
With proportional fonts the vidconsole uclass cannot itself erase the previous character. Provide an optional method so that the driver can handle this operation. Signed-off-by: Simon Glass --- drivers/video/vidconsole-uclass.c | 12 +++- include/video_console.h

[U-Boot] [PATCH 00/19] video: Introduce support for anti-aliased outline fonts

2016-01-14 Thread Simon Glass
The existing 8x16 font is adequate for most purposes. It is small and fast. However for boot screens where information must be presented to the user, the console font is not ideal. Common requirements are larger and better-looking fonts. In many systems U-Boot is 'behind the scenes' and does not

[U-Boot] [PATCH 03/19] video kconfig console_normal

2016-01-14 Thread Simon Glass
Signed-off-by: Simon Glass --- configs/sandbox_defconfig | 2 +- drivers/video/Kconfig | 12 +++- drivers/video/Makefile| 5 +++-- 3 files changed, 15 insertions(+), 4 deletions(-) diff --git a/configs/sandbox_defconfig b/configs/sandbox_defconfig index

Re: [U-Boot] [PATCH] image: fix getenv_bootm_size() function

2016-01-14 Thread Simon Glass
Hi Masahiro, On 13 January 2016 at 22:50, Masahiro Yamada wrote: > Hi Simon, > > > 2016-01-08 12:33 GMT+09:00 Simon Glass : >> Hi Masahiro, >> >> On 17 December 2015 at 22:17, Masahiro Yamada >> wrote: >>>

Re: [U-Boot] [PATCH v2] patman: Add --thread option

2016-01-14 Thread Simon Glass
On 14 January 2016 at 12:37, Mateusz Kulikowski wrote: > Add option to create threaded series of patches. > With it, it will be possible to create patch threads like this: > [PATCH 0/10] Add support for time travel > [PATCH 1/10] Add Flux Capacitor driver >

Re: [U-Boot] [PATCH 1/9] disk/part.c: Expose a list of available block drivers

2016-01-14 Thread Simon Glass
Hi Alexander, On 22 December 2015 at 06:57, Alexander Graf wrote: > We have a pretty nice and generic interface to ask for a specific block > device. However, that one is still based around the magic notion that > we know the driver name. > > In order to be able to write fully

[U-Boot] [PATCH 25/25] exynos: video: Drop old unused code

2016-01-14 Thread Simon Glass
Now that we are using driver model, we can drop the weak functions and LCD init in the board file. Signed-off-by: Simon Glass --- board/samsung/common/exynos5-dt.c | 153 -- drivers/video/exynos/exynos_fb.c | 33

[U-Boot] [PATCH 20/25] exynos: Simplify calling of exynos_dp_phy_ctrl()

2016-01-14 Thread Simon Glass
This function controls enabling the EDP PHY. Rename it and drop the existing weak functions, which are confusing. Signed-off-by: Simon Glass --- arch/arm/mach-exynos/include/mach/power.h | 2 +- arch/arm/mach-exynos/power.c | 2 +-

[U-Boot] [PATCH 22/25] exynos: video: Rename edp_device_info to exynos_dp_priv

2016-01-14 Thread Simon Glass
Rename this function to better fit with driver model. It is the private data for the exynos EDP driver. Signed-off-by: Simon Glass --- arch/arm/mach-exynos/include/mach/dp_info.h | 4 ++-- drivers/video/exynos/exynos_dp.c| 26 +-

Re: [U-Boot] [PATCH v4 5/6] rockchip: kylin: Enable boot with android boot image

2016-01-14 Thread Tom Rini
On Fri, Jan 15, 2016 at 08:53:06AM +0800, Jeffy Chen wrote: > Hi Tom, > > On 2016-1-15 0:22, Tom Rini wrote: > >On Thu, Jan 14, 2016 at 10:31:34AM +0800, Jeffy Chen wrote: > >>Hi Tom, > >> > >>On 2016-1-13 23:28, Tom Rini wrote: > >>>On Wed, Jan 13, 2016 at 04:53:19PM +0800, Jeffy Chen wrote: >

[U-Boot] [PATCH] arm: mvebu: enable generic distro boot config

2016-01-14 Thread Dennis Gilmore
Switch all of the mvebu boards to support disto generic booting This will enable Fedora, Debian and other distros to support mvebu systems easier. Tested on SolidRun ClearFog Signed-off-by: Dennis Gilmore --- include/configs/clearfog.h | 5 --- include/configs/mv-common.h

[U-Boot] [PATCH 24/25] exynos: video: Convert several boards to driver model for video

2016-01-14 Thread Simon Glass
Update several boards to use driver model for video. This involves changes to the EDP and FIMD (frame buffer) drivers. Existing PWM, simple-panel and pwm-backlight drivers are used. These work without additional configuration since they use the device tree settings in the same way as Linux.

[U-Boot] [PATCH 23/25] exynos: video: Rename variables for driver model

2016-01-14 Thread Simon Glass
Use 'priv' for a private pointer and 'regs' for a register pointer. Signed-off-by: Simon Glass --- drivers/video/exynos/exynos_dp.c | 434 +++--- drivers/video/exynos/exynos_dp_lowlevel.c | 71 +++-- drivers/video/exynos/exynos_dp_lowlevel.h

[U-Boot] [PATCH 14/25] exynos: dts: Add pwm device tree node

2016-01-14 Thread Simon Glass
Add this node from Linux v4.4 so that PWMs can be used in U-Boot. Signed-off-by: Simon Glass --- arch/arm/dts/exynos5250.dtsi | 7 +++ arch/arm/dts/exynos54xx.dtsi | 7 +++ 2 files changed, 14 insertions(+) diff --git a/arch/arm/dts/exynos5250.dtsi

[U-Boot] [PATCH 04/19] video: Use fractional units for X coordinates

2016-01-14 Thread Simon Glass
With anti-aliased fonts we need a more fine-grained horizontal position than a single pixel. Characters can be positioned to start part-way through a pixel, with anti-aliasing (greyscale edges) taking care of the visual effect. To cope with this, use fractional units (1/256 pixel) for horizontal

[U-Boot] [PATCH 06/19] video: Provide a left margin for the text console

2016-01-14 Thread Simon Glass
Allow the left margin to be set so that text does not have to be right up against the left side. On some panels this makes it hard to read. Signed-off-by: Simon Glass --- drivers/video/vidconsole-uclass.c | 6 +++--- include/video_console.h | 2 ++ 2 files changed,

[U-Boot] [PATCH 07/19] video: Provide a signal when a new console line is started

2016-01-14 Thread Simon Glass
When we start a new line (due to the user pressing return), signal this to the driver so that it can flush its buffer of character positions. Signed-off-by: Simon Glass --- drivers/video/vidconsole-uclass.c | 14 ++ include/video_console.h | 14

[U-Boot] [PATCH 14/19] License: Add the Open Font License

2016-01-14 Thread Simon Glass
This is used by two of the font files. Add this license to permit tracking of this. The copyright text cannot be added to the .ttf files, so put it here. Signed-off-by: Simon Glass --- Licenses/OFL.txt | 97

[U-Boot] [PATCH 15/19] video: Allow selection of the driver and font size

2016-01-14 Thread Simon Glass
Provide a way for the video console driver to be selected. This is controlled by the video driver's private data. This can be set up when the driver is probed so that it is ready for the video_post_probe() method. The font size is provided as well. The console driver may or may not support this

[U-Boot] [PATCH 13/19] video: Add the Cantoraone decorative font

2016-01-14 Thread Simon Glass
This font is a little more ornate than normal. Example uses are on security screens where a feeling of formality is required. Signed-off-by: Simon Glass --- drivers/video/console_truetype.c | 4 drivers/video/fonts/Kconfig| 10 ++

[U-Boot] [PATCH 12/19] video: Add the Rufscript handwriting font

2016-01-14 Thread Simon Glass
This can be used when a a friendly 'hand-writing' font is needed. It helps to make the device feel familiar. Signed-off-by: Simon Glass --- drivers/video/console_truetype.c | 4 drivers/video/fonts/Kconfig | 9 + drivers/video/fonts/Makefile

[U-Boot] [PATCH 16/19] video: sandbox: Allow selection of font size and console name

2016-01-14 Thread Simon Glass
For testing it is useful to be able to select the font size and the console driver for sandbox. Add this information to platform data and copy it to the video device when needed. Signed-off-by: Simon Glass --- drivers/video/sandbox_sdl.c | 2 ++ include/dm/test.h |

Re: [U-Boot] [PATCH v2 3/6] clk: add static qualifier to local functions

2016-01-14 Thread Simon Glass
On 12 January 2016 at 21:16, Masahiro Yamada wrote: > Signed-off-by: Masahiro Yamada > --- > > Changes in v2: None > > drivers/clk/clk_rk3036.c | 2 +- > drivers/clk/clk_rk3288.c | 2 +- > drivers/clk/clk_sandbox.c | 5 +++-- > 3

[U-Boot] [PATCH] scripts/Makefile* Add SPDX-License-Identifier tag

2016-01-14 Thread Tom Rini
A general best practice for SPDX is that Makefiles should have an identifier, add these as everything else is currently covered. Signed-off-by: Tom Rini --- scripts/Makefile.autoconf |3 +++ scripts/Makefile.build |3 +++ scripts/Makefile.clean |3 +++

[U-Boot] [PATCH 07/25] exynos: video: Drop static variables in exynos_dp_lowlevel.c

2016-01-14 Thread Simon Glass
Drop these and use parameters instead. Signed-off-by: Simon Glass --- drivers/video/exynos/exynos_dp.c | 310 +- drivers/video/exynos/exynos_dp_lowlevel.c | 195 ++- drivers/video/exynos/exynos_dp_lowlevel.h | 131

[U-Boot] [PATCH 12/25] exynos: pwm: Add a driver for the exynos5 PWM

2016-01-14 Thread Simon Glass
This driver supports the standard PWM API. There are 5 PWMs. Four are used normally and the last is normally used as a timer. Signed-off-by: Simon Glass --- arch/arm/cpu/armv7/s5p-common/timer.c | 3 + drivers/pwm/Kconfig | 9 +++ drivers/pwm/Makefile

[U-Boot] [PATCH 13/25] video: Add an enum for active low/high

2016-01-14 Thread Simon Glass
This is used for video signals in some drivers so provide a standard way of representing it in an enum. Signed-off-by: Simon Glass --- include/video.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/video.h b/include/video.h index 5b147ba..41e3cbf 100644 ---

[U-Boot] [PATCH 15/25] exynos: Allow tizen to be built without an LCD

2016-01-14 Thread Simon Glass
This file currently requires an LCD. Adjust it to work without one. Signed-off-by: Simon Glass --- include/libtizen.h | 2 ++ lib/tizen/tizen.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/include/libtizen.h b/include/libtizen.h index 6490fb5..55dccff 100644 ---

[U-Boot] [PATCH 17/25] exynos: Disable LCD display for boards we can't convert

2016-01-14 Thread Simon Glass
Some boards have the LCD enabled but I cannot test operation for the driver model conversion. Disable the LCD on these to avoid build errors. Signed-off-by: Simon Glass --- board/samsung/trats/trats.c | 2 ++ board/samsung/universal_c210/universal.c | 2 ++

[U-Boot] [PATCH 16/25] exynos: Allow CONFIG_MISC_COMMON to be build without an LCD

2016-01-14 Thread Simon Glass
This file currently requires LCD support. Adjust it so that it can still be built without LCD support (even thought it won't work fully). Signed-off-by: Simon Glass --- board/samsung/common/misc.c | 10 ++ 1 file changed, 10 insertions(+) diff --git

[U-Boot] [PATCH 21/25] exynos: dts: Add display-related device tree fragments

2016-01-14 Thread Simon Glass
Bring in device tree pieces related to display from Linux 4.4 for: - snow - peach_pit - peach_pi - spring Signed-off-by: Simon Glass --- arch/arm/dts/exynos5.dtsi | 3 +- arch/arm/dts/exynos5250-snow.dts | 44

[U-Boot] [PATCH 18/25] dts: Add clock and regulator binding files for max77802

2016-01-14 Thread Simon Glass
These are used by peach_pit and peach_pi. Add them so they can be referenced in the device tree files. Signed-off-by: Simon Glass --- include/dt-bindings/clock/maxim,max77802.h | 22 ++ include/dt-bindings/regulator/maxim,max77802.h | 18

Re: [U-Boot] [PATCH 6/9] efi_loader: Add runtime services

2016-01-14 Thread Alexander Graf
On 26.12.15 19:33, Leif Lindholm wrote: > On Tue, Dec 22, 2015 at 02:57:53PM +0100, Alexander Graf wrote: >> After booting has finished, EFI allows firmware to still interact with the OS >> using the "runtime services". These callbacks live in a separate address >> space, >> since they are

Re: [U-Boot] [PATCH 1/9] disk/part.c: Expose a list of available block drivers

2016-01-14 Thread Simon Glass
Hi Alex, On 14 January 2016 at 16:33, Alexander Graf wrote: > > > On 15.01.16 00:11, Simon Glass wrote: >> Hi Alexander, >> >> On 22 December 2015 at 06:57, Alexander Graf wrote: >>> We have a pretty nice and generic interface to ask for a specific block >>>

Re: [U-Boot] [PATCH] MAINTAINERS: add entry for Rockchip

2016-01-14 Thread Simon Glass
On 5 January 2016 at 17:24, Simon Glass wrote: > On 4 January 2016 at 18:47, Masahiro Yamada > wrote: >> >> Rockchip has its own git repository maintained by Simon. >> Document this. >> >> Signed-off-by: Masahiro Yamada

Re: [U-Boot] [PATCH v1] mmc: rockchip: the non-removable property must point to emmc

2016-01-14 Thread Simon Glass
On 14 January 2016 at 17:43, Simon Glass wrote: > On 7 January 2016 at 23:06, Lin Huang wrote: >> the non-removable property point to sdcard before, it is wrong, >> it must point to emmc, correct it. >> >> Signed-off-by: Lin Huang >>

Re: [U-Boot] [PATCH 1/9] disk/part.c: Expose a list of available block drivers

2016-01-14 Thread Alexander Graf
On 15.01.16 01:46, Simon Glass wrote: > Hi Alex, > > On 14 January 2016 at 16:33, Alexander Graf wrote: >> >> >> On 15.01.16 00:11, Simon Glass wrote: >>> Hi Alexander, >>> >>> On 22 December 2015 at 06:57, Alexander Graf wrote: We have a pretty nice and

[U-Boot] [PATCH 18/19] video: test: Add console tests for truetype

2016-01-14 Thread Simon Glass
This adds tests for the different character types, line wrap, scrolling and backspace. Signed-off-by: Simon Glass --- test/dm/video.c | 63 + 1 file changed, 63 insertions(+) diff --git a/test/dm/video.c

[U-Boot] [PATCH 09/19] video: Add a console driver that uses TrueType fonts

2016-01-14 Thread Simon Glass
The existing 8x16 font is adequate for most purposes. It is small and fast. However for boot screens where information must be presented to the user, the console font is not ideal. Common requirements are larger and better-looking fonts. This console driver can use TrueType fonts built into

[U-Boot] [PATCH 19/19] video: Correct 'tor' typo in comment

2016-01-14 Thread Simon Glass
This should be 'rot', not 'tor'. Signed-off-by: Simon Glass --- include/video.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/video.h b/include/video.h index 5ed0999..cc2b35a 100644 --- a/include/video.h +++ b/include/video.h @@ -54,7 +54,7 @@

[U-Boot] [PATCH 17/19] video: sandbox: Enable truetype fonts for sandbox

2016-01-14 Thread Simon Glass
Enable this feature so that truetype fonts can be used on the sandbox console. Update the tests to select the normal/rotated console when needed. Signed-off-by: Simon Glass --- configs/sandbox_defconfig | 2 ++ test/dm/video.c | 21 - 2 files

[U-Boot] [PATCH 10/19] video: Add the Nimbus sans font

2016-01-14 Thread Simon Glass
This provides a good-looking font for user prompts. Signed-off-by: Simon Glass --- drivers/video/console_truetype.c | 5 + drivers/video/fonts/Kconfig | 13 + drivers/video/fonts/Makefile | 2 ++

[U-Boot] [PATCH 11/19] video: Add the AnkaCoder mono-spaced font

2016-01-14 Thread Simon Glass
This can be used when a mono-space font is needed, but the console font is too small (such as with high-DPI displays). Signed-off-by: Simon Glass --- drivers/video/console_truetype.c| 4 drivers/video/fonts/Kconfig | 12

[U-Boot] [PATCH] rockchip: spi: Correct a build warning in a debug()

2016-01-14 Thread Simon Glass
Fix a debug() type mismatch warning. Signed-off-by: Simon Glass --- drivers/spi/rk_spi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/rk_spi.c b/drivers/spi/rk_spi.c index 5e0c6ad..c3a71ec 100644 --- a/drivers/spi/rk_spi.c +++

[U-Boot] [PATCH 14/23] tegra: video: Merge the display driver into one file

2016-01-14 Thread Simon Glass
At present we have code in arch/arm and code in drivers/video. Move it all into drivers/video since it is a display driver and our current approach is to put all driver code in drivers/. Make a few functions static now that they are not used outside the file. Signed-off-by: Simon Glass

[U-Boot] [PATCH 19/23] tegra: video: Move LCD enums into the driver

2016-01-14 Thread Simon Glass
There is no need to have these in a separate file as they are not referenced from anywhere else. Signed-off-by: Simon Glass --- arch/arm/include/asm/arch-tegra20/display.h | 22 -- drivers/video/tegra.c | 20 2

[U-Boot] [PATCH 17/23] tegra: video: Convert tegra20 LCD driver to driver model

2016-01-14 Thread Simon Glass
Move this driver over to use driver model. This involves rearranging the code somewhat. The effect is that everything is run from the probe() method. Boards which use this are fixed up, but only seaboard is tested. Signed-off-by: Simon Glass ---

[U-Boot] [PATCH 12/23] tegra: video: Rename CONFIG_VIDEO_TEGRA to CONFIG_VIDEO_TEGRA20

2016-01-14 Thread Simon Glass
This option refers only to the tegra20 video driver, so name it as such to avoid confusion with tegra124. Also move this option to Kconfig. Signed-off-by: Simon Glass --- arch/arm/mach-tegra/tegra20/Makefile| 2 +- board/toradex/colibri_t20/colibri_t20.c | 2 +-

[U-Boot] [PATCH 21/23] tegra: Convert CONFIG_PWM_TEGRA to Kconfig

2016-01-14 Thread Simon Glass
Move this option to Kconfig and clean up the header files. Adjust the only user (the LCD driver) to work with the new driver. Signed-off-by: Simon Glass --- configs/colibri_t20_defconfig | 8 +--- configs/harmony_defconfig | 1 + configs/medcom-wide_defconfig | 1 +

[U-Boot] [PATCH 08/23] tegra: lcd: Merge tegra124-lcd.c into display.c

2016-01-14 Thread Simon Glass
There isn't a lot of benefit of have two separate files. With driver model the code needs to be in the same driver, so it's better to have it in the same file. Signed-off-by: Simon Glass --- arch/arm/include/asm/arch-tegra/dc.h | 5 -- drivers/video/tegra124/Makefile

[U-Boot] [PATCH 22/23] tegra: video: Move LCD driver to use the DM PWM driver

2016-01-14 Thread Simon Glass
Use the driver-model PWM driver in preference to the old code. Signed-off-by: Simon Glass --- arch/arm/dts/tegra20-colibri.dts | 4 arch/arm/dts/tegra20-harmony.dts | 4 arch/arm/dts/tegra20-medcom-wide.dts | 4 arch/arm/dts/tegra20-paz00.dts

Re: [U-Boot] [U-Boot, v7, 2/2] arm: move gd handling outside of C code

2016-01-14 Thread Tom Rini
On Thu, Jan 14, 2016 at 12:27:02PM -0700, Stephen Warren wrote: > On 01/14/2016 12:11 PM, Tom Rini wrote: > >On Thu, Jan 14, 2016 at 11:35:39AM -0700, Stephen Warren wrote: > >>On 01/14/2016 06:20 AM, Tom Rini wrote: > >>>On Wed, Nov 25, 2015 at 05:56:33PM +0100, Albert ARIBAUD wrote: > >>> >

[U-Boot] [PATCH 03/23] tegra: mmc: Fix comments in the MMC driver init

2016-01-14 Thread Simon Glass
Fix the SoC names in two comments. Signed-off-by: Simon Glass --- drivers/mmc/tegra_mmc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/tegra_mmc.c b/drivers/mmc/tegra_mmc.c index 1584865..573819a 100644 --- a/drivers/mmc/tegra_mmc.c +++

[U-Boot] [PATCH 04/23] tegra: dts: Sync up the tegra124 device tree files with Linux

2016-01-14 Thread Simon Glass
Sync up these files with Linux v4.4. Signed-off-by: Simon Glass --- arch/arm/dts/tegra124-jetson-tk1.dts| 13 + arch/arm/dts/tegra124-venice2.dts | 14 + arch/arm/dts/tegra124.dtsi | 693 +++-

[U-Boot] [PATCH 01/23] tegra: keyboard: Fix the init order

2016-01-14 Thread Simon Glass
We need to add the base tables before adding the function tables. Fix the init order so the keyboard scans keys correctly. Signed-off-by: Simon Glass --- drivers/input/tegra-kbc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/tegra-kbc.c

[U-Boot] [PATCH 02/23] dm: video: Flush the cache after a puts()

2016-01-14 Thread Simon Glass
This helps keep the display consistent. puts() is used when printing the prompt, so is a useful way to make sure the current display contents is visible. Signed-off-by: Simon Glass --- drivers/video/vidconsole-uclass.c | 1 + 1 file changed, 1 insertion(+) diff --git

[U-Boot] [PATCH 09/23] tegra: Allow driver model to be used for the PWM

2016-01-14 Thread Simon Glass
We can skip this manual init when using driver model for the PWM. Signed-off-by: Simon Glass --- arch/arm/mach-tegra/board2.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-tegra/board2.c b/arch/arm/mach-tegra/board2.c index

[U-Boot] [PATCH 07/23] tegra: pwm: Add a driver for the tegra PWM

2016-01-14 Thread Simon Glass
This PWM supports four channels. The driver always uses the 32KHz clock, and adjusts the duty cycle accordingly. Signed-off-by: Simon Glass --- arch/arm/include/asm/arch-tegra/pwm.h | 2 + drivers/pwm/Makefile | 3 ++ drivers/pwm/tegra_pwm.c

Re: [U-Boot] [U-Boot, v7, 2/2] arm: move gd handling outside of C code

2016-01-14 Thread Stephen Warren
On 01/14/2016 06:20 AM, Tom Rini wrote: On Wed, Nov 25, 2015 at 05:56:33PM +0100, Albert ARIBAUD wrote: As of gcc 5.2.1 for Thumb-1, it is not possible any more to assign gd from C code, as gd is mapped to r9, and r9 may now be saved in the prolog sequence, and restored in the epilog sequence,

[U-Boot] [PATCH 18/23] tegra: video: Remove the static variables

2016-01-14 Thread Simon Glass
We can move the static variables into the driver-private data. Signed-off-by: Simon Glass --- drivers/video/tegra.c | 31 +++ 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/drivers/video/tegra.c b/drivers/video/tegra.c index

[U-Boot] [PATCH 20/23] tegra: video: Move all fdt-decoding into a single function

2016-01-14 Thread Simon Glass
Join the two functions which decode the device tree and put them in the ofdata_to_platdata() method. Signed-off-by: Simon Glass --- drivers/video/tegra.c | 265 -- 1 file changed, 105 insertions(+), 160 deletions(-) diff --git

[U-Boot] [PATCH v2] patman: Add --thread option

2016-01-14 Thread Mateusz Kulikowski
Add option to create threaded series of patches. With it, it will be possible to create patch threads like this: [PATCH 0/10] Add support for time travel [PATCH 1/10] Add Flux Capacitor driver [PATCH 2/10] Add Mr. Fusion driver (...) Internally it will call git send-email with --thread

[U-Boot] [PATCH 00/23] dm: tegra: Convert tegra20 and tegra124 video drivers to driver model

2016-01-14 Thread Simon Glass
This series moves these two drivers over to use driver model for video. This involves the following steps: - Sync up some device tree files with Linux - Implement a proper PWM driver - Clean up and unify the driver code - Modify the existing drivers to work with driver model The tegra20 display

[U-Boot] [PATCH 23/23] tegra: video: Clean up the old LCD/PWM driver code

2016-01-14 Thread Simon Glass
Remove the old PWM code. Remove calls to CONFIG_LCD functions now that we are using driver model for video. Signed-off-by: Simon Glass --- arch/arm/include/asm/arch-tegra/pwm.h | 32 - arch/arm/mach-tegra/Makefile | 1 - arch/arm/mach-tegra/board2.c

Re: [U-Boot] [PATCH 1/9] disk/part.c: Expose a list of available block drivers

2016-01-14 Thread Tom Rini
On Tue, Dec 22, 2015 at 02:57:48PM +0100, Alexander Graf wrote: > We have a pretty nice and generic interface to ask for a specific block > device. However, that one is still based around the magic notion that > we know the driver name. > > In order to be able to write fully generic disk access

Re: [U-Boot] [PATCH 1/2] Revert "powerpc/mpc85xx: SECURE BOOT - Bypass PAMU in case of secure boot"

2016-01-14 Thread Wolfgang Denk
Dear Aneesh Bansal, In message <1452760873-25079-1-git-send-email-aneesh.ban...@nxp.com> you wrote: > This reverts commit 7cad2e38d61e27ea59fb7944f7e647e97ef292d3. Why? Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich,

[U-Boot] [PATCH 06/14] efi_loader: Add runtime services

2016-01-14 Thread Alexander Graf
After booting has finished, EFI allows firmware to still interact with the OS using the "runtime services". These callbacks live in a separate address space, since they are available long after U-Boot has been overwritten by the OS. This patch adds enough framework for arbitrary code inside of

[U-Boot] [PATCH 01/14] disk/part.c: Expose list of available block drivers

2016-01-14 Thread Alexander Graf
We have a pretty nice and generic interface to ask for a specific block device. However, that one is still based around the magic notion that we know the driver name. In order to be able to write fully generic disk access code, expose the currently internal list to other source files so that they

[U-Boot] [PATCH 02/14] include/efi_api.h: Add more detailed API definitions

2016-01-14 Thread Alexander Graf
The EFI API header is great, but missing a good chunk of function prototype, GUID defines and enum declarations. This patch extends it to cover more of the EFI API. It's still not 100% complete, but sufficient enough for our EFI payload interface. Signed-off-by: Alexander Graf

[U-Boot] [PATCH 07/14] efi_loader: Add disk interfaces

2016-01-14 Thread Alexander Graf
A EFI applications usually want to access storage devices to load data from. This patch adds support for EFI disk interfaces. It loops through all block storage interfaces known to U-Boot and creates an EFI object for each existing one. EFI applications can then through these objects call

[U-Boot] [PATCH 10/14] arm64: Allow exceptions to return

2016-01-14 Thread Alexander Graf
Our current arm64 exception handlers all panic and never return to the exception triggering code. But if any handler wanted to continue execution after fixups, it would need help from the exception handling code to restore all registers. This patch implements that help. With this code, exception

[U-Boot] [PATCH 09/14] efi_loader: Implement memory allocation and map

2016-01-14 Thread Alexander Graf
Due to popular request, this is a separate patch implementing all of the memory allocation and memory mapping bits. We assume we always have a linear RAM map. At TOM U-Boot resides. Inside of U-Boot there is the runtime region that we need to explicitly expose via the EFI memory map. Below

[U-Boot] [PATCH 08/14] efi_loader: Add "bootefi" command

2016-01-14 Thread Alexander Graf
In order to execute an EFI application, we need to bridge the gap between U-Boot's notion of executing images and EFI's notion of doing the same. The best path forward IMHO here is to stick completely to the way U-Boot deals with payloads. You manually load them using whatever method to RAM and

[U-Boot] [RFC PATCH v1] kirkwood_nand: claim MPP pins on the fly

2016-01-14 Thread Chris Packham
Claim the MPP pins for the NAND flash controller only when it's actually being used. This allows the pins to be shared with the SPI interface which already supports an equivalent on-access MPP reconfiguration. Reviewed-by: Mark Tomlinson Signed-off-by: Chris

[U-Boot] [PATCH 13/14] efi_loader: hook up in build environment

2016-01-14 Thread Alexander Graf
Now that we have all the bits and pieces ready for EFI payload loading support, hook them up in Makefiles and KConfigs so that we can build. Signed-off-by: Alexander Graf --- v1 -> v2: - Move to GPLv2+ - Default to y --- lib/Kconfig | 1 + lib/Makefile

[U-Boot] [PATCH 12/14] efi_loader: Add DCACHE_OFF support for arm64

2016-01-14 Thread Alexander Graf
On arm64, boards can declare that they want to run with dcache disabled. However, uEFI guarantees to payloads that they're running with the dcache enabled which on arm64 means that they can do unaligned accesses. To not leave those systems out of the door, let's handle the unaligned traps. In

[U-Boot] [PATCH 14/14] efi_loader: Add distro boot script for removable media

2016-01-14 Thread Alexander Graf
UEFI defines a simple boot protocol for removable media. There we should look at the EFI (first GPT FAT) partition and search for /efi/boot/bootXXX.efi with XXX being different between different platforms (x86, x64, arm, aa64, ...). This patch implements a simple version of that protocol for the

[U-Boot] [PATCH 11/14] arm64: Allow EFI payload code to take exceptions

2016-01-14 Thread Alexander Graf
There are 2 ways an EFI payload could return into u-boot: - Callback function - Exception While in EFI payload mode, x18 is owned by the payload and may not contain a valid pointer to gd, so we need to fix it up. We do that properly for the payload to callback path already. This patch also

[U-Boot] [PATCH 04/14] efi_loader: Add boot time services

2016-01-14 Thread Alexander Graf
When an EFI application runs, it has access to a few descriptor and callback tables to instruct the EFI compliant firmware to do things for it. The bulk of those interfaces are "boot time services". They handle all object management, and memory allocation. This patch adds support for the boot

[U-Boot] [PATCH 00/14] EFI payload / application support v2

2016-01-14 Thread Alexander Graf
This is my Christmas present for my openSUSE friends :). U-Boot is a great project for embedded devices. However, convincing everyone involved that only for "a few oddball ARM devices" we need to support different configuration formats from grub2 when all other platforms (PPC, System Z, x86) are

[U-Boot] [PATCH 03/14] efi_loader: Add PE image loader

2016-01-14 Thread Alexander Graf
EFI uses the PE binary format for its application images. Add support to EFI PE binaries as well as all necessary bits for the "EFI image loader" interfaces. Signed-off-by: Alexander Graf --- v1 -> v2: - move memory allocation to separate patch - limit 32/64 to hosts that

[U-Boot] [PATCH 05/14] efi_loader: Add console interface

2016-01-14 Thread Alexander Graf
One of the basic EFI interfaces is the console interface. Using it an EFI application can interface with the user. This patch implements an EFI console interface using getc() and putc(). Today, we only implement text based consoles. We also convert the EFI Unicode characters to UTF-8 on the fly,

Re: [U-Boot] [PATCH] arm: initialize gd for AArch64

2016-01-14 Thread Simon Glass
On 14 January 2016 at 14:03, Stephen Warren wrote: > From: Stephen Warren > > Commit adc421e4cee8 "arm: move gd handling outside of C code" removed > the call to arch_setup_gd() on ARM and replaced it with assembly code > in crt0.S. However, AArch64

Re: [U-Boot] [PATCH V2 1/7] test/py: Implement pytest infrastructure

2016-01-14 Thread Simon Glass
Hi Heiko, On 16 December 2015 at 22:45, Heiko Schocher wrote: > Hello Stephen, > > > Am 16.12.2015 um 17:27 schrieb Stephen Warren: >> >> On 12/16/2015 08:11 AM, Michal Simek wrote: >>> >>> On 9.12.2015 17:32, Stephen Warren wrote: On 12/02/2015 03:18 PM, Stephen Warren

[U-Boot] [PATCH 11/25] exynos: video: Combine LCD driver into one file

2016-01-14 Thread Simon Glass
At present exynos_fimd.c is the controller and exynos_fb.c is the U-Boot LCD interface. With driver model we want these in one file, so join them in preparation. Signed-off-by: Simon Glass --- drivers/video/exynos/Makefile | 2 +- drivers/video/exynos/exynos_fb.c |

[U-Boot] [PATCH 06/25] exynos: video: Drop static variables in exynos_fb.c

2016-01-14 Thread Simon Glass
Drop these and use the existing variables instead. Signed-off-by: Simon Glass --- drivers/video/exynos/exynos_fb.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/video/exynos/exynos_fb.c b/drivers/video/exynos/exynos_fb.c index

[U-Boot] [PATCH 05/25] exynos: video: Drop static variables in exynos_fimd.c

2016-01-14 Thread Simon Glass
Drop these and use parameters instead. Signed-off-by: Simon Glass --- drivers/video/exynos/exynos_fb.h | 2 +- drivers/video/exynos/exynos_fimd.c | 51 ++ include/exynos_lcd.h | 1 + 3 files changed, 31 insertions(+), 23

[U-Boot] [PATCH 09/25] exynos: video: Move struct exynos_platform_mipi_dsim into vidinfo

2016-01-14 Thread Simon Glass
Put the pointer to this structure in struct vidinfo so that we can reference it without it being global. Signed-off-by: Simon Glass --- arch/arm/mach-exynos/include/mach/mipi_dsim.h | 5 +++-- drivers/video/exynos/exynos_fb.c | 2 +-

[U-Boot] [PATCH 08/25] exynos: video: Move dsim_config_dt into a function

2016-01-14 Thread Simon Glass
In preparation for making this a parameter, move it into the function that sets it up. Signed-off-by: Simon Glass --- drivers/video/exynos/exynos_mipi_dsi.c | 37 +- 1 file changed, 19 insertions(+), 18 deletions(-) diff --git

[U-Boot] [PATCH 10/25] exynos: video: Move mipi_lcd_device_dt into a function

2016-01-14 Thread Simon Glass
In preparation for making this a parameter, move it into the function that sets it up. Signed-off-by: Simon Glass --- arch/arm/mach-exynos/include/mach/mipi_dsim.h | 2 +- drivers/video/exynos/exynos_mipi_dsi.c| 17 + 2 files changed, 10

Re: [U-Boot] [PATCH v4 5/6] rockchip: kylin: Enable boot with android boot image

2016-01-14 Thread Jeffy Chen
Hi Tom, On 2016-1-15 0:22, Tom Rini wrote: On Thu, Jan 14, 2016 at 10:31:34AM +0800, Jeffy Chen wrote: Hi Tom, On 2016-1-13 23:28, Tom Rini wrote: On Wed, Jan 13, 2016 at 04:53:19PM +0800, Jeffy Chen wrote: The android kernel is using appended dtb by default, and store ramdisk right after

<    1   2   3   4   >