[U-Boot] [PATCH] powerpc/t4240: updated RCW and PBI for rev2.0

2014-03-22 Thread shh.xie
From: Shaohui Xie Also, remove workaround of rev1.0. Signed-off-by: Shaohui Xie --- board/freescale/t4qds/t4_pbi.cfg | 17 +++-- board/freescale/t4qds/t4_rcw.cfg | 6 +++--- 2 files changed, 6 insertions(+), 17 deletions(-) diff --git a/board/freescale/t4qds/t4_pbi.cfg b/board/fr

[U-Boot] [PATCH] powerpc/t4240: updated RCW and PBI for rev2.0

2014-03-24 Thread shh.xie
From: Shaohui Xie Also, remove workaround of rev1.0. Signed-off-by: Shaohui Xie --- board/freescale/t4qds/t4_pbi.cfg | 14 -- board/freescale/t4qds/t4_rcw.cfg | 4 ++-- 2 files changed, 2 insertions(+), 16 deletions(-) diff --git a/board/freescale/t4qds/t4_pbi.cfg b/board/freesca

[U-Boot] [PATCH] powerpc/t4240: updated RCW and PBI for rev2.0

2014-03-26 Thread shh.xie
From: Shaohui Xie Also, remove workaround of rev1.0. Signed-off-by: Shaohui Xie --- board/freescale/t4qds/t4_pbi.cfg | 14 -- board/freescale/t4qds/t4_rcw.cfg | 6 +++--- 2 files changed, 3 insertions(+), 17 deletions(-) diff --git a/board/freescale/t4qds/t4_pbi.cfg b/board/frees

[U-Boot] [PATCH] powerpc/T4240QDS/eth: fix for XFI

2014-07-25 Thread shh.xie
From: Shaohui Xie XFI is supported on T4QDS-XFI board, which removed slot3, and four LANEs of serdes2 are routed to a SFP+ cages, which to house fiber cable or direct attach cable(copper), the copper cable is used to emulate the 10GBASE-KR scenario. So, for XFI usage, there are two scenarios, on

[U-Boot] [PATCH 1/2] powerpc/t2080qds: fixup dtb for 10g-kr

2014-07-25 Thread shh.xie
From: Shaohui Xie XFI ports on t2080qds can work with fiber cable and direct attach cable(copper). We use hwconfig to define cable type for XFI, and fixup dtb based on the cable type. For copper cable, set below env in hwconfig: fsl_10gkr_copper:<10g_mac_name> the <10g_mac_name> can be fm1_10g

[U-Boot] [PATCH 2/2] powerpc/t2080qds: fix dtb when runnig 1000BASE-KX protocol

2014-07-25 Thread shh.xie
From: Shaohui Xie 1000BASE-KX(1GKX) uses same SGMII interface but the serdes lane run in 1GKX mode. By default, the lane runs in SGMII mode, when a MAC runs in 1GKX mode, the corresponding lane mode needs to be set accordingly. DTB needs the fixup for kernel to do proper initialization. hwconfig

[U-Boot] [PATCH] powerpc/T4240QDS/eth: some fix for XFI

2014-08-07 Thread shh.xie
From: Shaohui Xie XFI is supported on T4QDS-XFI board, which removed slot3, and four LANEs of serdes2 are routed to a SFP+ cages, which to house fiber cable or direct attach cable(copper), the copper cable is used to emulate the 10GBASE-KR scenario. So, for XFI usage, there are two scenarios, on

[U-Boot] [PATCH][v2] powerpc/T4240QDS/eth: some fix for XFI

2014-08-13 Thread shh.xie
From: Shaohui Xie XFI is supported on T4QDS-XFI board, which removed slot3, and four LANEs of serdes2 are routed to a SFP+ cages, which to house fiber cable or direct attach cable(copper), the copper cable is used to emulate the 10GBASE-KR scenario. So, for XFI usage, there are two scenarios, on

[U-Boot] [PATCH] Fman/mEMAC: mEMAC fix for 10G MAC and PHY

