[U-Boot] [PATCH] armv8: layerscape: Avoid code duplication for TZASC Instantiation

2018-03-26 Thread Sriram Dash
TZASC controller configurations are similar. Put them in a macro and avoid code duplication. Signed-off-by: Priyanka Jain Signed-off-by: Sriram Dash --- arch/arm/cpu/armv8/fsl-layerscape/lowlevel.S | 62 +++- 1 file changed, 34 insertions(+), 28 deletions(-) diff --git

Re: [U-Boot] [PATCH 1/2] drivers: i2c: mxc: Update SYS_I2C_MXC_I2C support in Kconfig

2018-03-13 Thread Sriram Dash
>From: Sriram Dash >Subject: [PATCH 1/2] drivers: i2c: mxc: Update SYS_I2C_MXC_I2C support in >Kconfig > >NXP layerscape platforms like ls1088a, ls2088a uses MXC I2C Controller. >-Remove dependency of MX6 for the same. > >Update related configs to use Kconfig file. >

[U-Boot] [PATCH 2/2] drivers: i2c: mxc: Update support to 8 I2C controllers

2018-02-05 Thread Sriram Dash
Existing driver supports upto 4 I2C controllers. But some of future NXPs SoCs like lx2160a has eight I2C controllers. Update MXC driver to support upto 8 I2C controllers Signed-off-by: Sriram Dash Signed-off-by: Priyanka Jain --- drivers/i2c/Kconfig | 80

[U-Boot] [PATCH 1/2] drivers: i2c: mxc: Update SYS_I2C_MXC_I2C support in Kconfig

2018-02-05 Thread Sriram Dash
CONFIG_SYS_MXC_I2C1_SLAVE,_I2C2_,_I2C3_,_I2C4_ in Kconfig Signed-off-by: Sriram Dash Signed-off-by: Priyanka Jain --- arch/arm/cpu/armv8/fsl-layerscape/Kconfig | 23 drivers/i2c/Kconfig | 89 +-- include/configs/ls1012a_common.h | 3 -- include

[U-Boot] [PATCH v3] armv8: Remove dependency of SERDES for LSCH2 and LSCH3

2018-01-30 Thread Sriram Dash
Remove dependency of SYS_HAS_SERDES for Layerscape Chasis 3/2. Signed-off-by: Sriram Dash --- Changes in v3: - Rebase to latest code. - Include changes for LSCH2. Changes in v2: - Remove ifdef when including fsl_serdes.h arch/arm/cpu/armv8/fsl-layerscape/Kconfig | 14 ++ 1

Re: [U-Boot] [PATCH v2] armv8: Remove dependency of SERDES for LS CHASIS3

2018-01-15 Thread Sriram Dash
>From: York Sun >Subject: Re: [PATCH v2] armv8: Remove dependency of SERDES for LS CHASIS3 > >On 01/10/2018 01:15 AM, Sriram Dash wrote: >> Remove dependency of SYS_HAS_SERDES for Layerscape Chasis 3. >> >> Signed-off-by: Sriram Dash >> --- >> Changes

[U-Boot] [PATCH v2] armv8: Remove dependency of SERDES for LS CHASIS3

2018-01-10 Thread Sriram Dash
Remove dependency of SYS_HAS_SERDES for Layerscape Chasis 3. Signed-off-by: Sriram Dash --- Changes in v2: - Remove ifdef when including fsl_serdes.h arch/arm/cpu/armv8/fsl-layerscape/Kconfig | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/arm/cpu/armv8/fsl

[U-Boot] [PATCH] serial: lpuart: Proper device identification

2018-01-09 Thread Sriram Dash
Identify and distinguish between platform device type of MX7ULP and LS1021A. This is a fix to: 7edf5c45 serial: lpuart: add i.MX7ULP support Signed-off-by: Sriram Dash Acked-by: Peng Fan --- drivers/serial/serial_lpuart.c | 18 +++--- 1 file changed, 7 insertions(+), 11 deletions

Re: [U-Boot] [PATCH] armv8: Remove dependency of SERDES for LS CHASIS3

2017-09-14 Thread Sriram Dash
>From: York Sun >Subject: Re: [PATCH] armv8: Remove dependency of SERDES for LS CHASIS3 > >On 09/04/2017 03:14 AM, Sriram Dash wrote: >> Remove dependency of SYS_HAS_SERDES for Layerscape Chasis 3. >> >> Signed-off-by: Sriram Dash >> --- >> arc

[U-Boot] [PATCH] armv8: fsl: i2c: Put I2C related code under CONFIG_SYS_I2C

2017-09-04 Thread Sriram Dash
I2C code is put under CONFIG_SYS_I2C Signed-off-by: Sriram Dash --- arch/arm/cpu/armv8/fsl-layerscape/soc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/cpu/armv8/fsl-layerscape/soc.c b/arch/arm/cpu/armv8/fsl-layerscape/soc.c index 639e9d2..66afcea 100644 --- a

[U-Boot] [PATCH] armv8: fsl: ifc: Put IFC related code under CONFIG_FSL_IFC

2017-09-04 Thread Sriram Dash
IFC code is put under CONFIG_FSL_IFC Signed-off-by: Sriram Dash --- arch/arm/cpu/armv8/fsl-layerscape/soc.c| 2 ++ arch/arm/include/asm/arch-fsl-layerscape/cpu.h | 10 ++ 2 files changed, 12 insertions(+) diff --git a/arch/arm/cpu/armv8/fsl-layerscape/soc.c b/arch/arm/cpu

[U-Boot] [PATCH] armv8: Remove dependency of SERDES for LS CHASIS3

2017-09-04 Thread Sriram Dash
Remove dependency of SYS_HAS_SERDES for Layerscape Chasis 3. Signed-off-by: Sriram Dash --- arch/arm/cpu/armv8/fsl-layerscape/Kconfig | 4 ++-- arch/arm/cpu/armv8/fsl-layerscape/cpu.c | 2 ++ arch/arm/cpu/armv8/fsl-layerscape/soc.c | 2 ++ 3 files changed, 6 insertions(+), 2 deletions

