Re: [U-Boot] [PATCH 2/3] pmic:pfuze implement pmic_mode_init

2015-01-15 Thread Peng Fan
Hi Stefano, On 1/15/2015 5:00 PM, Przemyslaw Marczak wrote: Hello Peg, On 01/08/2015 02:00 PM, Peng Fan wrote: This patch is to implement pmic_mode_init function, and add prototype in header file. This function is to set switching mode for pmic buck regulators to improve system efficiency

[U-Boot] [PATCH v3 0/3] pmic:pfuze support buck regulator mode switch

2015-01-16 Thread Peng Fan
board is not included in this patch set, since power and i2c interface are not implemented for it. Future patch will cover this to add PAD setting, power_init_board and etc. Peng Fan (3): pmic:pfuz100 add switch mode and more registers pmic:pfuze implement pmic_mode_init imx:mx6 set normal APS

[U-Boot] [PATCH v3 1/3] pmic:pfuz100 add switch mode and more registers

2015-01-16 Thread Peng Fan
Add more pfuze register offset. And switch mode definition. Signed-off-by: Peng Fan peng@freescale.com --- Changes v3: none Changes v2: none include/power/pfuze100_pmic.h | 53 +++ 1 file changed, 53 insertions(+) diff --git a/include/power

[U-Boot] [PATCH v3 2/3] pmic:pfuze implement pmic_mode_init

2015-01-16 Thread Peng Fan
conditions. Signed-off-by: Peng Fan peng@freescale.com --- Changes v3: delete the new feature, it is fine to use the original v1 patch version Changes v2: implement new feature to configure one regulator board/freescale/common/pfuze.c | 36 board

[U-Boot] [PATCH v3 3/3] imx:mx6 set normal APS and standby PFM mode

2015-01-16 Thread Peng Fan
To normal mode, use APS switching mode. To standy mode, use PFM switching mode. Signed-off-by: Peng Fan peng@freescale.com --- Changes v3: Following Fabio's comments, correct return value Changes v2: none board/freescale/mx6qsabreauto/mx6qsabreauto.c | 6 ++ board/freescale

[U-Boot] [PATCH v4 0/3] pmic:pfuze support buck regulator mode switch

2015-01-16 Thread Peng Fan
. mx6slevk board is not included in this patch set, since power and i2c interface are not implemented for it. Future patch will cover this to add PAD setting, power_init_board and etc. Peng Fan (3): pmic:pfuz100 add switch mode and more registers pmic:pfuze implement pmic_mode_init imx:mx6 set

[U-Boot] [PATCH v4 3/3] imx:mx6 set normal APS and standby PFM mode

2015-01-16 Thread Peng Fan
To normal mode, use APS switching mode. To standy mode, use PFM switching mode. Signed-off-by: Peng Fan peng@freescale.com --- Changes v4: none Changes v3: Following Fabio's comments, correct return value Changes v2: none board/freescale/mx6qsabreauto/mx6qsabreauto.c | 6 ++ board

[U-Boot] [PATCH v4 1/3] pmic:pfuz100 add switch mode and more registers

2015-01-16 Thread Peng Fan
Add more pfuze register offset. And switch mode definition. Signed-off-by: Peng Fan peng@freescale.com --- Changes v4: none Changes v3: none Changes v2: none include/power/pfuze100_pmic.h | 53 +++ 1 file changed, 53 insertions(+) diff --git

[U-Boot] [PATCH v4 2/3] pmic:pfuze implement pmic_mode_init

2015-01-16 Thread Peng Fan
conditions. Signed-off-by: Peng Fan peng@freescale.com --- Changes v4: Take Fabio's comments, fix return value using -EINVAL when error. Changes v3: delete the new feature, it is fine to use the original v1 patch version Changes v2: implement new feature to configure one regulator board

[U-Boot] [RFC PATCH] dm:spi:fsl_qspi add DM support

2015-01-16 Thread Peng Fan
. fsl_qspi_get_seqid is included to get seqid, but not hardcoded in original qspi_op_s. Signed-off-by: Peng Fan peng@freescale.com --- drivers/spi/fsl_qspi.c | 420 +++-- drivers/spi/fsl_qspi.h | 1 + 2 files changed, 405 insertions(+), 16 deletions

[U-Boot] [PATCH] imx6: disable bandgap self-bias circuit after boot

2015-01-14 Thread Peng Fan
. Signed-off-by: Peng Fan peng@freescale.com Signed-off-by: Ranjani Vaidyanathan ranjani.vaidyanat...@freescale.com --- arch/arm/cpu/armv7/mx6/soc.c | 24 arch/arm/include/asm/arch-mx6/crm_regs.h | 2 ++ 2 files changed, 26 insertions(+) diff --git a/arch/arm/cpu

Re: [U-Boot] [PATCH 1/3] ARM: imx fix register base address for i.MX6SX

2015-01-14 Thread Peng Fan
Hi, Please ignore this patch 1/3, since imx: mx6: Fixed AIPS3 base address issue from Ye.Li already fix this. Patch 2/3 and patch 3/3 are fine. Please review. On 1/15/2015 2:22 PM, Peng Fan wrote: Signed-off-by: Peng Fan peng@freescale.com --- arch/arm/include/asm/arch-mx6/imx-regs.h

[U-Boot] [PATCH 3/3] ARM: imx6 Add WDOG3 for i.MX6SX

2015-01-14 Thread Peng Fan
There are three wdogs for i.MX 6SoloX. Add wdog3 support in function imx_set_wdog_powerdown. Signed-off-by: Peng Fan peng@freescale.com --- arch/arm/cpu/armv7/mx6/soc.c | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/cpu/armv7/mx6/soc.c b/arch/arm/cpu/armv7/mx6/soc.c index

[U-Boot] [PATCH 1/3] ARM: imx fix register base address for i.MX6SX