2014-08-13 Thread shh.xie
From: Shaohui Xie 1. use Payload length check disable when enable MAC; 2. add XGMII support for setting MAC interface mode; 3. only enable auto negotiation for Non-XGMII mode; 4. return 0x if clause 22 is used to read 10G phy_id; Signed-off-by: Shaohui Xie Signed-off-by: Roy Zang --- arch

[U-Boot] [PATCH] driver/net/fm/memac_phy: set NEG bit for external MDIOs

2014-08-13 Thread shh.xie
From: Shaohui Xie NEG bit default is '1' for external MDIOs as per FMAN-v3 RM, but on some platforms, e.g. T2080QDS, this bit is '0', which leads to MDIO failure on XAUI PHY, so set this bit definitely to align with the RM. Signed-off-by: Shaohui Xie --- arch/powerpc/include/asm/fsl_memac.h |

[U-Boot] [PATCH] t4240qds: apply some updates

2015-04-27 Thread shh.xie
From: Shaohui Xie 1. board/freescale/t4qds/t4_rcw.cfg 1.8GHz support is requested as default frequency, so update the rcw. 2. remove un-used configs configs/T4160QDS_SPIFLASH_defconfig configs/T4240QDS_SPIFLASH_defconfig SPI boot is not available on T4QDS, so the configs should be removed. 3. b

[U-Boot] [PATCH] powerpc/t4rdb: fix cpld reset altbank

2015-04-29 Thread shh.xie
From: Shaohui Xie cpld reset altbank should always reset to bank4 no matter what current bank is. Signed-off-by: Shaohui Xie --- board/freescale/t4rdb/cpld.c | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/board/freescale/t4rdb/cpld.c b/board/freescale/t4rdb/cpld.c i

[U-Boot] [PATCH 2/2][v2] powerpc/t2080qds: fix for 1000BASE-KX

2014-10-20 Thread shh.xie
From: Shaohui Xie 1000BASE-KX(1G-KX) uses SGMII protocol but the serdes lane runs in 1G-KX mode. By default, the lane runs in SGMII mode, when a MAC uses a lane in 1G-KX mode, corresponding bit in PCCR1 for the lane needs to be set, and needs to fixup dtb accordingly for kernel to do proper initi

[U-Boot] [PATCH] powerpc/B4860: enable PBL tool for B4860

2013-09-21 Thread shh.xie
From: Shaohui Xie Use a default RCW of protocol 0x2A_0x98, and a PBI configure file which uses CPC1 as 512KB SRAM, then PBL tool can be used on B4860 to build a pbl boot image. Signed-off-by: Shaohui Xie --- board/freescale/b4860qds/b4_pbi.cfg | 27 +++ board/freescal

[U-Boot] [PATCH] powerpc/ifc: fix invalid CSn FTIM2.TCH setting

2014-06-26 Thread shh.xie
From: Shaohui Xie On some platforms, CSn FTIM2.TCH is set to zero which is invalid, an invalid hold time makes DUT timing variances, whether it works or not on luck. Signed-off-by: Shaohui Xie --- based on 'next' of git://git.denx.de/u-boot-mpc85xx.git. include/configs/B4860QDS.h | 2 +- in

[U-Boot] [PATCH] powerpc/t4240qds: fix offset of serdes when checking its' reference clock

2014-06-27 Thread shh.xie
From: Shaohui Xie T4240 has 4 serdes, each serdes has 4k memory space, two PLLs. We use PLL1CR0 to check the serdes reference clock. Signed-off-by: Shaohui Xie --- arch/powerpc/include/asm/immap_85xx.h | 6 ++ board/freescale/t4qds/t4240qds.c | 10 ++ 2 files changed, 12 inse

[U-Boot] [PATCH] powerpc/p4080: enable support for PCIe SATA

2013-11-07 Thread shh.xie
From: Shaohui Xie Signed-off-by: Shaohui Xie --- include/configs/P4080DS.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/include/configs/P4080DS.h b/include/configs/P4080DS.h index b0cd7d5..2f89008 100644 --- a/include/configs/P4080DS.h +++ b/include/configs/P4080DS.h @@ -17,6 +17,1

[U-Boot] [PATCH] phy: introduce structure fixed-link

