[U-Boot] [PATCH v3 3/3] mpc85xx: powerpc: usb: Update the list of Socs afftected by erratum A006261

2016-08-16 Thread Sriram Dash
Apply the erratum A006261 for the following Socs: P2041 rev 2.0, P2040 rev 2.0, P5040 rev 2.0, 2.1 Do not apply erratum A006261 for the following Socs: T4160, T4080, T1040, T1042, T1020, T1022, T2080, T2081 Erratum A006261 is applicable for the following Socs: P1010(1.0, 2.0), P2041(1.0, 1.1, 2.0

[U-Boot] [PATCH v3 1/3] mpc85xx: powerpc: usb: Modified the erratum A006261 according to endianness

2016-08-16 Thread Sriram Dash
Modifies erratum implementation due to the fact that P3041, P5020, and P5040 are all big endian for the USB PHY registers, but they were specified little endian. Signed-off-by: Sriram Dash Signed-off-by: Rajesh Bhagat --- Changes in v3: - Modify the commit message - Modify the commit descrip

Re: [U-Boot] [PATCH v3 1/8] x86: Move table csum into separate header

2016-08-16 Thread Alexander Graf
> On 17 Aug 2016, at 06:15, Simon Glass wrote: > > Hi Alex, > > On 16 August 2016 at 02:55, Alexander Graf wrote: >> We need the checksum function without all the other table functionality >> soon, so let's split it out into its own header file. >> >> Signed-off-by: Alexander Graf >> Reviewe

[U-Boot] [PATCH v3 2/3] mpc85xx: powerpc: usb: Enable Usb phy initialisation settings for P1010

2016-08-16 Thread Sriram Dash
CONFIG_SYS_FSL_USB1_PHY_ENABLE is set and the USB Phy offset are set to enable the initial setting of Usb Phy for P1010. Signed-off-by: Sriram Dash Signed-off-by: Rajesh Bhagat --- Changes in v3: - Modify the commit message - Modify the commit description arch/powerpc/include/asm/config_mp

[U-Boot] [PATCH v3 0/3] Modifies the erratum A006261 according to endianness

2016-08-16 Thread Sriram Dash
Modifies erratum A006261 implementation due to the fact that P3041, P5020, and P5040 are all big endian for the USB PHY registers, but they were specified little endian. Enables the Phy init settings for P1010 Soc. Also, applies the erratum for P2041 rev 2.0, P2040 rev 2.0, P5040 rev 2.0, 2.1 and r

Re: [U-Boot] [PATCH 2/4] board: evb-rk3399: add api to support dwc3 gadget

2016-08-16 Thread Kever Yang
+ Simon, On 08/16/2016 06:03 PM, Kever Yang wrote: This patch add board_usb_init() and interrupt callback for dwc3 gadget. Signed-off-by: Kever Yang --- board/rockchip/evb_rk3399/evb-rk3399.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/board/rockchip/evb_rk3

Re: [U-Boot] [PATCH 1/4] rk3399: add a empty "sys_proto.h" header file

2016-08-16 Thread Kever Yang
+ Simon, On 08/16/2016 06:03 PM, Kever Yang wrote: driver/usb/dwc3/gadget.c need a "sys_proto.h" header file, add a empty one to make compile success. Signed-off-by: Kever Yang --- arch/arm/include/asm/arch-rockchip/sys_proto.h | 10 ++ 1 file changed, 10 insertions(+) create mod

Re: [U-Boot] [PATCH] Makefile: Remove tags file on mrproper

2016-08-16 Thread Vignesh R
On Monday 01 August 2016 09:53 PM, Tom Rini wrote: > On Mon, Aug 01, 2016 at 02:41:08PM +0530, Vignesh R wrote: > >> make tags creates a symbolic link called tags to ctags. Remove this file >> on make mrproper or make distclean. >> >> Signed-off-by: Vignesh R > > Reviewed-by: Tom Rini > Gen

Re: [U-Boot] [PATCH v2 2/2] net: davinci_emac: Invalidate only the received portion of a buffer

2016-08-16 Thread Mugunthan V N
On Monday 15 August 2016 10:53 PM, Karl Beldan wrote: > ATM when receiving a packet the whole buffer is invalidated, this change > optimizes this behaviour. > > Signed-off-by: Karl Beldan Reviewed-by: Mugunthan V N Regards Mugunthan V N ___ U-Boot ma

Re: [U-Boot] [PATCH v2 1/2] net: davinci_emac: Round up top tx buffer boundaries for dcache ops

2016-08-16 Thread Mugunthan V N
On Monday 15 August 2016 10:53 PM, Karl Beldan wrote: > check_cache_range() warns that the top boundaries are not properly > aligned when flushing or invalidating the buffers and make these > operations fail. > > This gets rid of the remaining warnings: > CACHE: Misaligned operation at range > >

Re: [U-Boot] [PATCH 4/4] config: rk3399: add support for dwc3 gadget

2016-08-16 Thread Simon Glass
On 16 August 2016 at 04:03, Kever Yang wrote: > To support fastboot, we need to enable the controller first. > rk3399 is using dwc3 as usb device controller, this patch enable > the configs for dwc3 gadget. > > Signed-off-by: Kever Yang > --- > > include/configs/rk3399_common.h | 21

Re: [U-Boot] [PATCH 5/7] smbios: Expose in efi_loader as table

2016-08-16 Thread Simon Glass
Hi Alex, On 16 August 2016 at 02:38, Alexander Graf wrote: > On 08/12/2016 10:07 PM, Simon Glass wrote: >> >> Hi Alex, >> >> On 12 August 2016 at 12:36, Alexander Graf wrote: >>> >>> >>> On 12.08.16 19:20, Simon Glass wrote: Hi Alex, On 8 August 2016 at 08:06, Alexander Graf

Re: [U-Boot] [PATCH v3 7/8] efi_loader: Fix efi_install_configuration_table

2016-08-16 Thread Simon Glass
On 16 August 2016 at 02:55, Alexander Graf wrote: > So far we were only installing the FDT table and didn't have space > to store any other. Hence nobody realized that our efi table allocation > was broken in that it didn't set the indicator for the number of tables > plus one. > > This patch fixe

Re: [U-Boot] dm video question

2016-08-16 Thread Simon Glass
Hi Peng, On 15 August 2016 at 04:05, Peng Fan wrote: > > Hi Simon, > > I am trying to coverting mxsfb.c to support dm. > > But met the following issue. > " > mxsfb_lcd_bind: Frame buffer size 200400 > Video device 'lcdif@021c8000' cannot allocate frame buffer memory -ensure the > device is set u

Re: [U-Boot] [PATCH v3 5/8] smbios: Generate type 4 on non-x86 systems

2016-08-16 Thread Simon Glass
HI Alex, On 16 August 2016 at 02:55, Alexander Graf wrote: > The type 4 table generation code is very x86 centric today. Refactor things > out a bit to allow the tables to get generated for other architectures as > well. > > Signed-off-by: Alexander Graf > --- > include/smbios.h | 3 +++ > lib

Re: [U-Boot] [RESEND PATCH v2 2/5] pinctrl: add driver for rk3399

2016-08-16 Thread Simon Glass
On 16 August 2016 at 03:58, Kever Yang wrote: > > This patch add pinctrl driver for rk3399. > > Signed-off-by: Kever Yang > --- > > Changes in v2: > - move and reg value MACRO in C source, and use MASK/SHIFT > > arch/arm/include/asm/arch-rockchip/grf_rk3399.h | 321 + > drivers/p

Re: [U-Boot] [PATCH v3 4/8] smbios: Allow compilation on 64bit systems

2016-08-16 Thread Simon Glass
On 16 August 2016 at 02:55, Alexander Graf wrote: > The SMBIOS generation code passes pointers as u32. That causes the compiler > to warn on casts to pointers. This patch moves all address pointers to > uintptr_t instead. > > Technically u32 would be enough for the current SMBIOS2 style tables, bu

Re: [U-Boot] [PATCH v3 1/8] x86: Move table csum into separate header

2016-08-16 Thread Simon Glass
Hi Alex, On 16 August 2016 at 02:55, Alexander Graf wrote: > We need the checksum function without all the other table functionality > soon, so let's split it out into its own header file. > > Signed-off-by: Alexander Graf > Reviewed-by: Bin Meng > --- > arch/x86/include/asm/tables.h | 2 ++ >

Re: [U-Boot] [PATCH v3 3/8] efi_loader: Expose efi_install_configuration_table

2016-08-16 Thread Simon Glass
On 16 August 2016 at 02:55, Alexander Graf wrote: > We want to be able to add configuration table entries from our own code as > well as from EFI payload code. Export the boot service function internally > too, so that we can reuse it. > > Signed-off-by: Alexander Graf > --- > include/efi_loader

Re: [U-Boot] [PATCH v3 6/8] smbios: Expose in efi_loader as table

2016-08-16 Thread Bin Meng
On Tue, Aug 16, 2016 at 4:55 PM, Alexander Graf wrote: > We can pass SMBIOS easily as EFI configuration table to an EFI payload. This > patch adds enablement for that case. > > While at it, we also enable SMBIOS generation for ARM systems, since they > support > EFI_LOADER. > > Signed-off-by: Ale

Re: [U-Boot] [PATCH v3 5/8] smbios: Generate type 4 on non-x86 systems

2016-08-16 Thread Bin Meng
On Tue, Aug 16, 2016 at 4:55 PM, Alexander Graf wrote: > The type 4 table generation code is very x86 centric today. Refactor things > out a bit to allow the tables to get generated for other architectures as > well. > > Signed-off-by: Alexander Graf > --- > include/smbios.h | 3 +++ > lib/smbi

Re: [U-Boot] [U-Boot, v4, 01/13] cmd: fdt: Narrow the check for fdt addr

2016-08-16 Thread Jaehoon Chung
On 08/16/2016 10:55 AM, Tom Rini wrote: > On Tue, Aug 16, 2016 at 10:52:04AM +0900, Jaehoon Chung wrote: >> Hi, >> >> On 07/05/2016 05:26 PM, Maxime Ripard wrote: >>> The current code only checks if the fdt subcommand is fdt addr by checking >>> whether it starts with 'a'. >>> >>> Since this is a p

Re: [U-Boot] [PATCH 3/4] usb: dwc3: add support for 16 bit UTMI+ interface

2016-08-16 Thread Kever Yang
Hi Marek, On 08/17/2016 09:39 AM, Marek Vasut wrote: On 08/17/2016 03:31 AM, Kever Yang wrote: Hi Marek, Hi, On 08/16/2016 09:18 PM, Marek Vasut wrote: On 08/16/2016 12:03 PM, Kever Yang wrote: The dwc3 controller is using 8 bit UTMI+ interface for USB2.0 PHY, add one MACRO CONFIG_USB_DWC3

[U-Boot] [PATCH] test/py: match prompt only at line boundaries

2016-08-16 Thread Stephen Warren
This prevents capture of command output from terminating early on boards that use a simple prompt (e.g. "=> ") that appears in the middle of command output (e.g. crc32's "... ==> 2fa737e0"). Reported-by: Tom Rini Signed-off-by: Stephen Warren --- test/py/u_boot_console_base.py | 6 +++--- 1 fil

Re: [U-Boot] [PATCH 3/4] usb: dwc3: add support for 16 bit UTMI+ interface

2016-08-16 Thread Marek Vasut
On 08/17/2016 03:31 AM, Kever Yang wrote: > Hi Marek, Hi, > On 08/16/2016 09:18 PM, Marek Vasut wrote: >> On 08/16/2016 12:03 PM, Kever Yang wrote: >>> The dwc3 controller is using 8 bit UTMI+ interface for USB2.0 PHY, >>> add one MACRO CONFIG_USB_DWC3_USB2PHY_16BIT to support 16 bit >>> UTMI+ in

Re: [U-Boot] [PATCH 3/4] usb: dwc3: add support for 16 bit UTMI+ interface

2016-08-16 Thread Kever Yang
Hi Marek, On 08/16/2016 09:18 PM, Marek Vasut wrote: On 08/16/2016 12:03 PM, Kever Yang wrote: The dwc3 controller is using 8 bit UTMI+ interface for USB2.0 PHY, add one MACRO CONFIG_USB_DWC3_USB2PHY_16BIT to support 16 bit UTMI+ interface on some SoCs like Rockchip rk3399. Signed-off-by: Keve

[U-Boot] [PATCH 3/5] arm: Add PSCI shutdown function

2016-08-16 Thread Alexander Graf
Using PSCI you can not only reset the system, you can also shut it down! This patch exposes a function to do exactly that to whatever code wants to make use of it. Signed-off-by: Alexander Graf --- arch/arm/cpu/armv8/fwcall.c | 15 +++ arch/arm/include/asm/system.h | 1 + 2 files

[U-Boot] [PATCH 0/5] armv8: Add generic PSCI client support

2016-08-16 Thread Alexander Graf
On aarch64 systems, Linux only has managed to push almost everyone to using PSCI as standardized interface for CPU start/stop operations. Fortunately PSCI also gives us a nicely abstracted interface to reset and power off the system. This patch set adds support for generic PSCI reset/shutdown supp

[U-Boot] [PATCH 5/5] efi_loader: Add generic PSCI RTS

2016-08-16 Thread Alexander Graf
Now that we have generic PSCI reset and shutdown support in place, we can advertise those as EFI Run Time Services, allowing efi applications and OSs to reset and shut down systems. Signed-off-by: Alexander Graf --- arch/arm/cpu/armv8/fwcall.c | 31 ++- 1 file changed

[U-Boot] [PATCH 1/5] efi_loader: Allow boards to implement get_time and reset_system

2016-08-16 Thread Alexander Graf
EFI allows an OS to leverage firmware drivers while the OS is running. In the generic code we so far had to stub those implementations out, because we would need board specific knowledge about MMIO setups for it. However, boards can easily implement those themselves. This patch provides the framew

[U-Boot] [PATCH 2/5] arm: Disable HVC PSCI calls by default

2016-08-16 Thread Alexander Graf
All systems that are running on armv8 are running bare metal with firmware that implements PSCI running in EL3. That means we don't really need to expose the hypercall variants of them. This patch leaves the code in, but makes the code explicit enough to have the compiler optimize it out. With thi

[U-Boot] [PATCH 4/5] arm: Provide common PSCI based reset handler

2016-08-16 Thread Alexander Graf
Most armv8 systems have PSCI support enabled in EL3, either through ARM Trusted Firmware or other firmware. On these systems, we do not need to implement system reset manually, but can instead rely on higher level firmware to deal with it. The exclude list seems excessive right now, but NXP is wo

[U-Boot] ZynqMP breakage

2016-08-16 Thread Alexander Graf
Hi Michal, I just tried to run the latest u-boot master + a few patches to implement generic PSCI RTS support on zynqmp and got this: e U-Boot 2016.09-rc1-00453-ga0592f1 (Aug 16 2016 - 20:27:40 +0200) Xilinx ZynqMP ZCU102 I2C: ready DRAM: 4 GiB EL Level: EL2 MMC: sdhci@ff17: 0 U

Re: [U-Boot] Please pull u-boot-x86

2016-08-16 Thread Tom Rini
On Tue, Aug 16, 2016 at 12:41:22PM +0800, Bin Meng wrote: > Hi Tom, > > The following changes since commit 4cc9699be7ffc6072482240f5ba208488abe1090: > > common: env_nand: Ensure that we have nand_info[0] prior to use > (2016-08-15 18:46:41 -0400) > > are available in the git repository at: >

[U-Boot] [PATCH v3] common: cli_readline: Improve command line editing

2016-08-16 Thread James Byrne
This improves the cread_line() function so that it will correctly process the 'Home', 'End', 'Delete' and arrow key escape sequences produced by various terminal emulators. This makes command line editing a more pleasant experience. The previous code only supported the cursor keys and the 'Home' k

Re: [U-Boot] [RFC PATCH 3/4] ext4: fix endianess problems in ext4 write support

2016-08-16 Thread BrĂ¼ns , Stefan
On Dienstag, 16. August 2016 13:41:21 CEST you wrote: > Hi Stefan, > > Am 2016-08-14 03:50, schrieb Stefan Bruens: > > On Freitag, 12. August 2016 15:16:20 CEST Michael Walle wrote: > >> All fields were accessed directly instead of using the proper byte > >> swap > >> functions. Thus, ext4 write s

Re: [U-Boot] [GIT] Pull request: u-boot-dfu

2016-08-16 Thread Lukasz Majewski
Hi Marek, > On 08/16/2016 03:41 PM, Lukasz Majewski wrote: > > Hi Marek, > > Hi, > > is that for master or next ? This patch _was_ supposed to go to "master" > Was this build tested ? Unfortunately, not so thoroughly as I thought. Moving dfu code to SPL causes following error on some board

[U-Boot] how to combine new default env in new u-boot with current saved?

2016-08-16 Thread Robert P. J. Day
i'm wondering if "env import" and "env export" are the solutions to this question -- i want to be able to install a new u-boot binary, then combine the factory defaults in that new binary with what is currently saved, such that the current, saved values take precedence if the same variable appea

Re: [U-Boot] [GIT] Pull request: u-boot-dfu

2016-08-16 Thread Marek Vasut
On 08/16/2016 03:41 PM, Lukasz Majewski wrote: > Hi Marek, Hi, is that for master or next ? Was this build tested ? > Please find following code for u-boot-dfu repository. > > The following changes since commit 76b2fad775ee3cb58788b11454655ba5a244ac56: > > eth: asix88179: Add support for the

Re: [U-Boot] [PATCH 3/4] usb: dwc3: add support for 16 bit UTMI+ interface

2016-08-16 Thread Marek Vasut
On 08/16/2016 12:03 PM, Kever Yang wrote: > The dwc3 controller is using 8 bit UTMI+ interface for USB2.0 PHY, > add one MACRO CONFIG_USB_DWC3_USB2PHY_16BIT to support 16 bit > UTMI+ interface on some SoCs like Rockchip rk3399. > > Signed-off-by: Kever Yang This should be configured from either

[U-Boot] [GIT] Pull request: u-boot-dfu

2016-08-16 Thread Lukasz Majewski
Hi Marek, Please find following code for u-boot-dfu repository. The following changes since commit 76b2fad775ee3cb58788b11454655ba5a244ac56: eth: asix88179: Add support for the driver model (2016-08-09 12:52:05 +0200) are available in the git repository at: ssh://gu-...@git.denx.de/u-boot-

Re: [U-Boot] [PATCH] Please pull u-boot-mmc

2016-08-16 Thread Tom Rini
On Tue, Aug 16, 2016 at 10:39:12AM +0900, Jaehoon Chung wrote: > Dear Tom, > > Sorry for confusing..Could you pull these patches on u-boot/master? > If there are other problems, let me know, plz. > > Rebased on latest u-boot/master. (Wenyou's patches was applied on > u-boot-atmel.) > Sorry for

Re: [U-Boot] test.py and tftp crc32 test?

2016-08-16 Thread Tom Rini
On Mon, Aug 15, 2016 at 09:35:07PM -0600, Stephen Warren wrote: > On 08/15/2016 05:20 PM, Tom Rini wrote: > >On Mon, Aug 15, 2016 at 04:59:02PM -0600, Stephen Warren wrote: > >>On 08/15/2016 04:49 PM, Tom Rini wrote: > >>>Hey guys, > >>> > >>>Is anyone else running the crc32 tftp tests with test.py

[U-Boot] WG: [PATCH] getting ubifs to run

2016-08-16 Thread Hoefle Marco
Hello Heiko, You are right, there are two parts: the Microblaze part and the ubifs stuff. To get u-boot compiled I added the following to the Microblaze architecture: atomic.h based on the ARM architecture, was missing before. Modified bitops.h to get rid of compiler warnings The three ubifs files

Re: [U-Boot] [RFC PATCH 3/4] ext4: fix endianess problems in ext4 write support

2016-08-16 Thread Michael Walle
Hi Stefan, Am 2016-08-14 03:50, schrieb Stefan Bruens: On Freitag, 12. August 2016 15:16:20 CEST Michael Walle wrote: All fields were accessed directly instead of using the proper byte swap functions. Thus, ext4 write support was only usable on little-endian architectures. Fix this. Signed-of

[U-Boot] [PATCH 4/4] config: rk3399: add support for dwc3 gadget

2016-08-16 Thread Kever Yang
To support fastboot, we need to enable the controller first. rk3399 is using dwc3 as usb device controller, this patch enable the configs for dwc3 gadget. Signed-off-by: Kever Yang --- include/configs/rk3399_common.h | 21 + 1 file changed, 21 insertions(+) diff --git a/inc

[U-Boot] [PATCH 3/4] usb: dwc3: add support for 16 bit UTMI+ interface

2016-08-16 Thread Kever Yang
The dwc3 controller is using 8 bit UTMI+ interface for USB2.0 PHY, add one MACRO CONFIG_USB_DWC3_USB2PHY_16BIT to support 16 bit UTMI+ interface on some SoCs like Rockchip rk3399. Signed-off-by: Kever Yang --- drivers/usb/dwc3/core.c | 10 ++ drivers/usb/dwc3/core.h | 11 +++ 2

[U-Boot] [PATCH 0/4] rk3399: enable dwc3 gadget and fastboot

2016-08-16 Thread Kever Yang
This patch set enable rk3399 dwc3 controller and gadget driver for fastboot. Kever Yang (4): rk3399: add a empty "sys_proto.h" header file board: evb-rk3399: add api to support dwc3 gadget usb: dwc3: add support for 16 bit UTMI+ interface config: rk3399: add support for dwc3 gadget ar

[U-Boot] [PATCH 1/4] rk3399: add a empty "sys_proto.h" header file

2016-08-16 Thread Kever Yang
driver/usb/dwc3/gadget.c need a "sys_proto.h" header file, add a empty one to make compile success. Signed-off-by: Kever Yang --- arch/arm/include/asm/arch-rockchip/sys_proto.h | 10 ++ 1 file changed, 10 insertions(+) create mode 100644 arch/arm/include/asm/arch-rockchip/sys_proto.h

[U-Boot] [PATCH 2/4] board: evb-rk3399: add api to support dwc3 gadget

2016-08-16 Thread Kever Yang
This patch add board_usb_init() and interrupt callback for dwc3 gadget. Signed-off-by: Kever Yang --- board/rockchip/evb_rk3399/evb-rk3399.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/board/rockchip/evb_rk3399/evb-rk3399.c b/board/rockchip/evb_rk3399/evb-rk3399

[U-Boot] [RESEND PATCH v2 5/5] dts: rk3399: add pinctrl for sdmmc

2016-08-16 Thread Kever Yang
This patch add pinctrl for sdcard which may not be initialized before uboot. Signed-off-by: Kever Yang Acked-by: Simon Glass --- Changes in v2: None arch/arm/dts/rk3399.dtsi | 37 + 1 file changed, 37 insertions(+) diff --git a/arch/arm/dts/rk3399.dtsi b/a

[U-Boot] [RESEND PATCH v2 4/5] rk3399: enable the pwm2/3 pinctrl in board init

2016-08-16 Thread Kever Yang
There is no interrupt line for each PWM which used by pinctrl to get the periph_id, so it's not able to enable the default pinctrl setting by pinctrl framework, let's enable it at board_init(). Signed-off-by: Kever Yang Acked-by: Simon Glass --- Changes in v2: None board/rockchip/evb_rk3399/e

[U-Boot] [RESEND PATCH v2 2/5] pinctrl: add driver for rk3399

2016-08-16 Thread Kever Yang
This patch add pinctrl driver for rk3399. Signed-off-by: Kever Yang --- Changes in v2: - move and reg value MACRO in C source, and use MASK/SHIFT arch/arm/include/asm/arch-rockchip/grf_rk3399.h | 321 + drivers/pinctrl/Kconfig | 9 + drivers/pinctrl/ro

[U-Boot] [RESEND PATCH v2 1/5] rk3399: syscon: add support for pmugrf

2016-08-16 Thread Kever Yang
pmugrf is a module like grf which contain some of the iomux registers and other registers. Signed-off-by: Kever Yang Acked-by: Simon Glass --- Changes in v2: None arch/arm/include/asm/arch-rockchip/clock.h| 1 + arch/arm/mach-rockchip/rk3399/syscon_rk3399.c | 1 + 2 files changed, 2 inser

[U-Boot] [RESEND PATCH v2 0/5] add pinctrl driver for rk3399

2016-08-16 Thread Kever Yang
Resend this patch set for some of patches are missing due to my local mail system problem. This patch set add the pinctrl driver for rk3399 and enable pinctrl for pwm module. Module with pinctrl driver support and with interrupt number and default pinctrl in dts node will get pinctrl initialized w

[U-Boot] [RESEND PATCH v2 3/5] config: evb-rk3399: enable pinctrl driver

2016-08-16 Thread Kever Yang
This patch enable rk3399 pinctrl driver and gpio driver which is sub-node of pinctrl. Signed-off-by: Kever Yang Acked-by: Simon Glass --- Changes in v2: None configs/evb-rk3399_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/evb-rk3399_defconfig b/configs/evb-rk3399_de

[U-Boot] [PATCH 2/4] arm: dts: update DTS files for meson-gxbb and odroid-c2

2016-08-16 Thread Beniamino Galvani
Import DTS files and dt-bindings includes from Linux 4.8-rc1. Signed-off-by: Beniamino Galvani --- arch/arm/dts/meson-gxbb-odroidc2.dts | 19 ++ arch/arm/dts/meson-gxbb.dtsi | 170 - include/dt-bindings/gpio/meson-gxbb-gpio.h | 154 +++

[U-Boot] [PATCH 4/4] meson: odroid-c2: enable Ethernet support through the device tree

2016-08-16 Thread Beniamino Galvani
Remove the device definition from board file, update the driver with the new compatible property and update config with necessary options. Signed-off-by: Beniamino Galvani --- arch/arm/include/asm/arch-meson/gxbb.h | 3 --- board/amlogic/odroid-c2/odroid-c2.c| 13 - configs/odro

[U-Boot] [PATCH 3/4] pinctrl: add driver for meson-gxbb pin controller

2016-08-16 Thread Beniamino Galvani
Add a pin controller driver for Meson GXBB adapted from Linux kernel. Signed-off-by: Beniamino Galvani --- drivers/pinctrl/Kconfig| 1 + drivers/pinctrl/Makefile | 1 + drivers/pinctrl/meson/Kconfig | 11 + drivers/pinctrl/meson/Makefile

[U-Boot] [PATCH 1/4] pinctrl: generic: scan for "pins" and "groups" properties in sub-nodes

2016-08-16 Thread Beniamino Galvani
In cases where the pins and groups definitions are in a sub-node, as: uart_a { mux { groups = "uart_tx_a", "uart_rx_a"; function = "uart_a"; }; }; pinctrl_generic_set_state_subnode() returns an error f

[U-Boot] [PATCH 0/4] Amlogic Meson pinctrl driver for u-boot

2016-08-16 Thread Beniamino Galvani
Hi, these patches add a pinctrl driver for Meson GXBB and enable Ethernet support through the device tree. Beniamino Galvani (4): pinctrl: generic: scan for "pins" and "groups" properties in sub-nodes arm: dts: update DTS files for meson-gxbb and odroid-c2 pinctrl: add driver for meson-gxbb

Re: [U-Boot] [RFC PATCH 3/4] ext4: fix endianess problems in ext4 write support

2016-08-16 Thread Michael Walle
Am 2016-08-14 03:50, schrieb Stefan Bruens: On Freitag, 12. August 2016 15:16:20 CEST Michael Walle wrote: All fields were accessed directly instead of using the proper byte swap functions. Thus, ext4 write support was only usable on little-endian architectures. Fix this. Signed-off-by: Michae

[U-Boot] [PATCH v3 0/8] efi_loader: Expose SMBIOS table

2016-08-16 Thread Alexander Graf
We generate a few tables on x86 today that really can be used on ARM just the same. One such example is the SMBIOS table, which people use with tools like "dmidecode" to identify which hardware they are running on. We're slowly growing needs to collect serial numbers from various devices on ARM an

[U-Boot] [PATCH v3 1/8] x86: Move table csum into separate header

2016-08-16 Thread Alexander Graf
We need the checksum function without all the other table functionality soon, so let's split it out into its own header file. Signed-off-by: Alexander Graf Reviewed-by: Bin Meng --- arch/x86/include/asm/tables.h | 2 ++ arch/x86/lib/tables.c | 12 include/tables_csum.h

[U-Boot] [PATCH v3 6/8] smbios: Expose in efi_loader as table

2016-08-16 Thread Alexander Graf
We can pass SMBIOS easily as EFI configuration table to an EFI payload. This patch adds enablement for that case. While at it, we also enable SMBIOS generation for ARM systems, since they support EFI_LOADER. Signed-off-by: Alexander Graf --- v1 -> v2: - Fix whitespace v2 -> v3: - Move

[U-Boot] [PATCH v3 8/8] smbios: Provide serial number

2016-08-16 Thread Alexander Graf
If the system has a valid "serial#" environment variable set (which boards that can find it out programatically set automatically), use that as input for the serial number and UUID fields in the SMBIOS tables. Signed-off-by: Alexander Graf Reviewed-by: Bin Meng Reviewed-by: Simon Glass --- v1

[U-Boot] [PATCH v3 7/8] efi_loader: Fix efi_install_configuration_table

2016-08-16 Thread Alexander Graf
So far we were only installing the FDT table and didn't have space to store any other. Hence nobody realized that our efi table allocation was broken in that it didn't set the indicator for the number of tables plus one. This patch fixes it, allowing code to allocate new efi tables. Signed-off-by

[U-Boot] [PATCH v3 2/8] x86: Move smbios generation into arch independent directory

2016-08-16 Thread Alexander Graf
We will need the SMBIOS generation function on ARM as well going forward, so let's move it into a non arch specific location. Signed-off-by: Alexander Graf Reviewed-by: Bin Meng --- arch/x86/Kconfig | 27 arch/x86/lib/Makefile

[U-Boot] [PATCH v3 3/8] efi_loader: Expose efi_install_configuration_table

2016-08-16 Thread Alexander Graf
We want to be able to add configuration table entries from our own code as well as from EFI payload code. Export the boot service function internally too, so that we can reuse it. Signed-off-by: Alexander Graf --- include/efi_loader.h | 2 ++ lib/efi_loader/efi_boottime.c | 22

[U-Boot] [PATCH v3 4/8] smbios: Allow compilation on 64bit systems

2016-08-16 Thread Alexander Graf
The SMBIOS generation code passes pointers as u32. That causes the compiler to warn on casts to pointers. This patch moves all address pointers to uintptr_t instead. Technically u32 would be enough for the current SMBIOS2 style tables, but we may want to extend the code to SMBIOS3 in the future wh

[U-Boot] [PATCH v3 5/8] smbios: Generate type 4 on non-x86 systems

2016-08-16 Thread Alexander Graf
The type 4 table generation code is very x86 centric today. Refactor things out a bit to allow the tables to get generated for other architectures as well. Signed-off-by: Alexander Graf --- include/smbios.h | 3 +++ lib/smbios.c | 37 +++-- 2 files changed, 3

Re: [U-Boot] [PATCH 5/7] smbios: Expose in efi_loader as table

2016-08-16 Thread Alexander Graf
On 08/12/2016 10:07 PM, Simon Glass wrote: Hi Alex, On 12 August 2016 at 12:36, Alexander Graf wrote: On 12.08.16 19:20, Simon Glass wrote: Hi Alex, On 8 August 2016 at 08:06, Alexander Graf wrote: We can pass SMBIOS easily as EFI configuration table to an EFI payload. This patch adds ena