2015-01-14 Thread Peng Fan
Signed-off-by: Peng Fan peng@freescale.com --- arch/arm/include/asm/arch-mx6/imx-regs.h | 50 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/arch/arm/include/asm/arch-mx6/imx-regs.h b/arch/arm/include/asm/arch-mx6/imx-regs.h index 5314298

[U-Boot] [PATCH 2/3] ARM: imx6: disable bandgap self-bias after boot

2015-01-14 Thread Peng Fan
. Signed-off-by: Peng Fan peng@freescale.com Signed-off-by: Ranjani Vaidyanathan ranjani.vaidyanat...@freescale.com --- arch/arm/cpu/armv7/mx6/soc.c | 24 arch/arm/include/asm/arch-mx6/crm_regs.h | 2 ++ 2 files changed, 26 insertions(+) diff --git a/arch/arm/cpu

Re: [U-Boot] [PATCH] imx6: disable bandgap self-bias circuit after boot

2015-01-14 Thread Peng Fan
Hi, Please ignore this patch. Wrong patch version. On 1/15/2015 11:11 AM, Peng Fan wrote: The self-bias circuit is used by the bandgap during startup. Once the bandgap has stabilized, the self-bias circuit should be disabled for best noise performance of analog blocks. Also this bit should

[U-Boot] [PATCH v2 2/3] pmic:pfuze implement regulator mode set

2015-01-15 Thread Peng Fan
: In this mode, the regulator moves automatically between pulse skipping mode and PWM mode depending on load conditions. Signed-off-by: Peng Fan peng@freescale.com --- Changes v2: implement one function mode for one regulator. board/freescale/common/pfuze.c | 43

[U-Boot] [PATCH v2 0/3] pmic:pfuze support buck regulator mode switch

2015-01-15 Thread Peng Fan
Peng Fan (3): pmic:pfuz100 add switch mode and more registers pmic:pfuze implement pmic_mode_init imx:mx6 set normal APS and standby PFM mode board/freescale/common/pfuze.c| 43 ++ board/freescale/common/pfuze.h| 2 + board/freescale

[U-Boot] [PATCH v2 3/3] imx:mx6 set normal APS and standby PFM mode

2015-01-15 Thread Peng Fan
To normal mode, use APS switching mode. To standy mode, use PFM switching mode. Signed-off-by: Peng Fan peng@freescale.com --- Changes: none board/freescale/mx6qsabreauto/mx6qsabreauto.c | 6 ++ board/freescale/mx6sabresd/mx6sabresd.c | 6 +- board/freescale/mx6sxsabresd

[U-Boot] [PATCH v2 1/3] pmic:pfuz100 add switch mode and more registers

2015-01-15 Thread Peng Fan
Add more pfuze register offset. And switch mode definition. Signed-off-by: Peng Fan peng@freescale.com --- Changes v2: none include/power/pfuze100_pmic.h | 53 +++ 1 file changed, 53 insertions(+) diff --git a/include/power/pfuze100_pmic.h b

Re: [U-Boot] [PATCH 2/3] pmic:pfuze implement pmic_mode_init

2015-01-15 Thread Peng Fan
Hi, Przemyslaw On 1/15/2015 5:00 PM, Przemyslaw Marczak wrote: Hello Peg, On 01/08/2015 02:00 PM, Peng Fan wrote: This patch is to implement pmic_mode_init function, and add prototype in header file. This function is to set switching mode for pmic buck regulators to improve system efficiency

Re: [U-Boot] [PATCH v3 4/4] dm:gpio:mxc add DT support

2015-01-22 Thread Peng Fan
Hi, Igor Reply below. On 1/22/2015 4:38 PM, Igor Grinberg wrote: Hi Peng, On 01/22/15 03:06, Peng Fan wrote: Hi Igor, Just kindly remind, did you miss this one? Since you ack the other patches in this patch set. Nope, I did not miss it. I just haven't looked at it yet... On 1/21/2015 7

Re: [U-Boot] [PATCH v2] dm:gpio:mxc add DT support

2015-01-20 Thread Peng Fan
Hi, Igor On 1/20/2015 10:39 PM, Igor Grinberg wrote: On 01/20/15 09:15, Peng Fan wrote: This patch add DT support for mxc gpio driver. Include a bank_index entry in platdata. This can avoid using `plat - mxc_plat` to calculate bank number. Also this can simplify code. Although, I don't

[U-Boot] [PATCH v3 0/4] dm:gpio:mxc add DT support

2015-01-21 Thread Peng Fan
simplify DT support. To no DT, bank_index is static initilized; to DT, bank_index is get from device's req_seq. Peng Fan (4): dm: introduce dev_get_addr interface dm: add dev_get_addr prototype dm:gpio:mxc add a bank_index entry in platdata dm:gpio:mxc add DT support drivers/core

[U-Boot] [PATCH v3 4/4] dm:gpio:mxc add DT support

2015-01-21 Thread Peng Fan
board_early_init_f to board_init + define CONFIG_DM ,CONFIG_DM_GPIO and CONFIG_OF_CONTROL + Add device tree file and do related configuration in `make ARCH=arm menuconfig` These will be done in future patches by step. Signed-off-by: Peng Fan peng@freescale.com --- drivers/gpio/mxc_gpio.c | 69

[U-Boot] [PATCH v3 3/4] dm:gpio:mxc add a bank_index entry in platdata

2015-01-21 Thread Peng Fan
Add a new entry in platdata structure and intialize bank_index in mxc_plat array. This new entry can avoid using `plat - mxc_plat` by using `plat-bank_index`. Signed-off-by: Peng Fan peng@freescale.com --- drivers/gpio/mxc_gpio.c | 17 + 1 file changed, 9 insertions(+), 8

Re: [U-Boot] [PATCH v2] dm:gpio:mxc add DT support