2013-11-14 Thread shh.xie
From: Shaohui Xie fixed-link is used in kernel for PHY-less MAC, so introduce this structure that U-boot can use it to fixup dtb dynamically. Signed-off-by: Shaohui Xie --- include/phy.h | 8 1 file changed, 8 insertions(+) diff --git a/include/phy.h b/include/phy.h index f0f522a..f8

[U-Boot] [PATCH] net/phy: Add Vitesse VSC8514 PHY support

2013-11-20 Thread shh.xie
From: Shaohui Xie The VSC8514 works in QSGMII interface. Its register set and features are similar to VSC8574 which in QSGMII mode. Signed-off-by: Shaohui Xie --- drivers/net/phy/vitesse.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/net/phy/vitesse.c b/drivers/net/

[U-Boot] [PATCH] powerpc/t4240: Add a frequency setting case for fman1

2013-11-27 Thread shh.xie
From: Shaohui Xie A new valid setting case added for fman1, it uses platform frequency. Signed-off-by: Shaohui Xie --- based on patch: http://patchwork.ozlabs.org/patch/294663/ arch/powerpc/cpu/mpc85xx/speed.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/powerpc/cpu/mpc85xx/spe

[U-Boot] [PATCH] powerpc/corenet: CPC1 speculation disable

2013-11-28 Thread shh.xie
From: Dave Liu In PBL RAMBOOT(SPI/SD/NAND boot) mode, CPC1 used as SRAM, should disable CPC1 speculation and keep it till relocation. Otherwise, speculation transactions will go to DDR controller, it will cause problem. Signed-off-by: Dave Liu Signed-off-by: Shaohui Xie --- arch/powerpc/cpu/m

[U-Boot] [PATCH] powerpc/t4240: enable NAND boot support

2013-12-18 Thread shh.xie
From: Shaohui Xie Signed-off-by: Shaohui Xie --- boards.cfg | 1 + 1 file changed, 1 insertion(+) diff --git a/boards.cfg b/boards.cfg index 2128996..302ac56 100644 --- a/boards.cfg +++ b/boards.cfg @@ -966,6 +966,7 @@ Active powerpc mpc85xx- freescale t4qds Acti

[U-Boot] [PATCH] powerpc/b4860/pbl: fix rcw cfg

2013-12-18 Thread shh.xie
From: Shaohui Xie The BOOT_LOC setting in rcw cfg is wrong, set it to Memory complex 1. Signed-off-by: Shaohui Xie --- board/freescale/b4860qds/b4_rcw.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/freescale/b4860qds/b4_rcw.cfg b/board/freescale/b4860qds/b4_rcw.

[U-Boot] [PATCH] powerpc/t4240: updated rcw_cfg to align with default hardware configuration

2013-09-11 Thread shh.xie
From: Shaohui Xie Default configuration has been changed, the most important one is DDR ref_clock which is changed from 66.67MHz to 133.33MHz. so the ratio need to change from 24x to 12x to keep the DDR frequency. There are also some other optimise to align with default configuration. Signed-off

[U-Boot] [PATCH] powerpc/tool/pbl: fix pbl image compiling process

2013-09-11 Thread shh.xie
From: Shaohui Xie Previous process of compiling a PBL boot image is: 1: make 2: make u-boot.pbl for example: make T4240QDS_SDCARD_config make u-boot.pbl Now the process is: 1: make for example: make T4240QDS_SDCARD Also, updated README.pblimage. Signed-off-by: Shaohui Xie --- Makefile

[U-Boot] [PATCH] powerpc/t1040rdb: added a break in switch case

2014-04-10 Thread shh.xie
From: Shaohui Xie There should be a break for case PHY_INTERFACE_MODE_SGMII, otherwise it will fall into case PHY_INTERFACE_MODE_RGMII. Signed-off-by: Shaohui Xie --- board/freescale/t104xrdb/eth.c | 1 + 1 file changed, 1 insertion(+) diff --git a/board/freescale/t104xrdb/eth.c b/board/frees

[U-Boot] [PATCH 2/2] powerpc/T4QDS: add two stage boot of nand/sd