Re: [U-Boot] [PATCH v3] drivers: usb: fsl-dt-fixup: Fix the dt for multiple USB nodes in single traversal of device tree

2016-11-02 Thread Sriram Dash
>From: Marek Vasut [mailto:ma...@denx.de] >On 10/27/2016 08:56 AM, Sriram Dash wrote: >> For FSL USB node fixup, the dt is walked multiple times for fixing >> erratum and phy type. This patch walks the tree and fixes the node >> till no more USB nodes are left. >>

[U-Boot] [PATCH v3] drivers: usb: fsl-dt-fixup: Fix the dt for multiple USB nodes in single traversal of device tree

2016-10-27 Thread Sriram Dash
For FSL USB node fixup, the dt is walked multiple times for fixing erratum and phy type. This patch walks the tree and fixes the node till no more USB nodes are left. Signed-off-by: Sriram Dash --- Depends on the following patch: https://patchwork.ozlabs.org/patch/682139/ Changes in v3

Re: [U-Boot] [PATCH] powerpc: mpc512x: Add support for get_svr() for mpc512x devices

2016-10-14 Thread Sriram Dash
>From: Bin Meng [mailto:bmeng...@gmail.com] >On Fri, Oct 14, 2016 at 1:49 PM, Sriram Dash wrote: >> Defines get_svr() for mpc512x devices >> >> Signed-off-by: Sriram Dash >> --- >> arch/powerpc/cpu/mpc512x/start.S | 5 + >> 1 file changed, 5 inserti

[U-Boot] [PATCH v2] powerpc: mpc512x: Add support for get_svr() for mpc512x devices

2016-10-13 Thread Sriram Dash
Defines get_svr() for mpc512x devices Signed-off-by: Sriram Dash Reviewed-by: Bin Meng --- Changes in v2: - cosmetic changes arch/powerpc/cpu/mpc512x/start.S | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/powerpc/cpu/mpc512x/start.S b/arch/powerpc/cpu/mpc512x/start.S index

[U-Boot] [PATCH] powerpc: mpc512x: Add support for get_svr() for mpc512x devices

2016-10-13 Thread Sriram Dash
Defines get_svr() for mpc512x devices Signed-off-by: Sriram Dash --- arch/powerpc/cpu/mpc512x/start.S | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/powerpc/cpu/mpc512x/start.S b/arch/powerpc/cpu/mpc512x/start.S index 471d401..2507842 100644 --- a/arch/powerpc/cpu/mpc512x/start.S

[U-Boot] [PATCH v2 0/3] Enable DM support for USB in LS2080

2016-10-07 Thread Sriram Dash
Add the device tree support for LS2080RDB nand boot. Enable the CONFIG_DM_USB in defconfigs and add the usb node in dts for LS2080. Sriram Dash (3): armv8: LS2080A: Add device tree support for nand boot armv8: ls2080: Enable CONFIG_DM_USB in defconfigs armv8: ls2080: Add USB node in dts for

[U-Boot] [PATCH v2 1/3] armv8: LS2080A: Add device tree support for nand boot

2016-10-07 Thread Sriram Dash
Add device tree support for LS2080ARDB nand boot. Signed-off-by: Sriram Dash --- configs/ls2080ardb_nand_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/ls2080ardb_nand_defconfig b/configs/ls2080ardb_nand_defconfig index 551f158..7183d76 100644 --- a/configs

[U-Boot] [PATCH v2 3/3] armv8: ls2080: Add USB node in dts for ls2080

2016-10-07 Thread Sriram Dash
Add the USB node for LS2080 in dts. Signed-off-by: Sriram Dash --- Changes in v2 - No change arch/arm/dts/fsl-ls2080a.dtsi | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/dts/fsl-ls2080a.dtsi b/arch/arm/dts/fsl-ls2080a.dtsi index b308c8b..f76e981 100644 --- a

[U-Boot] [PATCH v2 2/3] armv8: ls2080: Enable CONFIG_DM_USB in defconfigs

2016-10-07 Thread Sriram Dash
Enables driver model flag CONFIG_DM_USB for LS2080A platform defconfigs. Signed-off-by: Sriram Dash --- Changes in v2 - Rebase configs/ls2080aqds_SECURE_BOOT_defconfig | 1 + configs/ls2080aqds_defconfig | 1 + configs/ls2080aqds_nand_defconfig| 1 + configs

Re: [U-Boot] [PATCH 1/2] armv8: ls2080: Enable CONFIG_DM_USB in defconfigs

2016-10-06 Thread Sriram Dash
>From: york sun >Sent: Thursday, October 06, 2016 9:33 PM >To: Sriram Dash ; u-boot@lists.denx.de >Cc: Prabhakar Kushwaha ; >albert.u.b...@aribaud.net; Suresh Gupta >Subject: Re: [PATCH 1/2] armv8: ls2080: Enable CONFIG_DM_USB in defconfigs > >On 10/05/2016 11:03 PM, Sri

Re: [U-Boot] [PATCH 1/2] armv8: ls2080: Enable CONFIG_DM_USB in defconfigs

2016-10-06 Thread Sriram Dash
>From: york sun >Sent: Thursday, October 06, 2016 12:37 AM >To: Sriram Dash ; u-boot@lists.denx.de >Cc: Prabhakar Kushwaha ; >albert.u.b...@aribaud.net; Suresh Gupta >Subject: Re: [PATCH 1/2] armv8: ls2080: Enable CONFIG_DM_USB in defconfigs > >On 09/28/2016 11:

[U-Boot] [PATCH] armv8: fsl: Enable USB only when SYSCLK is 100 MHz

2016-10-03 Thread Sriram Dash
SYSCLK is used as a reference clock for USB. When the USB controller is used, SYSCLK must meet the additional requirement of 100 MHz. Signed-off-by: Sriram Dash --- arch/arm/cpu/armv8/fsl-layerscape/fdt.c | 20 1 file changed, 20 insertions(+) diff --git a/arch/arm/cpu