2015-01-21 Thread Peng Fan
Hi Igor, On 1/21/2015 5:18 PM, Igor Grinberg wrote: [...] @@ -295,12 +282,77 @@ static int mxc_gpio_probe(struct udevice *dev) return 0; } +#ifdef CONFIG_OF_CONTROL +static struct gpio_regs *mxc_get_gpio_addr(struct udevice *device) +{ +fdt_addr_t addr; +addr =

[U-Boot] [PATCH v3 1/4] dm: introduce dev_get_addr interface

2015-01-21 Thread Peng Fan
Abstracting dev_get_addr can improve drivers that want to get device's address. Signed-off-by: Peng Fan peng@freescale.com --- drivers/core/device.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/drivers/core/device.c b/drivers/core/device.c index 963b16f..0ba5c76

[U-Boot] [PATCH v3 2/4] dm: add dev_get_addr prototype

2015-01-21 Thread Peng Fan
Signed-off-by: Peng Fan peng@freescale.com --- include/dm/device.h | 9 + 1 file changed, 9 insertions(+) diff --git a/include/dm/device.h b/include/dm/device.h index 13598a1..ee00c4d 100644 --- a/include/dm/device.h +++ b/include/dm/device.h @@ -322,4 +322,13 @@ int

[U-Boot] [PATCH v2 2/3] imx:mx6slevk add pmic and i2c configuration

2015-02-11 Thread Peng Fan
Add pmic and i2c configuration in board header file. Signed-off-by: Peng Fan peng@freescale.com --- include/configs/mx6slevk.h | 12 1 file changed, 12 insertions(+) diff --git a/include/configs/mx6slevk.h b/include/configs/mx6slevk.h index c567d9d..1221418 100644 --- a/include

[U-Boot] [PATCH v2 0/3] imx: mx6slevk add pmic support

2015-02-11 Thread Peng Fan
in previous imx:mx6 add ldo bypass patch, with only one small change is return value. Changing return -EIO to return ret. Peng Fan (3): imx:mx6sl add I2C pad settings imx:mx6slevk add pmic and i2c configuration imx:mx6slevk implement power init board arch/arm/include/asm/arch-mx6/mx6sl_pins.h | 5

[U-Boot] [PATCH v2 1/3] imx:mx6sl add I2C pad settings

2015-02-11 Thread Peng Fan
Add I2C1 pad settings for i.MX6 Sololite. Signed-off-by: Peng Fan peng@freescale.com --- arch/arm/include/asm/arch-mx6/mx6sl_pins.h | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/include/asm/arch-mx6/mx6sl_pins.h b/arch/arm/include/asm/arch-mx6/mx6sl_pins.h index 9ded3d8

[U-Boot] [PATCH v2 3/3] imx:mx6slevk implement power init board

2015-02-11 Thread Peng Fan
DRAM: 1 GiB PMIC: PFUZE100 ID=0x10 MMC: FSL_SDHC: 0, FSL_SDHC: 1, FSL_SDHC: 2 Signed-off-by: Peng Fan peng@freescale.com --- board/freescale/mx6slevk/mx6slevk.c | 47 + 1 file changed, 47 insertions(+) diff --git a/board/freescale/mx6slevk/mx6slevk.c b

Re: [U-Boot] [PATCH v5 3/3] imx:mx6 set normal APS and standby PFM mode

2015-02-10 Thread Peng Fan
Hi, Stefano On 1/30/2015 1:48 AM, Stefano Babic wrote: On 27/01/2015 03:14, Peng Fan wrote: To normal mode, use APS switching mode. To standy mode, use PFM switching mode. Signed-off-by: Peng Fan peng@freescale.com Acked-by: Przemyslaw Marczak p.marc...@samsung.com --- Applied to u-boot

Re: [U-Boot] [PATCH 06/12] pmic:pfuze add macro for setting voltage

2015-02-10 Thread Peng Fan
Hi, Stefano On 2/10/2015 7:54 PM, Stefano Babic wrote: On 09/01/2015 09:59, Peng Fan wrote: #define PFUZE100_SW1ABC_SETP(x) ((x - 3000) / 250) This macro is for configuring SW1A/B/C Output Voltage easily. Signed-off-by: Peng Fan peng@freescale.com --- include/power/pfuze100_pmic.h | 2

[U-Boot] [PATCH] ARM: imx6 Add WDOG3 for i.MX6SX

2015-02-10 Thread Peng Fan
There are three wdogs for i.MX 6SoloX. Add wdog3 support in function imx_set_wdog_powerdown. Signed-off-by: Peng Fan peng@freescale.com --- arch/arm/cpu/armv7/mx6/soc.c | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/cpu/armv7/mx6/soc.c b/arch/arm/cpu/armv7/mx6/soc.c index

Re: [U-Boot] [PATCH 04/12] imx:mx6 update mxc_ccm_reg

2015-02-10 Thread Peng Fan
Hi, Stefano On 2/10/2015 7:03 PM, Stefano Babic wrote: Hi Peng, On 09/01/2015 09:59, Peng Fan wrote: Add more register for structure mxc_ccm_reg. Signed-off-by: Peng Fan peng@freescale.com --- arch/arm/include/asm/arch-mx6/crm_regs.h | 87 1 file

Re: [U-Boot] [PATCH v5 2/3] pmic:pfuze implement pmic_mode_init

2015-02-10 Thread Peng Fan
Hi, Stefano On 1/30/2015 1:48 AM, Stefano Babic wrote: On 27/01/2015 03:14, Peng Fan wrote: This patch is to implement pmic_mode_init function, and add prototype in header file. This function is to set switching mode for pmic buck regulators to improve system efficiency. Mode: OFF

[U-Boot] [PATCH v3 0/3] imx: mx6slevk add pmic support