2014-04-20 Thread shh.xie
From: Shaohui Xie Add support of 2 stage NAND/SD boot loader using SPL framework. PBL initialise the internal SRAM and copy SPL, this further initialise DDR using SPD and environment and copy u-boot from NAND/SD to DDR, finally SPL transfer control to u-boot. NOR uses CS1 instead of CS2 when NAND

[U-Boot] [PATCH 1/2] powerpc/t4240: updated RCW and PBI for rev2.0

2014-04-20 Thread shh.xie
From: Shaohui Xie Updated the RCW for rev2.0 which uses new frequency settings as below: Clock Configuration: CPU0:1666.667 MHz, CPU1:1666.667 MHz, CPU2:1666.667 MHz, CPU3:1666.667 MHz, CPU4:1666.667 MHz, CPU5:1666.667 MHz, CPU6:1666.667 MHz, CPU7:1666.667 MHz, CPU8:1666.667 MHz, CPU9:1666.667 M

[U-Boot] [PATCH][v2] powerpc/T4QDS: add two stage boot of nand/sd

2014-04-21 Thread shh.xie
From: Shaohui Xie Add support of 2 stage NAND/SD boot loader using SPL framework. PBL initialise the internal SRAM and copy SPL, this further initialise DDR using SPD and environment and copy u-boot from NAND/SD to DDR, finally SPL transfer control to u-boot. NOR uses CS1 instead of CS2 when NAND

[U-Boot] [PATCH ][v3] powerpc/T4QDS: add two stage boot of nand/sd

2014-04-22 Thread shh.xie
From: Shaohui Xie Add support of 2 stage NAND/SD boot loader using SPL framework. PBL initialise the internal SRAM and copy SPL, this further initialise DDR using SPD and environment and copy u-boot from NAND/SD to DDR, finally SPL transfer control to u-boot. NOR uses CS1 instead of CS2 when NAND

[U-Boot] [PATCH] powerpc/fman/memac: use default MDIO_HOLD value

2014-04-22 Thread shh.xie
From: Shaohui Xie Current driver uses a Maximum value for MDIO_HOLD when doing 10G MDIO access, this is due to an errata A-006260 on T4 rev1.0 which is fixed on rev2.0, so remove the maximum value to use the default value for rev2.0. Signed-off-by: Shaohui Xie --- drivers/net/fm/memac_phy.c |

[U-Boot] [PATCH] powerpc/t4qds: Add alternate serdes protocols to align with A-007186

2014-05-14 Thread shh.xie
From: Shaohui Xie A-007186: SerDes Ring VCO does not maintain lock throughout specified temperature range. Option 1 of the workaround states: For all 1.25/2.5/5 GHz protocols, use LC VCO instead of Ring VCO, this need to use alternate serdes protocols. The alternate option has the same functiona

[U-Boot] [PATCH][v2] powerpc/t4qds: Add alternate serdes protocols to align with A-007186

2014-05-14 Thread shh.xie
From: Shaohui Xie A-007186: SerDes PLL is calibrated at reset. It is possible for jitter to increase and cause the PLL to unlock when the temperature delta from the time the PLL is calibrated exceeds +56C/-66C when using X VDD of 1.35 V or +70C/-80C when using XnVDD of 1.5 V). No issues are seen

[U-Boot] [PATCH][v3] powerpc/t4qds: Add alternate serdes protocols to align with A-007186

2014-05-15 Thread shh.xie
From: Shaohui Xie A-007186: SerDes PLL is calibrated at reset. It is possible for jitter to increase and cause the PLL to unlock when the temperature delta from the time the PLL is calibrated exceeds +56C/-66C when using X VDD of 1.35 V (or +70C/-80C when using XnVDD of 1.5 V). No issues are seen

[U-Boot] [PATCH] powerpc/t4240qds: add support of reading Core voltage

2015-08-25 Thread shh.xie
From: Shaohui Xie A U-boot CMD vdd_read is implemented to read Core voltage. Signed-off-by: Shaohui Xie --- board/freescale/t4qds/t4240qds.c | 30 ++ 1 file changed, 30 insertions(+) diff --git a/board/freescale/t4qds/t4240qds.c b/board/freescale/t4qds/t4240qds.c i