[U-Boot] [PATCH 1/2] armv8: ls1043: Enable CONFIG_DM_USB in defconfigs

2016-09-29 Thread Sriram Dash
Enables driver model flag CONFIG_DM_USB for LS1043A platform defconfigs. Signed-off-by: Sriram Dash --- configs/ls1043aqds_defconfig | 1 + configs/ls1043aqds_lpuart_defconfig | 1 + configs/ls1043aqds_nand_defconfig| 1 + configs/ls1043aqds_nor_ddr3_defconfig| 1

[U-Boot] [PATCH 2/2] armv8: ls1043: Add USB node in dts for ls1043

2016-09-29 Thread Sriram Dash
Add the USB node for LS1043 in dts. Signed-off-by: Sriram Dash --- arch/arm/dts/fsl-ls1043a.dtsi | 21 + 1 file changed, 21 insertions(+) diff --git a/arch/arm/dts/fsl-ls1043a.dtsi b/arch/arm/dts/fsl-ls1043a.dtsi index a8bffba..f038f96 100644 --- a/arch/arm/dts/fsl

[U-Boot] [PATCH 0/2] Enable DM support for USB in LS1043

2016-09-29 Thread Sriram Dash
Enable the CONFIG_DM_USB in defconfigs and add the usb node in dts for LS1043 Sriram Dash (2): armv8: ls1043: Enable CONFIG_DM_USB in defconfigs armv8: ls1043: Add USB node in dts for ls1043 arch/arm/dts/fsl-ls1043a.dtsi| 21 + configs/ls1043aqds_defconfig

[U-Boot] [PATCH 2/2] armv8: ls2080: Add USB node in dts for ls2080

2016-09-28 Thread Sriram Dash
Add the USB node for LS2080 in dts. Signed-off-by: Sriram Dash --- arch/arm/dts/fsl-ls2080a.dtsi | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/dts/fsl-ls2080a.dtsi b/arch/arm/dts/fsl-ls2080a.dtsi index b308c8b..f76e981 100644 --- a/arch/arm/dts/fsl-ls2080a.dtsi

[U-Boot] [PATCH 1/2] armv8: ls2080: Enable CONFIG_DM_USB in defconfigs

2016-09-28 Thread Sriram Dash
Enables driver model flag CONFIG_DM_USB for LS2080A platform defconfigs. Signed-off-by: Sriram Dash --- configs/ls2080aqds_SECURE_BOOT_defconfig | 1 + configs/ls2080aqds_defconfig | 1 + configs/ls2080aqds_nand_defconfig| 1 + configs/ls2080aqds_qspi_defconfig| 1

[U-Boot] [PATCH 0/2] Enable DM support for USB in LS2080

2016-09-28 Thread Sriram Dash
Enable the CONFIG_DM_USB in defconfigs and add the usb node in dts for LS2080. Sriram Dash (2): armv8: ls2080: Enable CONFIG_DM_USB in defconfigs armv8: ls2080: Add USB node in dts for ls2080 arch/arm/dts/fsl-ls2080a.dtsi| 14 ++ configs

[U-Boot] [PATCH v4] drivers: usb: xhci-fsl: Implement Erratum A-010151 for FSL USB3 controller

2016-09-23 Thread Sriram Dash
: Sriram Dash Signed-off-by: Rajesh Bhagat --- Changes in v4: - Removing the dedicated function for setting rxdetect bit and doing the operation by writing to register directly. - Added comment about the support of Rx Detect by DWC3 - Use clrsetbits_le32 instead of setbits_le32. Changes in

Re: [U-Boot] [PATCH v3] drivers: usb: xhci-fsl: Implement Erratum A-010151 for FSL USB3 controller

