[U-Boot] [PATCH] tools: mkimage: Check for datafile when type is script

2018-04-21 Thread Alex Kiernan
If generating a script image and no datafile has been passed in, mkimage dies with SIGSEGV: #0 __strchr_sse2 () at ../sysdeps/x86_64/multiarch/../strchr.S:32 #1 0x00403818 in main at tools/mkimage.c:503 Add explicit test for datafile to fix this. Signed-off-by: Alex Kiernan

[U-Boot] [PULL] u-boot-usb/master

2018-04-21 Thread Marek Vasut
The following changes since commit a35747b5e1261adfb27ab87575dea4b17e247da2: Merge git://git.denx.de/u-boot-uniphier (2018-04-18 16:24:26 -0400) are available in the Git repository at: git://git.denx.de/u-boot-usb.git master for you to fetch changes up to 38276090ee7fda6b31cac638d8c5f4fb61f

[U-Boot] [PULL] u-boot-sh/master

2018-04-21 Thread Marek Vasut
The following changes since commit a35747b5e1261adfb27ab87575dea4b17e247da2: Merge git://git.denx.de/u-boot-uniphier (2018-04-18 16:24:26 -0400) are available in the Git repository at: git://git.denx.de/u-boot-sh.git master for you to fetch changes up to f7aa3cd4a81c7a1ef480e39a1b9794834523

Re: [U-Boot] [PATCH v2 1/2] arm: make arm926ejs startup code thumb compatible

2018-04-21 Thread Christoph Müllner
> On 21 Apr 2018, at 15:10, Måns Rullgård wrote: > > Klaus Goger > writes: > >> When building the mxs platform in thumb mode gcc generates code using >> the intra procedure call scratch register (ip/r12) for the calling the >> lowlevel_init function. T

Re: [U-Boot] [PATCH v2 2/2] arm: Make arch specific memcpy thumb-safe.

2018-04-21 Thread Christoph Müllner
> On 21 Apr 2018, at 19:00, Måns Rullgård wrote: > > Christoph Müllner > writes: > >>> On 21 Apr 2018, at 15:24, Måns Rullgård wrote: >>> >>> Klaus Goger writes: >>> The current arch implementation of memcpy cannot be called from t

Re: [U-Boot] [PATCH v2 2/2] arm: Make arch specific memcpy thumb-safe.

2018-04-21 Thread Christoph Müllner
> On 21 Apr 2018, at 15:24, Måns Rullgård wrote: > > Klaus Goger writes: > >> The current arch implementation of memcpy cannot be called >> from thumb code, because it does not use bx instructions on return. >> This patch addresses that. Note, that this patch does not touch >> the hot loop of

Re: [U-Boot] [PATCH v2 2/2] arm: Make arch specific memcpy thumb-safe.

2018-04-21 Thread Måns Rullgård
Christoph Müllner writes: >> On 21 Apr 2018, at 15:24, Måns Rullgård wrote: >> >> Klaus Goger writes: >> >>> The current arch implementation of memcpy cannot be called >>> from thumb code, because it does not use bx instructions on return. >>> This patch addresses that. Note, that this patch

[U-Boot] [PATCH] ARM: rmobile: Update E2 Silk

2018-04-21 Thread Marek Vasut
The E2 Silk port was broken since some time. This patch updates the E2 Silk port to use modern frameworks, DM, DT probing, SPL for the preloading and puts it on par with the M2 Porter board. Signed-off-by: Marek Vasut Cc: Nobuhiro Iwamatsu --- NOTE: The port is missing support for I2C1 for DA906

[U-Boot] [PATCH 3/3] mmc: sh_mmcif: Migrate configs to CONFIG_SH_MMCIF

2018-04-21 Thread Marek Vasut
Migrate the U-Boot configs to Kconfig CONFIG_SH_MMCIF . Signed-off-by: Marek Vasut Cc: Nobuhiro Iwamatsu Cc: Jaehoon Chung --- configs/alt_defconfig| 1 + configs/lager_defconfig | 1 + configs/sh7752evb_defconfig | 1 + configs/sh7753evb_defconfig | 1 + configs/sh7757lcr_defco

[U-Boot] [PATCH 2/3] mmc: sh_mmcif: Add Kconfig entry