[U-Boot] [PATCH] freescale: fman: make sure phy-handle property is big endian

2015-11-10 Thread shh.xie
From: Shaohui Xie When creating phy-handle property, an unsigned int value is created by fdt_create_phandle, and memcpy is used to get the value, since DTS is big endian, the value cannot be used directly on little endian SoCs, it should be converted by cpu_to_fdt32. Signed-off-by: Shaohui Xie

[U-Boot] [PATCH] armv8: fsl-layerscape: added XFI protocol support for fsl_lsch3

2015-11-10 Thread shh.xie
From: Shaohui Xie This needed to init dpmac. Signed-off-by: Shaohui Xie --- arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch3_serdes.c | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch3_serdes.c b/arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch3_serdes.c

[U-Boot] [PATCH] net: phy: added aquantia PHY AQR405 support

2015-11-10 Thread shh.xie
From: Shaohui Xie The phy can share driver with other aquantia PHYs, so we only added PHY ID. Signed-off-by: Shaohui Xie --- drivers/net/phy/aquantia.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/drivers/net/phy/aquantia.c b/drivers/net/phy/aquantia.c index ef4da4e..f9

[U-Boot] [PATCH] net: fm: disables unused FM1-DTSEC1 MAC node in DTS

2015-12-03 Thread shh.xie
From: Shaohui Xie We don't disable unused FM1-DTSEC1 MAC node in FMAN v2 since its used for MDIO, in FMAN v3, MDIO uses dedicated controller, so we can disable the unused FM1-DTSEC1 MAC node to avoid it's being probed in kernel. Signed-off-by: Shaohui Xie --- drivers/net/fm/init.c | 4 1

[U-Boot] [PATCH][v2] powerpc/t4: update serdes table

2015-07-28 Thread shh.xie
From: Shaohui Xie Serdes Lanes availability on T4160 and T4080 are same, which serdes 2 & 3 support 8 Lanes, but serdes 1 & 4 support only 4 Lanes E/F/G/H, Lanes A/B/C/D are not available, updated the serdes table accordingly with some minor fix. Signed-off-by: Shaohui Xie --- changes in v2: re

[U-Boot] [PATCH] Powerpc: eSDHC: expand a fix to T4160

2015-09-11 Thread shh.xie
From: Shaohui Xie commit b8e5b07225 "Powerpc: eSDHC: Fix mmc read write err in uboot of T4240QDS board", T4160 also needs this fix. Signed-off-by: Shaohui Xie --- drivers/mmc/fsl_esdhc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/fsl_esdhc.c b/drivers/mmc

[U-Boot] [PATCH] armv8: ls2085ardb: enable CONFIG_PHY_AQUANTIA

2015-09-24 Thread shh.xie
From: Shaohui Xie To support on board Aquantia's PHY AQR405. Signed-off-by: Shaohui Xie --- include/configs/ls2085ardb.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/configs/ls2085ardb.h b/include/configs/ls2085ardb.h index c1c1572..ec9297d 100644 --- a/include/configs/ls2085ard

[U-Boot] [PATCH] armv8: fsl-layerscape: fixes lsch2 serdes registers define

2015-12-09 Thread shh.xie
From: Shaohui Xie Fixes lsch2 SerDes registers define according to LS1043A RM Rev D. Signed-off-by: Shaohui Xie --- .../include/asm/arch-fsl-layerscape/immap_lsch2.h | 67 +++--- 1 file changed, 47 insertions(+), 20 deletions(-) diff --git a/arch/arm/include/asm/arch-fsl-laye

[U-Boot] [PATCH][v2] armv8: fsl-layerscape: fixes lsch2 serdes registers define

2015-12-14 Thread shh.xie
From: Shaohui Xie Fixes lsch2 SerDes registers define according to LS1043A RM Rev D. Signed-off-by: Shaohui Xie --- changes in v2: 1. fixes indent. .../include/asm/arch-fsl-layerscape/immap_lsch2.h | 67 +++--- 1 file changed, 47 insertions(+), 20 deletions(-) diff --git a/a