2016-09-16 Thread Sriram Dash
>From: Marek Vasut [mailto:ma...@denx.de] >On 09/16/2016 11:35 AM, Sriram Dash wrote: > >[...] > >>>> I agree to your point. We can set the bit from fsl specific file >>>> with the function setbits_le32(fsl_xhci->dwc3_reg->g_usb3pipectl[0], >>>

Re: [U-Boot] [PATCH v2] drivers: usb: fsl-dt-fixup: Fix the dt for multiple USB nodes in single traversal of device tree

2016-09-16 Thread Sriram Dash
>From: Marek Vasut [mailto:ma...@denx.de] >On 09/16/2016 10:47 AM, Sriram Dash wrote: >>> From: Marek Vasut [mailto:ma...@denx.de] On 09/15/2016 12:29 AM, york >>> sun wrote: >>>> On 09/14/2016 02:35 PM, Marek Vasut wrote: >>>>> On 09/14/2016 07:

[U-Boot] [PATCH 2/2] usb: fsl: Renaming fdt_fixup_erratum and fdt_fixup_usb_erratum

2016-09-16 Thread Sriram Dash
The functions fdt_fixup_erratum and fdt_fixup_usb_erratum are fsl/nxp specific. So, make them explicit by renaming them fsl_fdt_fixup_erratum and fsl_fdt_fixup_usb_erratum Signed-off-by: Sriram Dash --- drivers/usb/common/fsl-dt-fixup.c | 45 --- 1 file

[U-Boot] [PATCH 0/2] Renaming the fsl/nxp specific functions

2016-09-16 Thread Sriram Dash
The functions fdt_fixup_dr_usb, fdt_fixup_erratum and fdt_fixup_usb_erratum are renamed to fsl_fdt_fixup_dr_usb, fsl_fdt_fixup_erratum and fsl_fdt_fixup_usb_erratum respectively.This makes more sense as these are not generic functions. Sriram Dash (2): usb: fsl: Rename fdt_fixup_dr_usb usb

[U-Boot] [PATCH 1/2] usb: fsl: Rename fdt_fixup_dr_usb

2016-09-16 Thread Sriram Dash
The function fdt_fixup_dr_usb is specific to fsl/nxp. So, make the function name explicit and rename fdt_fixup_dr_usb into fsl_fdt_fixup_dr_usb. Signed-off-by: Sriram Dash --- board/Arcturus/ucp1020/ucp1020.c| 2 +- board/freescale/b4860qds/b4860qds.c | 2 +- board/freescale

Re: [U-Boot] [PATCH v2] drivers: usb: fsl-dt-fixup: Fix the dt for multiple USB nodes in single traversal of device tree

2016-09-16 Thread Sriram Dash
>From: Marek Vasut [mailto:ma...@denx.de] >On 09/15/2016 12:29 AM, york sun wrote: >> On 09/14/2016 02:35 PM, Marek Vasut wrote: >>> On 09/14/2016 07:22 AM, Sriram Dash wrote: >>>>> From: Sriram Dash [mailto:sriram.d...@nxp.com] >>>>> >>>

Re: [U-Boot] [PATCH v3] drivers: usb: xhci-fsl: Implement Erratum A-010151 for FSL USB3 controller

2016-09-16 Thread Sriram Dash
>From: Marek Vasut [mailto:ma...@denx.de] >On 09/16/2016 07:50 AM, Sriram Dash wrote: >>> From: Marek Vasut [mailto:ma...@denx.de] On 09/15/2016 08:31 AM, >>> Sriram Dash wrote: >>>>> From: Marek Vasut [mailto:ma...@denx.de] On 09/14/2016 07:15 AM, >&g

Re: [U-Boot] [PATCH v3] drivers: usb: xhci-fsl: Implement Erratum A-010151 for FSL USB3 controller

2016-09-16 Thread Sriram Dash
>From: Marek Vasut [mailto:ma...@denx.de] >On 09/15/2016 08:31 AM, Sriram Dash wrote: >>> From: Marek Vasut [mailto:ma...@denx.de] On 09/14/2016 07:15 AM, >>> Sriram Dash wrote: >>>> Currently the controller by default enables the Receive Detect >>>>

Re: [U-Boot] [PATCH v3] drivers: usb: xhci-fsl: Implement Erratum A-010151 for FSL USB3 controller

2016-09-14 Thread Sriram Dash
>From: Marek Vasut [mailto:ma...@denx.de] >On 09/14/2016 07:15 AM, Sriram Dash wrote: >> Currently the controller by default enables the Receive Detect feature >> in P3 mode in USB 3.0 PHY. However, USB 3.0 PHY does not reliably >> support receive detection in P3 mo

Re: [U-Boot] [PATCH v2] drivers: usb: fsl-dt-fixup: Fix the dt for multiple USB nodes in single traversal of device tree

2016-09-14 Thread Sriram Dash
>From: york sun >On 09/14/2016 02:35 PM, Marek Vasut wrote: >> On 09/14/2016 07:22 AM, Sriram Dash wrote: >>>> From: Sriram Dash [mailto:sriram.d...@nxp.com] >>>> >>> >>> Hello Marek, >>> >>> Any comments? >> >> W

Re: [U-Boot] [PATCH v2] drivers: usb: fsl-dt-fixup: Fix the dt for multiple USB nodes in single traversal of device tree

2016-09-13 Thread Sriram Dash
>From: Sriram Dash [mailto:sriram.d...@nxp.com] > Hello Marek, Any comments? >For FSL USB node fixup, the dt is walked multiple times for fixing erratum and >phy >type. This patch walks the tree and fixes the node till no more USB nodes are >left. > >Signed-off-by:

[U-Boot] [PATCH v3] drivers: usb: xhci-fsl: Implement Erratum A-010151 for FSL USB3 controller

2016-09-13 Thread Sriram Dash
: Sriram Dash Signed-off-by: Rajesh Bhagat --- Changes in v3: - Fixing conflicts and repost Changes in v2: - Do Soc ver checking for applying erratum drivers/usb/common/fsl-errata.c | 26 ++ drivers/usb/host/xhci-dwc3.c| 5 + drivers/usb/host/xhci-fsl.c | 8

Re: [U-Boot] [PATCH v2] drivers: usb: xhci-fsl: Implement Erratum A-010151 for FSL USB3 controller

2016-08-26 Thread Sriram Dash
>From: Marek Vasut [mailto:ma...@denx.de] >On 08/24/2016 12:39 PM, Sriram Dash wrote: >> Currently the controller by default enables the Receive Detect feature >> in P3 mode in USB 3.0 PHY. However, USB 3.0 PHY does not reliably >> support receive detection in P3 mo

Re: [U-Boot] [PATCH v2] drivers: usb: xhci-fsl: Implement Erratum A-010151 for FSL USB3 controller

2016-08-26 Thread Sriram Dash
>From: Marek Vasut [mailto:ma...@denx.de] >On 08/26/2016 12:31 PM, Sriram Dash wrote: >>> From: Marek Vasut [mailto:ma...@denx.de] On 08/25/2016 08:47 AM, >>> Sriram Dash wrote: >>>>> From: Marek Vasut [mailto:ma...@denx.de] On 08/24/2016 12:39 PM, >&g

Re: [U-Boot] [PATCH v2] drivers: usb: xhci-fsl: Implement Erratum A-010151 for FSL USB3 controller

2016-08-26 Thread Sriram Dash
>From: Marek Vasut [mailto:ma...@denx.de] >On 08/25/2016 08:47 AM, Sriram Dash wrote: >>> From: Marek Vasut [mailto:ma...@denx.de] On 08/24/2016 12:39 PM, >>> Sriram Dash wrote: >>>> Currently the controller by default enables the Receive Detect >>>>

Re: [U-Boot] [PATCH v2] drivers: usb: xhci-fsl: Implement Erratum A-010151 for FSL USB3 controller

2016-08-26 Thread Sriram Dash
>From: Marek Vasut [mailto:ma...@denx.de] >On 08/26/2016 12:57 PM, Sriram Dash wrote: >>> From: Marek Vasut [mailto:ma...@denx.de] On 08/26/2016 12:31 PM, >>> Sriram Dash wrote: >>>>> From: Marek Vasut [mailto:ma...@denx.de] On 08/25/2016 08:47 AM, >&

Re: [U-Boot] [PATCH v2] drivers: usb: xhci-fsl: Implement Erratum A-010151 for FSL USB3 controller

2016-08-25 Thread Sriram Dash
>From: Marek Vasut [mailto:ma...@denx.de] >On 08/24/2016 12:39 PM, Sriram Dash wrote: >> Currently the controller by default enables the Receive Detect feature >> in P3 mode in USB 3.0 PHY. However, USB 3.0 PHY does not reliably >> support receive detection in P3 mo

[U-Boot] [PATCH v2] drivers: usb: xhci-fsl: Implement Erratum A-010151 for FSL USB3 controller

2016-08-24 Thread Sriram Dash
: Sriram Dash Signed-off-by: Rajesh Bhagat --- Changes in v2: - Do Soc ver checking for applying erratum drivers/usb/common/fsl-errata.c | 26 ++ drivers/usb/host/xhci-dwc3.c| 5 + drivers/usb/host/xhci-fsl.c | 8 include/fsl_usb.h | 1

Re: [U-Boot] [PATCH v2] drivers: usb: xhci-fsl: Change burst beat and outstanding pipelined transfers requests

2016-08-23 Thread Sriram Dash
>From: york sun >On 08/22/2016 06:54 AM, Marek Vasut wrote: >> On 08/22/2016 02:25 PM, Sriram Dash wrote: >>> This is required for better performance, and performs below tuning: >>> 1. Enable burst length set, and define it as 4/8/16. > >Isn't it odd to pu

Re: [U-Boot] [PATCH] drivers: usb: xhci-fsl: Implement Erratum A-010151 for FSL USB3 controller

2016-08-23 Thread Sriram Dash
>From: york sun >On 08/19/2016 03:13 AM, Sriram Dash wrote: >> Currently the controller by default enables the Receive Detect feature >> in P3 mode in USB 3.0 PHY. However, USB 3.0 PHY does not reliably >> support receive detection in P3 mode. >> Enabling the USB3 con

Re: [U-Boot] [PATCH] drivers: usb: xhci-fsl: Change burst beat and outstanding pipelined transfers requests

2016-08-22 Thread Sriram Dash
>From: Marek Vasut [mailto:ma...@denx.de] >On 08/19/2016 07:51 AM, Sriram Dash wrote: >> This is required for better performance, and performs below tuning: >> 1. Enable burst length set, and define it as 4/8/16. >> 2. Set burst request limit to 16 requests. >> &

[U-Boot] [PATCH v2] drivers: usb: xhci-fsl: Change burst beat and outstanding pipelined transfers requests

2016-08-22 Thread Sriram Dash
This is required for better performance, and performs below tuning: 1. Enable burst length set, and define it as 4/8/16. 2. Set burst request limit to 16 requests. Signed-off-by: Rajesh Bhagat Signed-off-by: Sriram Dash --- Changes in v2: - using clrsetbits_le32 and setbits_le32 instead of

Re: [U-Boot] [PATCH] drivers: usb: xhci-fsl: Change burst beat and outstanding pipelined transfers requests

2016-08-22 Thread Sriram Dash
>From: Marek Vasut [mailto:ma...@denx.de] >On 08/22/2016 10:24 AM, Sriram Dash wrote: >>> From: Marek Vasut [mailto:ma...@denx.de] On 08/19/2016 07:51 AM, >>> Sriram Dash wrote: >>>> This is required for better performance, and performs below tuning: >>&g

[U-Boot] [PATCH] drivers: usb: xhci-fsl: Implement Erratum A-010151 for FSL USB3 controller

2016-08-19 Thread Sriram Dash
: Sriram Dash Signed-off-by: Rajesh Bhagat --- drivers/usb/host/xhci-dwc3.c | 5 + drivers/usb/host/xhci-fsl.c | 7 +++ include/linux/usb/dwc3.h | 2 ++ 3 files changed, 14 insertions(+) diff --git a/drivers/usb/host/xhci-dwc3.c b/drivers/usb/host/xhci-dwc3.c index 33961cd..adbd9b5

[U-Boot] [PATCH] drivers: usb: xhci-fsl: Change burst beat and outstanding pipelined transfers requests

2016-08-18 Thread Sriram Dash
This is required for better performance, and performs below tuning: 1. Enable burst length set, and define it as 4/8/16. 2. Set burst request limit to 16 requests. Signed-off-by: Rajesh Bhagat Signed-off-by: Sriram Dash --- drivers/usb/host/xhci-fsl.c | 13 + include/linux/usb

[U-Boot] [PATCH v2] drivers: usb: fsl-dt-fixup: Fix the dt for multiple USB nodes in single traversal of device tree

2016-08-17 Thread Sriram Dash
For FSL USB node fixup, the dt is walked multiple times for fixing erratum and phy type. This patch walks the tree and fixes the node till no more USB nodes are left. Signed-off-by: Sriram Dash Signed-off-by: Rajesh Bhagat --- drivers/usb/common/fsl-dt-fixup.c | 108

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

2016-08-16 Thread Sriram Dash
, 2.0, 2.1), P2040(1.0, 1.1, 2.0, 2.1), P3041(1.0, 1.1, 2.0, 2.1), P5010(1.0, 2.0), P5020(1.0, 2.0), P5021(1.0, 2.0), T4240(1.0, 2.0), P5040(1.0,2.0,2.1). Signed-off-by: Sriram Dash Signed-off-by: Rajesh Bhagat --- Changes in v3: - Modify the commit message - Modify the commit description