2018-04-21 Thread Marek Vasut
Add Kconfig entry for SH MMCIF driver. Signed-off-by: Marek Vasut Cc: Nobuhiro Iwamatsu Cc: Jaehoon Chung --- drivers/mmc/Kconfig | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/mmc/Kconfig b/drivers/mmc/Kconfig index 6935da2177..4fa8dd83bb 100644 --- a/drivers/mmc/Kconfig ++

[U-Boot] [PATCH 1/3] mmc: sh_mmcif: Add DM and DT probing support

2018-04-21 Thread Marek Vasut
Add MMC DM and DT probing support into the SH MMCIF driver. This patch abstracts out the common bits of the send command and set ios functions, so they can be used both by DM and non DM setups and adds the DM probe support. Signed-off-by: Marek Vasut Cc: Nobuhiro Iwamatsu Cc: Jaehoon Chung ---

[U-Boot] [PATCH] clk: renesas: Minor clean up of the R8A7794 clock driver

2018-04-21 Thread Marek Vasut
The initconst is not used in U-Boot, drop it. The r8a7794_crit_mod_clks is also not used in U-Boot, so drop it too. Signed-off-by: Marek Vasut Cc: Nobuhiro Iwamatsu --- drivers/clk/renesas/r8a7794-cpg-mssr.c | 10 +++--- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/drivers/

[U-Boot] [PATCH] clk: renesas: Minor clean up of the R8A7792 clock driver

2018-04-21 Thread Marek Vasut
The initconst is not used in U-Boot, drop it. The r8a7792_crit_mod_clks is also not used in U-Boot, so drop it too. Signed-off-by: Marek Vasut Cc: Nobuhiro Iwamatsu --- drivers/clk/renesas/r8a7792-cpg-mssr.c | 10 +++--- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/drivers/

[U-Boot] [PATCH 4/5] ARM: mxs: move spl data

2018-04-21 Thread Mans Rullgard
With full SPL enabled, the loaded image overwrites the mxs_spl_data location. Moving it a slightly lower address fixes this. Signed-off-by: Mans Rullgard --- arch/arm/cpu/arm926ejs/mxs/mxs.c | 6 ++ arch/arm/cpu/arm926ejs/mxs/spl_boot.c | 3 +-- arch/arm/include/asm/arch-mxs/sy

[U-Boot] [PATCH 5/5] ARM: mxs: support full SPL framework

2018-04-21 Thread Mans Rullgard
This allows using the full SPL framework on mxs devices. In this mode, the u-boot.sb image loaded by the boot ROM contains only the SPL which then loads U-Boot proper or a kernel in falcon mode. Signed-off-by: Mans Rullgard --- arch/arm/Kconfig | 2 +- arch/arm/c

[U-Boot] [PATCH 3/5] ARM: spl: include arm/thumb glue sections

2018-04-21 Thread Mans Rullgard
When building in Thumb mode, the linker might generate mode switching stubs in .glue sections. Include these in the final link. Signed-off-by: Mans Rullgard --- arch/arm/cpu/u-boot-spl.lds | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/cpu/u-boot-spl.lds b/arch/arm/cpu/u-boot-spl.

[U-Boot] [PATCH 2/5] ARM: arm926ejs: fix lowlevel_init call

2018-04-21 Thread Mans Rullgard
The code attempts to preserve the value of LR by storing it in R12/IP across the lowevel_init() call. However, this register is not saved by the callee. Use a register that guaranteed to be preserved instead. Signed-off-by: Mans Rullgard --- arch/arm/cpu/arm926ejs/start.S | 4 ++-- 1 file chan

[U-Boot] [PATCH 1/5] ARM: mxs: make lowlevel_init() weak

2018-04-21 Thread Mans Rullgard
With the full SPL framework enabled, lowlevel_init() is required. Make the empty stub weak so boards can override it. Signed-off-by: Mans Rullgard --- arch/arm/cpu/arm926ejs/mxs/mxs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/cpu/arm926ejs/mxs/mxs.c b/arch/arm/

Re: [U-Boot] [PATCH v2 2/2] arm: Make arch specific memcpy thumb-safe.