[U-Boot] [PATCH] armv8/ls1043aqds: Add support for >2GB memory

2016-01-04 Thread shh.xie
From: Shaohui Xie This patch also exposes the complete DDR region(s) to Linux. Signed-off-by: Shaohui Xie --- board/freescale/ls1043aqds/ddr.c| 19 --- board/freescale/ls1043aqds/ls1043aqds.c | 10 ++ include/configs/ls1043aqds.h| 2 +- 3 files chan

[U-Boot] [PATCH 1/2] net: phy: introduce a quirk PHY_BROKEN_RESET

2016-01-12 Thread shh.xie
From: Shaohui Xie Current driver always performs a phy soft reset when connecting the phy device, but soft reset is not always supported by a phy device, so introduce a quirk PHY_BROKEN_RESET to let such a phy device to skip soft reset. This commit uses 'flags' of phy device structure to store th

[U-Boot] [PATCH 2/2] net: phy: implements probe for Cortina phy

2016-01-12 Thread shh.xie
From: Shaohui Xie Cortine phy cannot support soft reset, this commit implements probe for Cortina PHY to tell phylib to skip phy soft reset by setting PHY_BROKEN_RESET in flags. Signed-off-by: Shaohui Xie --- drivers/net/phy/cortina.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/

[U-Boot] [PATCH] powerpc/t4240: update serdes table

2015-07-15 Thread shh.xie
From: Shaohui Xie T4160 and T4080 support same serdes options, which serdes 2 & 3 support 8 Lanes, same as T4240, but serdes 1 & 4 support only 4 Lanes, Lanes A, B, C, D are not available, updated the serdes table accordingly with some minor fix. Signed-off-by: Shaohui Xie --- arch/powerpc/cpu

[U-Boot] [PATCH] armv8: ls1043ardb: invert irq pin polarity for AQR105 PHY

2016-04-29 Thread shh.xie
From: Shaohui Xie To use AQR105 PHY's interrupt, we need to invert the IRQ pin polarity by setting relative bit in SCFG_INTPCR register, because AQR105 interrupt is low active but GIC accepts high active. Signed-off-by: Shaohui Xie --- board/freescale/ls1043ardb/ls1043ardb.c | 4 include/

[U-Boot] [PATCH] armv8: ls1043aqds: fix usb PWRFAULT setting

2016-05-30 Thread shh.xie
From: Shaohui Xie SCFG_USBPWRFAULT_DEDICATED instead of SCFG_USBPWRFAULT_SHARED should be used for USB 3 & 2. Signed-off-by: Shaohui Xie --- board/freescale/ls1043aqds/ls1043aqds.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/board/freescale/ls1043aqds/ls1043aqds.c

[U-Boot] [PATCH 1/2] lpuart: add a get_lpuart_clk function

2016-09-27 Thread shh.xie
From: Shaohui Xie It's not always true that LPUART clock is CONFIG_SYS_CLK_FREQ, this patch provides a weak function get_lpuart_clk, so that the clock can be ovreride on a specific board which uses different clock for LPUART. Signed-off-by: Shaohui Xie --- drivers/serial/serial_lpuart.c | 7 ++

[U-Boot] [PATCH 2/2] armv8: ls1046aqds: add lpuart support

2016-09-27 Thread shh.xie
From: Shaohui Xie LPUART0 is used by default, and it's using platform clock, if a different clock is preferred, user can define CONFIG_LPUART_CLK. Signed-off-by: Shaohui Xie --- arch/arm/dts/Makefile | 1 + arch/arm/dts/fsl-ls1046a-qds-lpuart.dts | 16 ++ arch/arm/dt

[U-Boot] [PATCH] armv8: ls2080aqds: fix SGMII repeater settings

2016-10-17 Thread shh.xie
From: Shaohui Xie The current value to check whether the PHY was configured has dependency on MC, it expects MC to start PCS AN, this is not true during boot up, so it should be changed to remove the dependency. The PHY's register space should be restore to default after accessing extended space

[U-Boot] [PATCH] powerpc/P5040DS: enable SATA support