2015-02-11 Thread Peng Fan
in previous imx:mx6 add ldo bypass patch, with only one small change is return value. Changes v3: Take Fabio's suggestion, for patch 3/3, remove ret variable, and directly return pfuze_mode_init(xxx) Changes v2: Changing return -EIO to return ret. Peng Fan (3): imx:mx6sl add I2c pad settings

[U-Boot] [PATCH v3 2/3] imx:mx6slevk add pmic and i2c configuration

2015-02-11 Thread Peng Fan
Add pmic and i2c configuration in board header file. Signed-off-by: Peng Fan peng@freescale.com --- include/configs/mx6slevk.h | 12 1 file changed, 12 insertions(+) diff --git a/include/configs/mx6slevk.h b/include/configs/mx6slevk.h index c567d9d..1221418 100644 --- a/include

[U-Boot] [PATCH v3 3/3] imx:mx6slevk implement power init board

2015-02-11 Thread Peng Fan
PMIC: PFUZE100 ID=0x10 MMC: FSL_SDHC: 0, FSL_SDHC: 1, FSL_SDHC: 2 Signed-off-by: Peng Fan peng@freescale.com --- board/freescale/mx6slevk/mx6slevk.c | 42 + 1 file changed, 42 insertions(+) diff --git a/board/freescale/mx6slevk/mx6slevk.c b/board

[U-Boot] [PATCH v3 1/3] imx:mx6sl add I2c pad settings

2015-02-11 Thread Peng Fan
A few pad settings are I2C1 Signed-off-by: Peng Fan peng@freescale.com --- arch/arm/include/asm/arch-mx6/mx6sl_pins.h | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/include/asm/arch-mx6/mx6sl_pins.h b/arch/arm/include/asm/arch-mx6/mx6sl_pins.h index 9ded3d8..0475203

Re: [U-Boot] [PATCH v2 3/3] imx:mx6slevk implement power init board