2018-04-21 Thread Måns Rullgård
Klaus Goger writes: > The current arch implementation of memcpy cannot be called > from thumb code, because it does not use bx instructions on return. > This patch addresses that. Note, that this patch does not touch > the hot loop of memcpy, so performance is not affected. > > Tested on MXS (arm

Re: [U-Boot] [PATCH v2 1/2] arm: make arm926ejs startup code thumb compatible

2018-04-21 Thread Måns Rullgård
Klaus Goger writes: > When building the mxs platform in thumb mode gcc generates code using > the intra procedure call scratch register (ip/r12) for the calling the > lowlevel_init function. This modifies the lr in flush_dcache which > causes u-boot proper to end in an endless loop. > > 40002334:

[U-Boot] [PATCH v5 27/34] arm64: allwinner: a64: bananapi-m64: Sync usb host nodes from Linux

2018-04-21 Thread Jagan Teki
Sync bananapi-m64 usb host nodes from Linux. Signed-off-by: Jagan Teki --- arch/arm/dts/sun50i-a64-bananapi-m64.dts | 16 1 file changed, 16 insertions(+) diff --git a/arch/arm/dts/sun50i-a64-bananapi-m64.dts b/arch/arm/dts/sun50i-a64-bananapi-m64.dts index 80405e5b26..dcde4a4

[U-Boot] [PATCH v5 31/34] arm64: allwinner: h5: orangepi-pc2: Sync usb otg nodes from Linux

2018-04-21 Thread Jagan Teki
orangepi-pc2 has usb otg routed host with either EHCI0/OHCI0 sync the same from Linux. Signed-off-by: Jagan Teki --- arch/arm/dts/sun50i-h5-orangepi-pc2.dts | 13 + 1 file changed, 13 insertions(+) diff --git a/arch/arm/dts/sun50i-h5-orangepi-pc2.dts b/arch/arm/dts/sun50i-h5-orange

[U-Boot] [PATCH v5 17/34] phy: sun4i-usb: Add A23 USB PHY config

2018-04-21 Thread Jagan Teki
Allwinner A23 has 2 USB PHY's and 0x04 has phy ctrl offset. Signed-off-by: Jagan Teki --- drivers/phy/allwinner/phy-sun4i-usb.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/phy/allwinner/phy-sun4i-usb.c b/drivers/phy/allwinner/phy-sun4i-usb.c index 75056e250c..4194a15007

[U-Boot] [PATCH v5 32/34] configs: orangepi-pc2: Enable USB OTG peripheral mode

2018-04-21 Thread Jagan Teki
Enable USB_MUSB_GADGET which operate OTG in peripheral mode Signed-off-by: Jagan Teki --- configs/orangepi_pc2_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/orangepi_pc2_defconfig b/configs/orangepi_pc2_defconfig index dd5f2c78ab..ca1e586e89 100644 --- a/configs/orangepi_

[U-Boot] [PATCH v5 28/34] ARM: dts: sun8i-h3: bananapi-m2-plus: Sync usb otg nodes from Linux

2018-04-21 Thread Jagan Teki
Bananapi-m2-plus has usb otg routed host with either EHCI0/OHCI0 sync the same from Linux. Signed-off-by: Jagan Teki --- arch/arm/dts/sun8i-h3-bananapi-m2-plus.dts | 13 + 1 file changed, 13 insertions(+) diff --git a/arch/arm/dts/sun8i-h3-bananapi-m2-plus.dts b/arch/arm/dts/sun8i-

[U-Boot] [PATCH v5 25/34] configs: bananapi-m64: Enable USB OTG peripheral mode

2018-04-21 Thread Jagan Teki
Enable USB_MUSB_GADGET which operate OTG in peripheral mode Signed-off-by: Jagan Teki --- configs/bananapi_m64_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/bananapi_m64_defconfig b/configs/bananapi_m64_defconfig index 47f31c6d9d..40c1c18aca 100644 --- a/configs/bananapi_

[U-Boot] [PATCH v5 16/34] phy: sun4i-usb: Add A33 USB PHY config

2018-04-21 Thread Jagan Teki
Allwinner A33 has 2 USB PHY's and 0x10 has phy ctrl offset. Signed-off-by: Jagan Teki --- drivers/phy/allwinner/phy-sun4i-usb.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/phy/allwinner/phy-sun4i-usb.c b/drivers/phy/allwinner/phy-sun4i-usb.c index 16b399e880..75056e2

[U-Boot] [PATCH v5 34/34] configs: orangepi-prime: Enable USB OTG peripheral mode

2018-04-21 Thread Jagan Teki
Enable USB_MUSB_GADGET which operate OTG in peripheral mode Signed-off-by: Jagan Teki --- configs/orangepi_prime_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/orangepi_prime_defconfig b/configs/orangepi_prime_defconfig index df39caa903..6161863258 100644 --- a/configs/ora

[U-Boot] [PATCH v5 20/34] phy: sun4i-usb: Add a sunxi specific function for setting squelch-detect

2018-04-21 Thread Jagan Teki
The sunxi otg phy has a bug where it wrongly detects a high speed squelch when reset on the root port gets de-asserted with a lo-speed device. The workaround for this is to disable squelch detect before de-asserting reset, and re-enabling it after the reset de-assert is done. Add a sunxi specific

[U-Boot] [PATCH v5 18/34] device-tree-bindings: phy: Sync sun4i-usb-phy bindings

2018-04-21 Thread Jagan Teki
Sync sun4i-usb-phy bindings from Linux, since the drivers/phy/allwinner/phy-sun4i-usb.c follw similar. Signed-off-by: Jagan Teki --- doc/device-tree-bindings/phy/sun4i-usb-phy.txt | 65 ++ 1 file changed, 65 insertions(+) create mode 100644 doc/device-tree-bindings/phy/s

[U-Boot] [PATCH v5 19/34] board: sunxi: Use generic-phy for board_usb_cable_connected

2018-04-21 Thread Jagan Teki
Allwinner PHY USB code is now part of generic-phy framework, so use it in board_usb_cable_connected. Signed-off-by: Jagan Teki --- board/sunxi/board.c | 33 - 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/board/sunxi/board.c b/board/sunxi/board.c i

[U-Boot] [PATCH v5 26/34] ARM: dts: sun8i: a83t: Sync usbphy node from Linux

2018-04-21 Thread Jagan Teki
Sync sun8i-a83t usbphy node details from Linux. Signed-off-by: Jagan Teki --- arch/arm/dts/sun8i-a83t.dtsi | 20 1 file changed, 20 insertions(+) diff --git a/arch/arm/dts/sun8i-a83t.dtsi b/arch/arm/dts/sun8i-a83t.dtsi index bab6c1812b..2953e0fdac 100644 --- a/arch/arm/dts/

[U-Boot] [PATCH v5 33/34] arm64: allwinner: h5: orangepi-prime: Sync usb otg nodes from Linux

2018-04-21 Thread Jagan Teki
orangepi-prime has usb otg routed host with either EHCI0/OHCI0 sync the same from Linux. Signed-off-by: Jagan Teki --- arch/arm/dts/sun50i-h5-orangepi-prime.dts | 13 + 1 file changed, 13 insertions(+) diff --git a/arch/arm/dts/sun50i-h5-orangepi-prime.dts b/arch/arm/dts/sun50i-h5-

[U-Boot] [PATCH v5 22/34] sunxi: Drop legacy usb_phy.c

2018-04-21 Thread Jagan Teki
Allwinner PHY USB code is now part of generic-phy framework, so drop existing legacy handling like arch/arm/mach-sunxi.c and related code areas. Signed-off-by: Jagan Teki --- arch/arm/include/asm/arch-sunxi/usb_phy.h | 21 -- arch/arm/mach-sunxi/Makefile | 3 - arch/arm/mach-sunx

[U-Boot] [PATCH] lib/rsa: Kconfig: Remove superfluous 'depends on RSA'

2018-04-21 Thread Eugeniu Rosca
RSA_SOFTWARE_EXP and RSA_FREESCALE_EXP are wrapped inside: if RSA ... endif So, remove the redundant "depends on RSA" from their depends expression. In addition, move SPL_RSA into the same "if RSA ... endif" block, since its only direct dependeny is CONFIG_RSA. This tidies up and simplifi

[U-Boot] [PATCH v5 23/34] sunxi: h3: Sync OTG and HCI nodes from Linux DT

2018-04-21 Thread Jagan Teki
From: Jun Nie Allwinner H3 have a dual-routed USB PHY0 -- routed to either OHCI/EHCI or MUSB controller. Signed-off-by: Jun Nie Reviewed-by: Jagan Teki --- arch/arm/dts/sun8i-h3.dtsi | 32 1 file changed, 32 insertions(+) diff --git a/arch/arm/dts/sun8i-h3.dt

[U-Boot] [PATCH v5 21/34] usb: sunxi: Switch to use generic-phy

2018-04-21 Thread Jagan Teki
Allwinner USB PHY handling can be done through driver-model generic-phy so add the generic-phy ops to relevant places on host and musb sunxi driver and enable them in respective SOC's. Signed-off-by: Jagan Teki --- arch/arm/mach-sunxi/Kconfig | 9 ++ drivers/usb/host/ehci-sunxi.c

[U-Boot] [PATCH v5 30/34] arm64: allwinner: h5: orangepi-pc2: Order nodes in alphabetic

2018-04-21 Thread Jagan Teki
Order sun50i-h5-orangepi-pc2.dts nodes in alphabetic Signed-off-by: Jagan Teki --- arch/arm/dts/sun50i-h5-orangepi-pc2.dts | 56 - 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/arch/arm/dts/sun50i-h5-orangepi-pc2.dts b/arch/arm/dts/sun50i-h5-ora

[U-Boot] [PATCH v5 24/34] arm64: allwinner: a64: bananapi-m64: Sync usb_otg node from Linux

2018-04-21 Thread Jagan Teki
Sync bananapi-m64 usb_otg node from Linux. Signed-off-by: Jagan Teki --- arch/arm/dts/sun50i-a64-bananapi-m64.dts | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/dts/sun50i-a64-bananapi-m64.dts b/arch/arm/dts/sun50i-a64-bananapi-m64.dts index 02db114113..80405e5b26 1006

[U-Boot] [PATCH v5 08/34] musb: sunxi: Add support for H3/H5A64

2018-04-21 Thread Jagan Teki
Like other Allwinner SoC, the H3/H5/A64 is missing the config register from the musb hardware block. Use a known working value for it like other SoC. Signed-off-by: Jagan Teki --- drivers/usb/musb-new/musb_regs.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/usb/m

[U-Boot] [PATCH v5 29/34] configs: bananapi-m2-plus: Enable USB OTG peripheral mode

2018-04-21 Thread Jagan Teki
Enable USB_MUSB_GADGET which operate OTG in peripheral mode Signed-off-by: Jagan Teki --- configs/Sinovoip_BPI_M2_Plus_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/Sinovoip_BPI_M2_Plus_defconfig b/configs/Sinovoip_BPI_M2_Plus_defconfig index da5620a770..a325e9f806 10064

[U-Boot] [PATCH v5 09/34] phy: Add Allwinner A64 USB PHY driver

2018-04-21 Thread Jagan Teki
USB PHY implementation for Allwinner SOC's can be handling in to single driver with different phy configs. This driver handle all Allwinner USB PHY's start from 4I to 50I(except 9I). Currently added A64 compatibility more will add in next coming patches. Current implementation is unable to get pi

[U-Boot] [PATCH v5 14/34] phy: sun4i-usb: Add A10/A13/A20 PHY config

2018-04-21 Thread Jagan Teki
Add PHY configs for Allwinner A10/A13/A20 which are SUN4I. Signed-off-by: Jagan Teki --- drivers/phy/allwinner/phy-sun4i-usb.c | 28 1 file changed, 28 insertions(+) diff --git a/drivers/phy/allwinner/phy-sun4i-usb.c b/drivers/phy/allwinner/phy-sun4i-usb.c index 01

[U-Boot] [PATCH v5 10/34] phy: sun4i-usb: Add id_detect and vbus_detect ops

2018-04-21 Thread Jagan Teki
ID and VBUS detection code require when musb changing between Host and/or Peripheral modes. Signed-off-by: Jagan Teki --- drivers/phy/allwinner/phy-sun4i-usb.c | 39 +++ include/phy-sun4i-usb.h | 26 +++ 2 files changed, 65 insert

[U-Boot] [PATCH v5 15/34] phy: sun4i-usb: Add A31 PHY config

2018-04-21 Thread Jagan Teki
Allwinner A31 has 3 USB PHY's and rest similar to A10. Signed-off-by: Jagan Teki --- drivers/phy/allwinner/phy-sun4i-usb.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/phy/allwinner/phy-sun4i-usb.c b/drivers/phy/allwinner/phy-sun4i-usb.c index abb3d0f055..16b399e880 1

[U-Boot] [PATCH v5 02/34] musb: sunxi: Add proper macros instead of numericals

2018-04-21 Thread Jagan Teki
- add proper macros for musb_config members - use bool 'true' for multipoint and dyn_fifo instead of numerical 1 Signed-off-by: Jagan Teki --- drivers/usb/musb-new/sunxi.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/drivers/usb/musb-new/sunxi.c b/drivers/usb/

[U-Boot] [PATCH v5 06/34] musb: sunxi: Add OTG device clkgate and reset for H3/H5

2018-04-21 Thread Jagan Teki
Add OTG device clkgate and reset for H3/H5 through driver_data since the driver is already supporting dt. Signed-off-by: Jagan Teki --- drivers/usb/musb-new/sunxi.c | 56 +--- 1 file changed, 47 insertions(+), 9 deletions(-) diff --git a/drivers/usb/musb-

[U-Boot] [PATCH v5 07/34] sunxi: clock: Fix OHCI clock gating for H3/H5

2018-04-21 Thread Jagan Teki
From: Chen-Yu Tsai Clock gating bits on H43/H5 were wrong, fix them. Signed-off-by: Chen-Yu Tsai Reviewed-by: Jagan Teki --- arch/arm/include/asm/arch-sunxi/clock_sun6i.h | 11 --- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/arch/arm/include/asm/arch-sunxi/clock_sun6

[U-Boot] [PATCH v5 05/34] sunxi: clock: Fix clock gating for H3/H5/A64

2018-04-21 Thread Jagan Teki
clock gating bits on a64 are different than H3_H5, so fixed only required bits on clock_sun6i.h. Signed-off-by: Jagan Teki --- arch/arm/include/asm/arch-sunxi/clock_sun6i.h | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/arch/arm/include/asm/arch-sunxi/clock_sun6

[U-Boot] [PATCH v5 04/34] musb: sunxi: Add fifo config

2018-04-21 Thread Jagan Teki
Unlike other Allwinner SOC's H3/H5/V3s OTG support 4 endpoints with relevant fifo configs, rest all have 5 endpoints. So add the fifo configs and defer them based on udevice_id compatible. Signed-off-by: Jagan Teki --- drivers/usb/musb-new/sunxi.c | 49 +++

[U-Boot] [PATCH v5 11/34] phy: sun4i-usb: Add H3/H5 PHY config

2018-04-21 Thread Jagan Teki
H3/H5 has 4 USB PHY, rest are similar to A64. Signed-off-by: Jagan Teki --- drivers/phy/allwinner/phy-sun4i-usb.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/phy/allwinner/phy-sun4i-usb.c b/drivers/phy/allwinner/phy-sun4i-usb.c index 7f2970b96b..993f036b78 100644 --

[U-Boot] [PATCH v5 12/34] phy: sun4i-usb: Add V3S PHY config

2018-04-21 Thread Jagan Teki
V3S has 1 USB PHY, rest are similar to A64. Signed-off-by: Jagan Teki --- drivers/phy/allwinner/phy-sun4i-usb.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/phy/allwinner/phy-sun4i-usb.c b/drivers/phy/allwinner/phy-sun4i-usb.c index 993f036b78..de0a59a32c 100644 ---

[U-Boot] [PATCH v5 13/34] phy: sun4i-usb: Add A83T USB PHY config

2018-04-21 Thread Jagan Teki
Unlike, other Allwinner SUN4I Phy supporting SOC, A83T has 2 USB PHY's and second one is HSIC. So phy control need to configure to handle these HSIC and SIDDQ requirement. Signed-off-by: Jagan Teki --- drivers/phy/allwinner/phy-sun4i-usb.c | 85 --- 1 file changed

[U-Boot] [PATCH v5 03/34] musb: sunxi: Use simple way to fill musb_hdrc pdata

2018-04-21 Thread Jagan Teki
Filling musb_hdrc pdata using structure will unnecessary add extra ifdefs, so fill them inside probe call for better code understanding and get rid ifdefs using devicetree compatible. Signed-off-by: Jagan Teki --- drivers/usb/musb-new/sunxi.c | 22 +- 1 file changed, 9 insert

[U-Boot] [PATCH v5 01/34] usb: sunxi: Simplify ccm reg base code

2018-04-21 Thread Jagan Teki
Move struct sunxi_ccm_reg pointer to private structure so-that accessing ccm reg base become more proper way and avoid local initialization in each function. Signed-off-by: Jagan Teki --- drivers/usb/host/ehci-sunxi.c | 15 +-- drivers/usb/host/ohci-sunxi.c | 19 +++

[U-Boot] [PATCH v5 00/34] phy: sunxi: Add Allwinner sun4i USB PHY

2018-04-21 Thread Jagan Teki
This series rework of previous version[1] where it removes legacy usb phy handling and added phy driver on generic-phy framework. Current implementation phy driver is unable to get pinctrl, clock and reset details from DT since the dm code on these will add it future. patch 1, simplify sunxi ccm