2014-11-04 Thread shh.xie
From: Shaohui Xie The define CONFIG_FSL_SATA_V2 is missing, so SATA is not available in U-boot. Signed-off-by: Shaohui Xie --- include/configs/P5040DS.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/configs/P5040DS.h b/include/configs/P5040DS.h index 371485f..e4a031a 100644 --- a

[U-Boot] [PATCH 1/5] powerpc/b4860qds: add xfi support

2014-11-12 Thread shh.xie
From: Shaohui Xie We need following changes to make xfi work on B4: 1. set cross-point switch VSC3308 to use sfp config when running xfi; 2. add 10G interface check for xfi; 3. set phy address for xfi so the 10G ports can be registered by mdio; Signed-off-by: Shaohui Xie --- board/freescale/b4

[U-Boot] [PATCH 4/5] powerpc/b4860qds: add workaround for XFI

2014-11-12 Thread shh.xie
From: Shaohui Xie XFI does not work stable on current board, it's due to heat sink issue, to make it work stable the board needs additional heat sink, enable two XFI lanes only. Right now we do not have such an erratum for the issue, so use a define CONFIG_SYS_FSL_B4860QDS_XFI_ERR to identify it.

[U-Boot] [PATCH 5/5] B4860QDS: Enable enet port as per fsl_b4860_serdes2 string in hwconfig

2014-11-12 Thread shh.xie
From: Suresh Gupta In B4860QDS board SerDes2 lanes EFGH either go to SFP or AMC riser card slot2 so either DTSEC3/DTSEC4 or TGEC1/TGEC2 should be accessible. This Patch enables DTSEC3/DTSEC4 or TGEC1/TGEC2 on bases of user specified string fsl_b4860_serdes2:sfp_amc=amc or fsl_b4860_serdes2:sfp_am

[U-Boot] [PATCH 3/5] B4860QDS: Enable SFP or AMC on basis of hwconfig string

2014-11-12 Thread shh.xie
From: Suresh Gupta SerDes2 lanes EFGH either go to SFP or AMC riser card slot2. By default AMC will be configured even if no hwconfig is specified. To enable XFI via SFP use the below hwconfig: fsl_b4860_serdes2:sfp_amc=sfp Signed-off-by: Suresh Gupta Signed-off-by: Poonam Aggrwal Sig

[U-Boot] [PATCH 2/5] powerpc/b4860qds: dtb fixup for xfi

2014-11-12 Thread shh.xie
From: Shaohui Xie Since xfi has no phy, we delete the property "phy-handle" and use a "fixed-link" property for a xfi port. Signed-off-by: Shaohui Xie --- board/freescale/b4860qds/eth_b4860qds.c | 38 + 1 file changed, 38 insertions(+) diff --git a/board/freesc

[U-Boot] [PATCH] powerpc/hydra: fix judging condition of RGMII selection

2014-11-24 Thread shh.xie
From: Minghuan Lian BRDCFG1_EMI1_SEL_MASK has been changed to 0x78, which contains selection bits and connected status bit. So the Corresponding mux value of RGMII is changed to BRDCFG1_EMI1_SEL_RGMII | BRDCFG1_EMI1_EN. Signed-off-by: Minghuan Lian Signed-off-by: Shaohui Xie --- board/freesca

[U-Boot] [PATCH] phylib: add support for aquantia PHYs

2014-12-30 Thread shh.xie
From: Shaohui Xie This patch supports AQ1202, AQ2104, AQR105 PHY. Signed-off-by: Shaohui Xie --- drivers/net/phy/Makefile | 1 + drivers/net/phy/aquantia.c | 156 + drivers/net/phy/phy.c | 3 + include/phy.h | 1 + 4 files c

[U-Boot] [PATCH] ahci: fix compile warning under 64 bit mode

2015-01-25 Thread shh.xie
From: Shaohui Xie When compiling under 64 bit mode, there are warnings as below: In file included from drivers/block/ahci.c:16:0: drivers/block/ahci.c: In function 'ahci_reset': ./arch/arm/include/asm/io.h:72:28: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] #d