[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

[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

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

2016-08-16 Thread Sriram Dash
removes the erratum for T4160, T4080, T1040, T1042, T1020, T1022, T2080, T2081. Sriram Dash (3): mpc85xx: powerpc: usb: Modified the erratum A006261 according to endianness mpc85xx: powerpc: usb: Enable Usb phy initialisation settings for P1010 mpc85xx: powerpc: usb: Update the list

Re: [U-Boot] [PATCH v2 1/5] mpc85xx/powerpc:cpu_init: Modified the errata A006261 according to endianness

2016-08-12 Thread Sriram Dash
subject should be separated by either "/", or ":", but not >both. I don't >believe "cpu_init" should be in the tag. > Hello York, Will take care from next time onwards. Will change in v3. > >On 07/17/2016 08:47 PM, Sriram Dash wrote: >> Mo

Re: [U-Boot] [PATCH v2 4/5] mpc85xx/powerpc: P5040: Apply errata A006261 for P5040

2016-08-12 Thread Sriram Dash
>From: york sun > >Same comment to the subject line. > Ok. Will modify patch title and commit message in v3. >On 07/17/2016 08:47 PM, Sriram Dash wrote: >> Apply USB errata A006261 for P5040. > >Please add explanation the same erratum applies to P5040 rev 2.0. > O

Re: [U-Boot] [PATCH v2 3/5] mpc85xx/powerpc: P2041: Apply errata A006261 for P2041

2016-08-12 Thread Sriram Dash
>From: york sun > >Same comment to the subject. > Ok. Will modify patch title and commit message in v3. >On 07/17/2016 08:47 PM, Sriram Dash wrote: >> Apply USB errata A006261 for P2041, P2040. >> >> Signed-off-by: Sriram Dash >> Signed-off-by: Rajesh Bh

Re: [U-Boot] [PATCH v2 2/5] mpc85xx/powerpc:P1010: Apply errata A006261 for P1010

2016-08-12 Thread Sriram Dash
>From: york sun > >Sriram, > >Same comment here, please fix the subject. > Ok. Will modify patch title and commit message in v3. >On 07/17/2016 08:47 PM, Sriram Dash wrote: >> Apply USB errata A006261 for P1010. > >A006261 is already applied to P1010. >

Re: [U-Boot] [PATCH v2 5/5] mpc85xx/powerpc: Do not apply errata A006261 for T4160, T1040, T2080

2016-08-12 Thread Sriram Dash
>From: york sun >On 07/17/2016 08:47 PM, Sriram Dash wrote: >> Do not apply errata A006261 for T4160 and T4080(rev 1.0, 2.0), >> T1040(rev 1.0), T2080(rev 1.0), T2081(rev 1.0). > >I don't see mentioning the revision numbers helps here. Your patch is removing >the &

Re: [U-Boot] [PATCH] drivers:usb:common:fsl-dt-fixup: Fix the dt for all type of usb controllers

2016-07-20 Thread Sriram Dash
>From: Marek Vasut [mailto:ma...@denx.de] >On 06/20/2016 06:15 AM, Sriram Dash wrote: >> Currently, U-boot doesn't allow to compile more than one type of USB >> protocol simultaneously. Hence, EHCI and XHCI controllers cannot >> co-exist and CONFIG_USB_MAX_CONTROLLER

[U-Boot] [PATCH v2 2/5] mpc85xx/powerpc:P1010: Apply errata A006261 for P1010

2016-07-17 Thread Sriram Dash
Apply USB errata A006261 for P1010. Signed-off-by: Sriram Dash Signed-off-by: Rajesh Bhagat --- arch/powerpc/include/asm/config_mpc85xx.h | 1 + arch/powerpc/include/asm/immap_85xx.h | 2 ++ 2 files changed, 3 insertions(+) diff --git a/arch/powerpc/include/asm/config_mpc85xx.h b/arch

[U-Boot] [PATCH v2 4/5] mpc85xx/powerpc: P5040: Apply errata A006261 for P5040

2016-07-17 Thread Sriram Dash
Apply USB errata A006261 for P5040. Signed-off-by: Sriram Dash Signed-off-by: Rajesh Bhagat --- drivers/usb/common/fsl-errata.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/usb/common/fsl-errata.c b/drivers/usb/common/fsl-errata.c index 122e17b..765b25a 100644

[U-Boot] [PATCH v2 5/5] mpc85xx/powerpc: Do not apply errata A006261 for T4160, T1040, T2080

2016-07-17 Thread Sriram Dash
Do not apply errata A006261 for T4160 and T4080(rev 1.0, 2.0), T1040(rev 1.0), T2080(rev 1.0), T2081(rev 1.0). Signed-off-by: Sriram Dash Signed-off-by: Rajesh Bhagat --- arch/powerpc/include/asm/config_mpc85xx.h | 4 +--- drivers/usb/common/fsl-errata.c | 7 --- 2 files changed

[U-Boot] [PATCH v2 0/5] Modified the errata A006261 according to endianness

2016-07-17 Thread Sriram Dash
Modifies errata 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. Applies the errata for P1010, P2041, P5040. Removes the errata for T4160, T1040, T2080. Sriram Dash (5): mpc85xx/powerpc:cpu_init

[U-Boot] [PATCH v2 3/5] mpc85xx/powerpc: P2041: Apply errata A006261 for P2041

2016-07-17 Thread Sriram Dash
Apply USB errata A006261 for P2041, P2040. Signed-off-by: Sriram Dash Signed-off-by: Rajesh Bhagat --- drivers/usb/common/fsl-errata.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/usb/common/fsl-errata.c b/drivers/usb/common/fsl-errata.c index 183bf2b..122e17b

[U-Boot] [PATCH v2 1/5] mpc85xx/powerpc:cpu_init: Modified the errata A006261 according to endianness

2016-07-17 Thread Sriram Dash
Modifies errata 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 v2: - Adds the errata number to title of patch - Makes

Re: [U-Boot] [PATCH] powerpc/mpc85xx: Fix SPL_BUILD compilation by adding CONFIG_USB_EHCI_FSL flag

2016-07-04 Thread Sriram Dash
>From: Marek Vasut [mailto:ma...@denx.de] >On 07/04/2016 01:11 PM, Sriram Dash wrote: >> Commit 9262367 moved USB errata workaround to a C file but didn't >> build it for SPL targets. The EHCI errata should be applied/checked >> only when EHCI is defined. >&

[U-Boot] [PATCH] powerpc/mpc85xx: Fix SPL_BUILD compilation by adding CONFIG_USB_EHCI_FSL flag

2016-07-04 Thread Sriram Dash
Commit 9262367 moved USB errata workaround to a C file but didn't build it for SPL targets. The EHCI errata should be applied/checked only when EHCI is defined. Signed-off-by: Rajesh Bhagat Signed-off-by: Sriram Dash --- arch/powerpc/include/asm/config_mpc85xx.h

Re: [U-Boot] [RFC PATCH v1] usb: spl: fix USB errata for FSL SPL targets

2016-06-28 Thread Sriram Dash
>From: york sun >On 06/28/2016 12:02 AM, Sriram Dash wrote: >>> From: Marek Vasut [mailto:ma...@denx.de] On 06/28/2016 01:02 AM, York >>> Sun wrote: >>>> Commit 9262367 moved USB errata workaround to a C file but didn't >>>> build it for SP

Re: [U-Boot] [PATCH] mpc85xx/powerpc:cpu_init: Modified the errata according to endianness

2016-06-28 Thread Sriram Dash
>From: york sun > >+Suresh Gupta > >On 06/21/2016 12:22 AM, Sriram Dash wrote: >> Modifies errata 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. Also, Adds

Re: [U-Boot] [RFC PATCH v1] usb: spl: fix USB errata for FSL SPL targets

2016-06-28 Thread Sriram Dash
>From: Marek Vasut [mailto:ma...@denx.de] >On 06/28/2016 01:02 AM, York Sun wrote: >> Commit 9262367 moved USB errata workaround to a C file but didn't >> build it for SPL targets. >> >> Signed-off-by: York Sun >> CC: Sriram Dash >> CC: Rajesh Bh

Re: [U-Boot] [PATCH] mpc85xx/powerpc:cpu_init: Modified the errata according to endianness

2016-06-21 Thread Sriram Dash
>From: Marek Vasut [mailto:ma...@denx.de] >On 06/21/2016 09:22 AM, Sriram Dash wrote: >> Modifies errata 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. Also > >Plea

[U-Boot] [PATCH] mpc85xx/powerpc:cpu_init: Modified the errata according to endianness

2016-06-21 Thread Sriram Dash
Modifies errata 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. Also, Adds errata for P1010 and P2041 2.0. Signed-off-by: Sriram Dash Signed-off-by: Rajesh Bhagat --- arch/powerpc/cpu/mpc85xx

[U-Boot] [PATCH] drivers:usb:common:fsl-dt-fixup: Fix the dt for all type of usb controllers

2016-06-19 Thread Sriram Dash
ingly. Signed-off-by: Sriram Dash Signed-off-by: Rajesh Bhagat --- drivers/usb/common/fsl-dt-fixup.c | 27 ++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/drivers/usb/common/fsl-dt-fixup.c b/drivers/usb/common/fsl-dt-fixup.c index 9c48852..1edf146 1

[U-Boot] [Patch v4 2/5] usb: xhci: fsl: code cleanup for device tree fixup for fsl usb controllers

2016-06-12 Thread Sriram Dash
Performs code cleanup for device tree fixup for fsl usb controllers by making functions to handle these similar errata checking code. Signed-off-by: Rajesh Bhagat Signed-off-by: Sriram Dash --- Changes in v4: - Removed parenthesis around has_erratum(). - Made USB controllers macros local to

[U-Boot] [Patch v4 5/5] usb: xhci: fsl: Add workaround for USB erratum A-008751

2016-06-12 Thread Sriram Dash
This patch is doing the following: 1. Implementing the errata for LS2080. 2. Adding fixup for fdt for LS2080. Signed-off-by: Sriram Dash Signed-off-by: Rajesh Bhagat --- Changes in v4: - Reworked for changes done in errata checking code. Changes in v3: - Reworked for changes done in

[U-Boot] [Patch v4 3/5] fsl: usb: make errata function common for PPC and ARM

2016-06-12 Thread Sriram Dash
This patch does the following things: 1. Makes the errata checking code common for PPC and ARM 2. Moves all these static inline functions into a dedicated C file Signed-off-by: Sriram Dash Signed-off-by: Rajesh Bhagat --- Changes in v4: - Rework done according to previous patches. Changes

[U-Boot] [Patch v4 4/5] armv8/ls2080: Remove workaround for erratum A008751

2016-06-12 Thread Sriram Dash
This errata a008751 is applied on Soc specific file currently.This will be moved to a file where all the errata implementation will take place for usb for fsl. This patch removes the errata workaround from soc specific file for LS2080. Signed-off-by: Sriram Dash Signed-off-by: Rajesh Bhagat

[U-Boot] [Patch v4 1/5] arm64: fsl-layerscape: add get_svr and IS_SVR_REV helper

2016-06-12 Thread Sriram Dash
Adds get_svr and IS_SVR_REV helpers for ARMv8 platforms, similar to PPC and ARMv7. Signed-off-by: Sriram Dash Signed-off-by: Rajesh Bhagat --- Changes in v4: - Parenthesis around all the macro args. Changes in v3: - Added commit message Changes in v2: - No update arch/arm/cpu

[U-Boot] [Patch v4 0/5] Supporting ARM v8 USB errata for FSL

2016-06-12 Thread Sriram Dash
The patch-set does the following : 1. Adds support for ARM for USB Erratum Checking code for implementing the USB Erratum for fsl. 2. Performs code cleanup to reduce redundancy when adding fsl device tree fixup. 3. Implements Erratum A008751 for LS2 platform. Sriram Dash (5): arm64: fsl

Re: [U-Boot] [PATCH v3 2/5] usb: xhci: fsl: code cleanup for device tree fixup for fsl usb controllers

2016-06-09 Thread Sriram Dash
>From: Marek Vasut [mailto:ma...@denx.de] >On 06/10/2016 07:20 AM, Sriram Dash wrote: >>> From: Marek Vasut [mailto:ma...@denx.de] On 06/10/2016 05:47 AM, >>> Sriram Dash wrote: >>>>> -Original Message- >>>>> From: Marek Vasut [mailto:m

Re: [U-Boot] [PATCH v3 2/5] usb: xhci: fsl: code cleanup for device tree fixup for fsl usb controllers

2016-06-09 Thread Sriram Dash
>From: Marek Vasut [mailto:ma...@denx.de] >On 06/10/2016 05:47 AM, Sriram Dash wrote: >>> -Original Message- >>> From: Marek Vasut [mailto:ma...@denx.de] >>> Sent: Thursday, June 09, 2016 7:01 PM >>> To: Sriram Dash ; u-boot@lists.denx.de &g

Re: [U-Boot] [PATCH v3 2/5] usb: xhci: fsl: code cleanup for device tree fixup for fsl usb controllers

2016-06-09 Thread Sriram Dash
>-Original Message- >From: Marek Vasut [mailto:ma...@denx.de] >Sent: Thursday, June 09, 2016 7:01 PM >To: Sriram Dash ; u-boot@lists.denx.de >Cc: york sun ; albert.u.b...@aribaud.net; Rajesh Bhagat > >Subject: Re: [PATCH v3 2/5] usb: xhci: fsl: code cleanup for device

Re: [U-Boot] [PATCH v3 1/5] arm64: fsl-layerscape: add get_svr and IS_SVR_REV helper

2016-06-09 Thread Sriram Dash
>-Original Message- >From: Marek Vasut [mailto:ma...@denx.de] >Sent: Thursday, June 09, 2016 6:58 PM >To: Sriram Dash ; u-boot@lists.denx.de >Cc: york sun ; albert.u.b...@aribaud.net; Rajesh Bhagat > >Subject: Re: [PATCH v3 1/5] arm64: fsl-layerscape: add get_svr a

[U-Boot] [PATCH v3 5/5] usb: xhci: fsl: Add workaround for USB erratum A-008751

2016-06-09 Thread Sriram Dash
This patch is doing the following: 1. Implementing the errata for LS2080. 2. Adding fixup for fdt for LS2080. Signed-off-by: Sriram Dash Signed-off-by: Rajesh Bhagat --- Changes in v3: - Reworked for changes done in errata checking code. - made inline bool erratum_a008751 as int

[U-Boot] [PATCH v3 4/5] armv8/ls2080: Remove workaround for erratum A008751

2016-06-09 Thread Sriram Dash
This errata a008751 is applied on Soc specific file currently.This will be moved to a file where all the errata implementation will take place for usb for fsl. This patch removes the errata workaround from soc specific file for LS2080. Signed-off-by: Sriram Dash Signed-off-by: Rajesh Bhagat

[U-Boot] [PATCH v3 2/5] usb: xhci: fsl: code cleanup for device tree fixup for fsl usb controllers

2016-06-09 Thread Sriram Dash
Performs code cleanup for device tree fixup for fsl usb controllers by making functions to handle these similar errata checking code. Signed-off-by: Rajesh Bhagat Signed-off-by: Sriram Dash --- Changes in v3: - Inverted the condition for has_erratum for better readability - If

[U-Boot] [PATCH v3 3/5] fsl: usb: make errata function common for PPC and ARM

2016-06-09 Thread Sriram Dash
This patch does the following things: 1. Makes the errata checking code common for PPC and ARM 2. Moves all these static inline functions into a dedicated C file Signed-off-by: Sriram Dash Signed-off-by: Rajesh Bhagat --- Changes in v3: - Rework done according to previous patches. Changes

[U-Boot] [PATCH v3 1/5] arm64: fsl-layerscape: add get_svr and IS_SVR_REV helper

2016-06-09 Thread Sriram Dash
Adds get_svr and IS_SVR_REV helpers for ARMv8 platforms, similar to PPC and ARMv7. Signed-off-by: Sriram Dash Signed-off-by: Rajesh Bhagat --- Changes in v1: - Added commit message Changes in v2: - No update arch/arm/cpu/armv8/fsl-layerscape/cpu.c| 7 +++ arch/arm

[U-Boot] [PATCH v3 0/5] Supporting ARM v8 USB errata for FSL

2016-06-09 Thread Sriram Dash
The patch-set does the following : 1. Adds support for ARM for USB Erratum Checking code for implementing the USB Erratum for fsl. 2. Performs code cleanup to reduce redundancy when adding fsl device tree fixup. 3. Implements Erratum A008751 for LS2 platform. Sriram Dash (5): arm64: fsl

Re: [U-Boot] [PATCH v2 1/5] arm64: fsl-layerscape: add get_svr and IS_SVR_REV helper

2016-06-07 Thread Sriram Dash
>-Original Message- >From: Marek Vasut [mailto:ma...@denx.de] >Sent: Monday, June 06, 2016 6:21 PM >To: Sriram Dash ; u-boot@lists.denx.de >Cc: york sun ; albert.u.b...@aribaud.net; Rajesh Bhagat > >Subject: Re: [PATCH v2 1/5] arm64: fsl-layerscape: add get_svr and IS_

Re: [U-Boot] [PATCH v2 5/5] usb: xhci: fsl: Add workaround for USB erratum A-008751

2016-06-07 Thread Sriram Dash
>-Original Message- >From: Marek Vasut [mailto:ma...@denx.de] >Sent: Monday, June 06, 2016 6:15 PM >To: Sriram Dash ; u-boot@lists.denx.de >Cc: york sun ; albert.u.b...@aribaud.net; Rajesh Bhagat > >Subject: Re: [PATCH v2 5/5] usb: xhci: fsl: Add workaround for USB err

Re: [U-Boot] [PATCH v2 5/5] usb: xhci: fsl: Add workaround for USB erratum A-008751

2016-06-05 Thread Sriram Dash
>-Original Message- >From: Marek Vasut [mailto:ma...@denx.de] >Sent: Thursday, June 02, 2016 6:31 PM >To: Sriram Dash ; u-boot@lists.denx.de >Cc: york sun ; albert.u.b...@aribaud.net; Rajesh Bhagat > >Subject: Re: [PATCH v2 5/5] usb: xhci: fsl: Add workaround for U

  1   2   >