2015-02-11 Thread Peng Fan
Hi, Fabio On 2/11/2015 10:13 PM, Fabio Estevam wrote: On Wed, Feb 11, 2015 at 12:09 PM, Peng Fan peng@freescale.com wrote: +int power_init_board(void) +{ + struct pmic *p; + unsigned int ret; + + p = pfuze_common_init(I2C_PMIC); + if (!p) + return

Re: [U-Boot] [PATCH] ARM: HYP/non-sec: relocation before enable secondary cores

2015-02-12 Thread Peng Fan
Hi, Albert and Tom On 2/4/2015 7:02 PM, Marc Zyngier wrote: On 04/02/15 10:15, Peng Fan wrote: If CONFIG_ARMV7_PSCI is not defined and CONFIG_ARMV7_SECURE_BASE is defined, smp_kicl_all_cpus may enable secondary cores and runs into secure_ram_addr( _smp_pen), before code is relocated to secure

[U-Boot] [PATCH v5 3/3] imx:mx6 set normal APS and standby PFM mode

2015-01-26 Thread Peng Fan
To normal mode, use APS switching mode. To standy mode, use PFM switching mode. Signed-off-by: Peng Fan peng@freescale.com Acked-by: Przemyslaw Marczak p.marc...@samsung.com --- Changes v5: Add Acked-by: Przemyslaw Marczak p.marc...@samsung.com Changes v4: none Changes v3: Following

[U-Boot] [PATCH v5 1/3] pmic:pfuz100 add switch mode and more registers

2015-01-26 Thread Peng Fan
Add more pfuze register offset. And switch mode definition. Add a macro SWITCH_SIZE Signed-off-by: Peng Fan peng@freescale.com Acked-by: Przemyslaw Marczak p.marc...@samsung.com Reviewed-by: Stefano Babic sba...@denx.de --- Changes v5: add Acked-by: Przemyslaw Marczak p.marc...@samsung.com

[U-Boot] [PATCH v5 2/3] pmic:pfuze implement pmic_mode_init

2015-01-26 Thread Peng Fan
conditions. Signed-off-by: Peng Fan peng@freescale.com Acked-by: Przemyslaw Marczak p.marc...@samsung.com --- Changes v5: Add Acked-by: Przemyslaw Marczak p.marc...@samsung.com replace the constant 7 using macro SWITCH_SIZE which defined in header file. Include errno.h to avoid compile error

[U-Boot] [PATCH v5 0/3] pmic:pfuze support buck regulator mode switch

2015-01-26 Thread Peng Fan
://patchwork.ozlabs.org/patch/426963/ Added Acked-by: Przemyslaw Marczak p.marc...@samsung.com in this patch set. Added Reviewed-by: Stefano Babic sba...@denx.de for patch 1/3. There is no major changes for this patch version. Only defined a macro SWITCH_SIZE to replace the constant in patch 2/3. Peng Fan (3

[U-Boot] [PATCH] ARM: armv7 fix spelling of SCTRL

2015-01-29 Thread Peng Fan
SCTLR is the abbreviation of System Control Register, so we should use SCTLR but not SCTRL. Signed-off-by: Peng Fan peng@freescale.com --- arch/arm/cpu/armv7/cpu.c | 2 +- arch/arm/cpu/armv7/start.S | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/cpu

Re: [U-Boot] [RFC PATCH] dm:spi:fsl_qspi add DM support

2015-01-24 Thread Peng Fan
Hi, Simon On 1/23/2015 6:29 AM, Simon Glass wrote: Hi Peng, On 16 January 2015 at 22:59, Peng Fan peng@freescale.com wrote: Hi Simon ,Jagan This patch is based on git://git.denx.de/u-boot-spi.git master branch, since some fsl_qspi's new feature is still in this git repo and have not been

Re: [U-Boot] [PATCH v4 2/3] pmic:pfuze implement pmic_mode_init

2015-01-24 Thread Peng Fan
Hi, Stefano On 1/22/2015 6:30 PM, Stefano Babic wrote: On 16/01/2015 17:05, Peng Fan wrote: This patch is to implement pmic_mode_init function, and add prototype in header file. This function is to set switching mode for pmic buck regulators to improve system efficiency. Mode: OFF

Re: [U-Boot] [PATCH v3 4/4] dm:gpio:mxc add DT support

2015-01-24 Thread Peng Fan
Hi Simon, On 1/23/2015 5:26 AM, Simon Glass wrote: Hi Peng, On 21 January 2015 at 04:09, Peng Fan peng@freescale.com wrote: This patch add DT support for mxc gpio driver. There are one place using CONFIG_OF_CONTROL macro. 1. The U_BOOT_DEVICES and mxc_plat array are complied out. To DT

[U-Boot] [PATCH] i2c:mxc fix array size of i2c_data

2015-01-05 Thread Peng Fan
-off-by: Peng Fan peng@freescale.com --- drivers/i2c/mxc_i2c.c | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/drivers/i2c/mxc_i2c.c b/drivers/i2c/mxc_i2c.c index 021b2fe..fc5ee35 100644 --- a/drivers/i2c/mxc_i2c.c +++ b/drivers/i2c/mxc_i2c.c

[U-Boot] [PATCH 06/12] pmic:pfuze add macro for setting voltage

2015-01-09 Thread Peng Fan
#define PFUZE100_SW1ABC_SETP(x) ((x - 3000) / 250) This macro is for configuring SW1A/B/C Output Voltage easily. Signed-off-by: Peng Fan peng@freescale.com --- include/power/pfuze100_pmic.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/power/pfuze100_pmic.h b/include/power

[U-Boot] [PATCH 07/12] imx:mx6 Support LDO bypass

2015-01-09 Thread Peng Fan
trigger WDOG_B pin to reset pmic in ldo-bypass mode. So add set_wdog_reset to do this work. Also add related function prototype in sys_proto.h Signed-off-by: Peng Fan peng@freescale.com Signed-off-by: Robin Gong b38...@freescale.com Signed-off-by: Nitin Garg nitin.g...@freescale.com --- arch

[U-Boot] [PATCH 10/12] imx:mx6sxsabresd add ldo mode set function

2015-01-09 Thread Peng Fan
Add ldo_mode_set function. If ldo_bypass is true, it will adjust voltage. If not, do nothing. This function is board specific, so implement it in board file. Signed-off-by: Peng Fan peng@freescale.com Signed-off-by: Robin Gong b38...@freescale.com --- board/freescale/mx6sxsabresd

[U-Boot] [PATCH 00/12] imx:mx6 add ldo bypass

2015-01-09 Thread Peng Fan
/12 is to implement ldo_mode_set in different boards' file. patch 12/12 is to invoke ldo_mode_set in arch_preboot_os. Future work will integrate Device tree for i.MX6 U-Boot. Then we can move it to power_init_board. More detailed info can see each patch's commit log. Peng Fan (12): imx:mx6slevk

[U-Boot] [PATCH 02/12] imx:mx6sl add I2c pad settings

2015-01-09 Thread Peng Fan
This few pad settings are for pmic i2c. Signed-off-by: Peng Fan peng@freescale.com --- arch/arm/include/asm/arch-mx6/mx6sl_pins.h | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/include/asm/arch-mx6/mx6sl_pins.h b/arch/arm/include/asm/arch-mx6/mx6sl_pins.h index 9ded3d8

[U-Boot] [PATCH 05/12] imx:mx6 update fuse_bank0_regs

2015-01-09 Thread Peng Fan
Update fuse_bank0_regs structure according reference mannual. Signed-off-by: Peng Fan peng@freescale.com --- arch/arm/include/asm/arch-mx6/imx-regs.h | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/arch/arm/include/asm/arch-mx6/imx-regs.h b/arch/arm/include

[U-Boot] [PATCH 03/12] imx:mx6slevk implement power init board

2015-01-09 Thread Peng Fan
DRAM: 1 GiB PMIC: PFUZE100 ID=0x10 MMC: FSL_SDHC: 0, FSL_SDHC: 1, FSL_SDHC: 2 Signed-off-by: Peng Fan peng@freescale.com --- board/freescale/mx6slevk/mx6slevk.c | 47 + 1 file changed, 47 insertions(+) diff --git a/board/freescale/mx6slevk/mx6slevk.c b

[U-Boot] [PATCH 11/12] imx:mx6qsabreauto add ldo mode init

2015-01-09 Thread Peng Fan
If runs at 1.2GHz, enable ldo, and adjust voltage. Otherwise, do nothing Signed-off-by: Peng Fan peng@freescale.com Signed-off-by: Robin Gong b38...@freescale.com --- board/freescale/mx6qsabreauto/mx6qsabreauto.c | 31 +++ include/configs/mx6qsabreauto.h

[U-Boot] [PATCH 12/12] ARM:imx call ldo_mode_set in arch_preboot_os

2015-01-09 Thread Peng Fan
Current i.MX6 U-Boot does not support device tree. We check ldo-bypass from dtb file which is loaded when running `run loadfdt`. Future work is needed to integrate device tree in uboot. And move related function invoke in power_init_board. Signed-off-by: Peng Fan peng@freescale.com Signed

[U-Boot] [PATCH 08/12] imx:mx6slevk add ldo mode set function

2015-01-09 Thread Peng Fan
Add ldo_mode_set function. If ldo_bypass is true, it will adjust voltage. If not, do nothing. This function is board specific, so implement it in board file. Signed-off-by: Peng Fan peng@freescale.com Signed-off-by: Robin Gong b38...@freescale.com --- board/freescale/mx6slevk/mx6slevk.c

[U-Boot] [PATCH 09/12] imx:mx6sabresd Add ldo_mode_set function

2015-01-09 Thread Peng Fan
If runs at 1.2GHz, enable ldo, and adjust voltage. If ldo_bypass is true, it will adjust voltage. If not, do nothing. This function is board specific, so implement it in board file. Signed-off-by: Peng Fan peng@freescale.com Signed-off-by: Robin Gong b38...@freescale.com Signed-off

[U-Boot] [PATCH 01/12] imx:mx6slevk add pmic and i2c configuration

2015-01-09 Thread Peng Fan
Add pmic and i2c configuration in board header file. Signed-off-by: Peng Fan peng@freescale.com --- include/configs/mx6slevk.h | 12 1 file changed, 12 insertions(+) diff --git a/include/configs/mx6slevk.h b/include/configs/mx6slevk.h index e6c4130..9fd7619 100644 --- a/include

[U-Boot] [Question] DM SPI FLASH

2015-01-06 Thread Peng Fan
Hi Simon, I am hacking DTB and DM SPI FLASH support for i.MX 6SoloX. I have a question about `sf probe`. In original way, `sf probe` or `sf probe 0:0` can detect qspi flashes on my platform. But after using DM, I should use `sf probe 35536896:0` to probe flashes. 35536896 is the address of

[U-Boot] [PATCH 04/12] imx:mx6 update mxc_ccm_reg

2015-01-09 Thread Peng Fan
Add more register for structure mxc_ccm_reg. Signed-off-by: Peng Fan peng@freescale.com --- arch/arm/include/asm/arch-mx6/crm_regs.h | 87 1 file changed, 87 insertions(+) diff --git a/arch/arm/include/asm/arch-mx6/crm_regs.h b/arch/arm/include/asm/arch-mx6

[U-Boot] [PATCH v4 3/3] dm:gpio:mxc add DT support

2015-02-09 Thread Peng Fan
board_early_init_f to board_init + define CONFIG_DM ,CONFIG_DM_GPIO and CONFIG_OF_CONTROL + Add device tree file and do related configuration in `make ARCH=arm menuconfig` These will be done in future patches by step. Signed-off-by: Peng Fan peng@freescale.com --- drivers/gpio/mxc_gpio.c | 81

[U-Boot] [PATCH v4 0/3] dm:gpio:mxc add DT support

2015-02-09 Thread Peng Fan
req_seq. Peng Fan (3): dm: introduce dev_get_addr interface dm:gpio:mxc add a bank_index entry in platdata dm:gpio:mxc add DT support drivers/core/device.c | 12 +++ drivers/gpio/mxc_gpio.c | 89 +++-- include/dm/device.h | 10 ++ 3 files

[U-Boot] [PATCH v4 2/3] dm:gpio:mxc add a bank_index entry in platdata

2015-02-09 Thread Peng Fan
Add a new entry in platdata structure and intialize bank_index in mxc_plat array. This new entry can avoid using `plat - mxc_plat` by using `plat-bank_index`. Signed-off-by: Peng Fan peng@freescale.com Acked-by: Igor Grinberg grinb...@compulab.co.il --- drivers/gpio/mxc_gpio.c | 17

[U-Boot] [PATCH v4 1/3] dm: introduce dev_get_addr interface

2015-02-09 Thread Peng Fan
Abstracting dev_get_addr can improve drivers that want to get device's address. Signed-off-by: Peng Fan peng@freescale.com Acked-by: Igor Grinberg grinb...@compulab.co.il --- drivers/core/device.c | 12 include/dm/device.h | 10 ++ 2 files changed, 22 insertions

Re: [U-Boot] [PATCH 4/4] imx: mx6sxsabreauto: Add support for mx6sx SABREAUTO board

2015-02-11 Thread Peng Fan
Hi, On 2/11/2015 5:43 PM, Li Ye-B37916 wrote: Hi, On 2/10/2015 6:51 PM, Stefano Babic wrote: Hi, On 12/01/2015 09:46, Ye.Li wrote: Initial version for mx6sx SABREAUTO board support with features: PMIC, QSPI, NAND flash, SD/MMC, USB, Ethernet, I2C, IO Expander. Signed-off-by: Ye.Li

[U-Boot] [PATCH 1/2] spi:fsl-quadspi support bank register read write

2015-01-04 Thread Peng Fan
exception when access EAR or bank register. This is because upper framework passes a 1 bytes pointer to qspi_op_write, however qspi_op_write treat it as an int pointer. This patch fixes this for accessing EAR or bank register. Signed-off-by: Peng Fan peng@freescale.com --- drivers/spi/fsl_qspi.c | 160

[U-Boot] [PATCH 2/2] mx6sxsabresd: support qspi flash bigger than 16MB

2015-01-04 Thread Peng Fan
-by: Peng Fan peng@freescale.com --- include/configs/mx6sxsabresd.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/configs/mx6sxsabresd.h b/include/configs/mx6sxsabresd.h index 469d250..b40dc19 100644 --- a/include/configs/mx6sxsabresd.h +++ b/include/configs/mx6sxsabresd.h @@ -240,10

Re: [U-Boot] [PATCH 1/2] qspi:fsl implement AHB read

2015-01-08 Thread Peng Fan
On 1/8/2015 7:21 PM, Jagan Teki wrote: On 8 January 2015 at 15:48, Peng Fan peng@freescale.com wrote: Hi, Jagan On 1/8/2015 2:20 PM, Jagan Teki wrote: On 8 January 2015 at 08:10, Peng Fan peng@freescale.com wrote: The QSPI controller in i.MX 6SoloX and Vybrid supports reading data

[U-Boot] [PATCH 3/3] imx:mx6 set normal APS and standby PFM mode

2015-01-08 Thread Peng Fan
To normal mode, use APS switching mode. To standy mode, use PFM switching mode. Signed-off-by: Peng Fan peng@freescale.com --- board/freescale/mx6qsabreauto/mx6qsabreauto.c | 5 + board/freescale/mx6sabresd/mx6sabresd.c | 6 +- board/freescale/mx6sxsabresd/mx6sxsabresd.c | 6

[U-Boot] [PATCH 1/3] pmic:pfuz100 add switch mode and more registers

2015-01-08 Thread Peng Fan
Add more pfuze register offset. And switch mode definition. Signed-off-by: Peng Fan peng@freescale.com --- include/power/pfuze100_pmic.h | 53 +++ 1 file changed, 53 insertions(+) diff --git a/include/power/pfuze100_pmic.h b/include/power

[U-Boot] [PATCH 0/3] pmic:pfuze support buck regulator mode switch

2015-01-08 Thread Peng Fan
. patch 3/3 is to add related mode init function in board code. mx6slevk board is not included in this patch set, since power and i2c interface are not implemented for it. Future patch will cover this to add PAD setting, power_init_board and etc. Peng Fan (3): pmic:pfuz100 add switch mode and more

[U-Boot] [PATCH 2/3] pmic:pfuze implement pmic_mode_init

2015-01-08 Thread Peng Fan
conditions. Signed-off-by: Peng Fan peng@freescale.com --- board/freescale/common/pfuze.c | 36 board/freescale/common/pfuze.h | 1 + 2 files changed, 37 insertions(+) diff --git a/board/freescale/common/pfuze.c b/board/freescale/common/pfuze.c index

[U-Boot] [PATCH 3/5] i2c: imx: Optimize the i2c device recovery solution

2015-01-08 Thread Peng Fan
and STOP signal after 8 dummy clock, and pmic can release SDA line after the recovery. Test case catch 375 times of i2c hang, and all are recovered. Signed-off-by: Peng Fan peng@freescale.com Signed-off-by: Fugang Duan b38...@freescale.com --- arch/arm/imx-common/i2c-mxv7.c | 27

Re: [U-Boot] [PATCH 1/2] qspi:fsl implement AHB read

2015-01-08 Thread Peng Fan
Hi, Jagan On 1/8/2015 2:20 PM, Jagan Teki wrote: On 8 January 2015 at 08:10, Peng Fan peng@freescale.com wrote: The QSPI controller in i.MX 6SoloX and Vybrid supports reading data using IP register and AHB bus. The original driver only supports reading data from IP interface. The IC team

[U-Boot] [PATCH 0/2] qspi:fsl support AHB read

2015-01-07 Thread Peng Fan
This patch set is to support AHB read in qspi driver and add related configuration in board configuration file. Detailed log info is in patch commit log. Peng Fan (2): qspi:fsl implement AHB read imx:mx6sxsabresd support qspi AHB read drivers/spi/fsl_qspi.c | 137

[U-Boot] [PATCH 2/2] imx:mx6sxsabresd support qspi AHB read

2015-01-07 Thread Peng Fan
is not supported in driver, now. In my side, using AHB and Quad read can achieve about 16MB/s. Anyway, I have plan to reimplement the driver using DTB and DM, then make the code cleaner and more feature can be added. Signed-off-by: Peng Fan peng@freescale.com --- include/configs/mx6sxsabresd.h | 3

[U-Boot] [PATCH 1/2] qspi:fsl implement AHB read

2015-01-07 Thread Peng Fan
. Signed-off-by: Peng Fan peng@freescale.com --- drivers/spi/fsl_qspi.c | 137 + drivers/spi/fsl_qspi.h | 15 ++ 2 files changed, 142 insertions(+), 10 deletions(-) diff --git a/drivers/spi/fsl_qspi.c b/drivers/spi/fsl_qspi.c index ad4f4ce

Re: [U-Boot] [PATCH] mmc: fsl_esdhc fix register offset

2015-03-14 Thread Peng Fan
Hi, On 3/11/2015 9:00 PM, Fabio Estevam wrote: On Tue, Mar 10, 2015 at 4:35 AM, Peng Fan peng@freescale.com wrote: Commit f022d36e8a4517b2a9d25ff2d75bd2459d0c68b1 introduces error register offset. Change the char reserved3[59] to char reserved3[56]. Signed-off-by: Peng Fan peng

[U-Boot] [PATCH] imx: mx6sx fix pad property macro definition

2015-03-14 Thread Peng Fan
(50 MHz) 1 0 | 100MHZ — Medium (100 MHz) 1 1 | 200MHZ — Maximum (200 MHz) Signed-off-by: Peng Fan peng@freescale.com --- arch/arm/include/asm/imx-common/iomux-v3.h | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/include/asm/imx-common/iomux-v3.h b/arch/arm/include/asm/imx

[U-Boot] [PATCH] mmc: fix OCR Polling

2015-03-19 Thread Peng Fan
CMD_SEND:1 ARG 0x4030 MMC_RSP_R3,4 0x0096850A -- Failed CMD1 MMC init failed Using this patch, this issue is fixed, emmc can be detected correctly. Signed-off-by: Peng Fan peng@freescale.com --- drivers/mmc/mmc.c | 13

[U-Boot] [PATCH] mtd: spi: check return value of spi_setup_slave

2015-03-19 Thread Peng Fan
: e59ff018 Flags: nZCv IRQs off FIQs off Mode SVC_32 Resetting CPU ... After this fix: = sf probe 0:2 FSL_QSPI: Not a valid cs ! Failed to initialize SPI flash at 0:2 No data abort using this patch. Signed-off-by: Peng Fan peng@freescale.com --- drivers/mtd/spi/sf_probe.c | 4 1 file

Re: [U-Boot] [PATCH] mmc: fix OCR Polling

2015-03-21 Thread Peng Fan
Hi, Andrew On 3/20/2015 3:19 PM, Andrew Gabbasov wrote: Hi Peng, From: Peng.Fan at freescale.com (Peng Fan) Date: Thu, 19 Mar 2015 16:22:46 +0800 Subject: [U-Boot] [PATCH] mmc: fix OCR Polling If in mmc_send_op_cond, OCR_BUSY is set in CMD1's response, then state is transfered to Ready state

Re: [U-Boot] [PATCH] mmc: fsl_esdhc fix register offset

2015-03-10 Thread Peng Fan
Hi, Marek On 3/10/2015 9:45 PM, Marek Vasut wrote: On Tuesday, March 10, 2015 at 08:35:46 AM, Peng Fan wrote: Commit f022d36e8a4517b2a9d25ff2d75bd2459d0c68b1 introduces error register offset. Change the char reserved3[59] to char reserved3[56]. Signed-off-by: Peng Fan peng@freescale.com

Re: [U-Boot] [PATCH] mmc: fsl_esdhc fix register offset

2015-03-10 Thread Peng Fan
Hi, Marek On 3/11/2015 10:03 AM, Marek Vasut wrote: On Wednesday, March 11, 2015 at 01:58:37 AM, Peng Fan wrote: Hi, Marek Hi! On 3/10/2015 9:45 PM, Marek Vasut wrote: On Tuesday, March 10, 2015 at 08:35:46 AM, Peng Fan wrote: Commit f022d36e8a4517b2a9d25ff2d75bd2459d0c68b1 introduces

[U-Boot] [PATCH 1/2] imx:mx6dlsabresd fix error detecting thermal

2015-03-10 Thread Peng Fan
-rc2-00146-g48b6e30-dirty (Mar 09 2015 - 13:04:36) CPU: Freescale i.MX6DL rev1.1 at 792 MHz CPU: Temperature 44 C Signed-off-by: Peng Fan peng@freescale.com --- configs/mx6dlsabresd_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/mx6dlsabresd_defconfig b/configs

[U-Boot] [PATCH 2/2] imx:mx6slevk support reading temperature

2015-03-10 Thread Peng Fan
This patch is to support reading temperature for mx6slevk board. Signed-off-by: Peng Fan peng@freescale.com --- configs/mx6slevk_defconfig| 4 configs/mx6slevk_spinor_defconfig | 4 include/configs/mx6slevk.h| 7 +++ 3 files changed, 15 insertions(+) diff --git

[U-Boot] [PATCH] mmc: fsl_esdhc fix register offset

2015-03-10 Thread Peng Fan
Commit f022d36e8a4517b2a9d25ff2d75bd2459d0c68b1 introduces error register offset. Change the char reserved3[59] to char reserved3[56]. Signed-off-by: Peng Fan peng@freescale.com --- drivers/mmc/fsl_esdhc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc

Re: [U-Boot] [PATCH 1/2 v1] sf: probe: Add support Atmel AT45DB series devices special commands

2015-03-25 Thread Peng Fan
Hi Haikun, On 3/25/2015 8:35 PM, Haikun Wang wrote: From: Haikun Wang haikun.w...@freescale.com Atmel AT45DB series devices commands is different from common spi flash commands. This patch add support for AT45DB special commands. Add a flag AT45DB_CMD to control whether use those commands.

Re: [U-Boot] [PATCH 2/2 v1] sf: Update AT45DB021D flash chip parameters

2015-03-25 Thread Peng Fan
Hi Haikun, On 3/25/2015 8:36 PM, Haikun Wang wrote: From: Haikun Wang haikun.w...@freescale.com AT45DB021D flash size is 1024*page_size, page_size is 256bytes or 264bytes. In current params_table its size is 64*1024*8, recorrect it. Add AT45DB_CMD flag for AT45DB021D. Signed-off-by: Haikun

Re: [U-Boot] [PATCH 1/2 v1] sf: probe: Add support Atmel AT45DB series devices special commands

2015-03-26 Thread Peng Fan
On 3/26/2015 6:50 PM, Wang Haikun-B53464 wrote: On 3/26/2015 11:05 AM, Fan Peng-B51431 wrote: Hi Haikun, On 3/26/2015 10:39 AM, Wang Haikun-B53464 wrote: On 3/25/2015 10:10 PM, Fan Peng-B51431 wrote: Hi Haikun, On 3/25/2015 8:35 PM, Haikun Wang wrote: From: Haikun Wang

Re: [U-Boot] [PATCH v2] dm: spi: Convert Freescale QSPI driver to driver model

2015-04-01 Thread Peng Fan
Hi Haikun, On 4/1/2015 11:10 AM, Haikun Wang wrote: Move the Freescale QSPI driver over to driver model. Signed-off-by: Haikun Wang haikun.w...@freescale.com Signed-off-by: Peng Fan peng@freescale.com --- Changes in v2: - Fix build fail on mx6sxsabresd_spl issue - Add configure regmap

[U-Boot] [PATCH] imx:mx6 remove duplicated includes

2015-03-04 Thread Peng Fan
There is no need to include asm/bootm.h twice, so remove one. Signed-off-by: Peng Fan peng@freescale.com --- arch/arm/cpu/armv7/mx6/soc.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/cpu/armv7/mx6/soc.c b/arch/arm/cpu/armv7/mx6/soc.c index ef02972..b354f70 100644 --- a/arch

Re: [U-Boot] [PATCH 1/2 v1] sf: probe: Add support Atmel AT45DB series devices special commands

2015-03-25 Thread Peng Fan
Hi Haikun, On 3/26/2015 10:39 AM, Wang Haikun-B53464 wrote: On 3/25/2015 10:10 PM, Fan Peng-B51431 wrote: Hi Haikun, On 3/25/2015 8:35 PM, Haikun Wang wrote: From: Haikun Wang haikun.w...@freescale.com Atmel AT45DB series devices commands is different from common spi flash commands. This

<    1   2   3   4   5   6   7   8   9   10   >