[U-Boot] [PATCH] armv8: ls1043aqds: make sure fixed-link property is big endian

2016-03-25 Thread shh.xie
From: Shaohui Xie When setting fixed-link property to DTS, the values should be converted with using cpu_to_fdt32 so that to have correct value on little endian Soc. Signed-off-by: Shaohui Xie --- board/freescale/ls1043aqds/eth.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(

[U-Boot] [PATCH] armv8: ls2080ardb: invert irq pins polarity for AQR405 PHY

2016-01-26 Thread shh.xie
From: Shaohui Xie To use AQR405 PHY's interrupt, we need to invert the relative IRQ pins polarity by setting IRQCR register, because AQR405 interrupt is low active but GIC accepts high active. Signed-off-by: Shaohui Xie --- board/freescale/ls2080ardb/ls2080ardb.c | 4 include/configs/ls20

[U-Boot] [PATCH][v2] armv8: ls2080ardb: invert irq pins polarity for AQR405 PHY

2016-01-28 Thread shh.xie
From: Shaohui Xie To use AQR405 PHY's interrupt, we need to invert the relative IRQ pins polarity by setting IRQCR register, because AQR405 interrupt is low active but GIC accepts high active. Signed-off-by: Shaohui Xie --- changes in v2: 1. move Interrupt register offset define to immap_lsch3.

[U-Boot] [PATCH 1/2][v2] net: phy: introduce a quirk PHY_FLAG_BROKEN_RESET

2016-01-28 Thread shh.xie
From: Shaohui Xie Current driver always performs a phy soft reset when connecting the phy device, but soft reset is not always supported by a phy device, so introduce a quirk PHY_FLAG_BROKEN_RESET to let such a phy device to skip soft reset. This commit uses 'flags' of phy device structure to sto

[U-Boot] [PATCH 2/2][v2] net: phy: implements probe for Cortina phy

2016-01-28 Thread shh.xie
From: Shaohui Xie Cortina phy cannot support soft reset, this commit implements probe for Cortina PHY to tell phylib to skip phy soft reset by setting PHY_FLAG_BROKEN_RESET in flags. Signed-off-by: Shaohui Xie Acked-by: Joe Hershberger --- changes in v2: 1. use PHY_FLAG_BROKEN_RESET instead of

[U-Boot] [PATCH 2/2][v2] armv8: ls1046aqds: add lpuart support

2016-10-28 Thread shh.xie
From: Shaohui Xie LPUART0 is used by default, and it's using platform clock. Signed-off-by: Shaohui Xie --- changes in v2: 1. dropped CONFIG_LPUART_CLK. 2. uses CONFIG_SYS_FSL_DDR4 in defconfig. arch/arm/dts/Makefile | 1 + arch/arm/dts/fsl-ls1046a-qds-lpuart.dts | 16 +

[U-Boot] [PATCH 1/2][v2] lpuart: add a get_lpuart_clk function

2016-10-28 Thread shh.xie
From: Shaohui Xie It's not always true that LPUART clock is CONFIG_SYS_CLK_FREQ, this patch provides a weak function get_lpuart_clk, so that the clock can be ovreride on a specific board which uses different clock for LPUART. Signed-off-by: Shaohui Xie --- changes in v2: none. drivers/serial/

[U-Boot] [PATCH] net: fman: fix 2.5G SGMII settings

2016-11-14 Thread shh.xie
From: Shaohui Xie The settings for 2.5G SGMII are wrong, which the 2.5G case is missed in set_if_mode(), and the serdes PCS configuration are wrong, this patch uses the correct settings took from Linux. Signed-off-by: Shaohui Xie --- drivers/net/fm/eth.c | 32 ++--

[U-Boot] [PATCH] [resend] net: fman: fix 2.5G SGMII settings

2016-11-14 Thread shh.xie
From: Shaohui Xie The settings for 2.5G SGMII are wrong, which the 2.5G case is missed in set_if_mode(), and the serdes PCS configuration are wrong, this patch uses the correct settings took from Linux. Signed-off-by: Shaohui Xie --- not sure what was wrong, the patch did not show in patchwork,

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

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