[U-Boot] [PATCH v2] arm: at91: clock: Add the generated clock support

2015-10-25 Thread Wenyou Yang
Some peripherals may need a second clock source that may be different from the system clock. This second clock is the generated clock (GCK) and is managed by the PMC via PMC_PCR. For simplicity, the clock source of the GCK is fixed to PLLA_CLK. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.

[U-Boot] [PATCH v3] mmc: atmel: Add atmel sdhci support

2015-10-25 Thread Wenyou Yang
specification. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- Changes in v3: 1./ return -ENODEV instead of -1, when failing to get proper clock. 2./ add free host instance when failing to get proper clock. Changes in v2: - According to Bo Shen's comments, 1./ change the

[U-Boot] [PATCH v3] arm: atmel: Add SAMA5D2 Xplained board

2015-10-27 Thread Wenyou Yang
The board supports following features: - Boot media support: SD card/e.MMC/SPI flash, - Support LCD display (optional, disabled by default), - Support ethernet, - Support USB mass storage. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- The patch is based on the following patche

[U-Boot] [PATCH v2] arm: atmel: Add SAMA5D2 Xplained board

2015-10-26 Thread Wenyou Yang
The board supports following features: - Boot media support: SD card/e.MMC/SPI flash, - Support LCD display (optional, disabled by default), - Support ethernet, - Support USB mass storage. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- The patch is based on the following patche

[U-Boot] [PATCH v4] arm: atmel: Add SAMA5D2 Xplained board

2015-10-27 Thread Wenyou Yang
The board supports following features: - Boot media support: SD card/e.MMC/SPI flash, - Support LCD display (optional, disabled by default), - Support ethernet, - Support USB mass storage. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- The patch is based on the following patche

[U-Boot] [PATCH v4] mmc: atmel: Add atmel sdhci support

2015-10-27 Thread Wenyou Yang
specification. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- Changes in v4: 1./ remove unneeded initial value NULL of host. 2./ use calloc() to zero-initialize the buffer, instead of malloc(). 3./ remove unnecessary convert type before host->ioaddr. Changes in v3: 1./ retur

[U-Boot] [PATCH v5] arm: atmel: Add SAMA5D2 Xplained board

2015-10-28 Thread Wenyou Yang
The board supports following features: - Boot media support: SD card/e.MMC/SPI flash, - Support LCD display (optional, disabled by default), - Support ethernet, - Support USB mass storage. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- The patch is based on the following patche

[U-Boot] [PATCH v2] gpio: atmel: Add the PIO4 driver support

2015-11-01 Thread Wenyou Yang
The PIO4 is introduced from SAMA5D2, as a new version for Atmel PIO controller. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- Changes in v2: 1./ update the macro definitions according to the latest datasheet. 2./ change the return value to -ENODEV. 3./ add check to port_bas

[U-Boot] [PATCH v5] mmc: atmel: Add atmel sdhci support

2015-11-01 Thread Wenyou Yang
specification. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- Changes in v5: 1./ fix erroreous invocation of calloc(). Changes in v4: 1./ remove unneeded initial value NULL of host. 2./ use calloc() to zero-initialize the buffer, instead of malloc(). 3./ remove unnecessary conver

[U-Boot] [PATCH v2 1/5] arm: at91/spl: matrix: move matrix init to separate file

2015-11-05 Thread Wenyou Yang
To make the matrix initialization code sharing with other SoCs, move it from SAMA5D4 particular file, mach-at91/armv7/sama5d4_devices.c to a separate file, mach-at91/matrix.c Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- Changes in v2: None arch/arm/mach-at91/Ma

[U-Boot] [PATCH v2 0/5] arm: at91/spl: make matrix and saic redirect sharing with others

2015-11-05 Thread Wenyou Yang
This patches is to make matix initialization and saic redirect code sharing with other SoCs, move them to seperate files from SAMA5D4 particular file. Changes in v2: 1./ split the version 1 [PATCH 2/3] into three patches for more legible. Wenyou Yang (5): arm: at91/spl: matrix: move

[U-Boot] [PATCH v2 2/5] arm: at91/spl: matrix: remove matrix write protection code

2015-11-05 Thread Wenyou Yang
On processor reset, the matrix write protection is disabled, so no need to disable/enable write protection when writing the matrix registers. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- Changes in v2: None arch/arm/mach-at91/matrix.c |8 1 file changed, 8 del

[U-Boot] [PATCH v2 4/5] arm: at91/spl: matrix: use matrix slave id macros

2015-11-05 Thread Wenyou Yang
To make matrix initialization code sharing with others, use the matrix slave id macros, instead of hard-coding. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- Changes in v2: None arch/arm/mach-at91/include/mach/sama5d4.h | 25 + arch/arm/mach-at91/ma

[U-Boot] [PATCH v2 3/5] arm: at91/spl: matrix: remove security peripheral select code

2015-11-05 Thread Wenyou Yang
Remove the security peripheral select code, keep the default value in these registers, that is, the peripheral address space is configured as "Secured" access, it is suitable for SPL. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- Changes in v2: None arch/arm/mach-at91

[U-Boot] [PATCH v2 5/5] arm: at91/spl: atmel_sfr: move saic redirect to separate file

2015-11-05 Thread Wenyou Yang
-#endif diff --git a/arch/arm/mach-at91/atmel_sfr.c b/arch/arm/mach-at91/atmel_sfr.c new file mode 100644 index 000..2bccb84 --- /dev/null +++ b/arch/arm/mach-at91/atmel_sfr.c @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2015 Atmel Corporation + * Wenyou Yang <wenyou.y...@atmel.com

[U-Boot] [PATCH v3] gpio: atmel: Add the PIO4 driver support

2015-11-03 Thread Wenyou Yang
The PIO4 is introduced from SAMA5D2, as a new version for Atmel PIO controller. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- Changes in v3: 1./ add return to atmel_pio4_set_pio_output() to avoid compilation warning. Changes in v2: 1./ update the macro definitions acc

[U-Boot] [PATCH 2/3] arm: at91/spl: matrix: improve implementation of matrix

2015-11-03 Thread Wenyou Yang
To make matrix initialization code sharing with others, use the matrix slave id macros, instead of hard-coding. Remove the write protection mode code, it is unneeded for writing registers. Remove the security peripheral selecting code, it is unneeded for SPL use-case. Signed-off-by: Wenyou Yang

[U-Boot] [PATCH 0/3] arm: at91/spl: make matrix and saic redirect sharing with others

2015-11-03 Thread Wenyou Yang
This patches is to make matix initialization and saic redirect code sharing with other SoCs, move them to seperate files from SAMA5D4 particular file. Wenyou Yang (3): arm: at91/spl: matrix: move matrix init to separate file arm: at91/spl: matrix: improve implementation of matrix arm: at91

[U-Boot] [PATCH 1/3] arm: at91/spl: matrix: move matrix init to separate file

2015-11-03 Thread Wenyou Yang
To make the matrix initialization code sharing with other SoCs, move it from SAMA5D4 particular file, mach-at91/armv7/sama5d4_devices.c to a separate file, mach-at91/matrix.c Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- arch/arm/mach-at91/Makefile|2 +- ar

[U-Boot] [PATCH 3/3] arm: at91: spl/atmel_sfr: move saic redirect to separate file

2015-11-03 Thread Wenyou Yang
00644 index 000..2bccb84 --- /dev/null +++ b/arch/arm/mach-at91/atmel_sfr.c @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2015 Atmel Corporation + * Wenyou Yang <wenyou.y...@atmel.com> + * + * SPDX-License-Identifier:GPL-2.0+ + */ + +#include +#in

[U-Boot] [PATCH 1/3] arm: at91/spl: mpddrc: add struct atmel_mpddrc_config

2015-11-03 Thread Wenyou Yang
Add struct atmel_mpddrc_config to accommodate the mpddrc register configurations, not using the mpddrc register map structure, struct atmel_mpddrc, in order to increase readability and reduce run-time memory use. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- arch/arm/mach-at91/i

[U-Boot] [PATCH 2/3] arm: at91/spl: mpddrc: add mpddrc DDR3-SDRAM initialization

2015-11-03 Thread Wenyou Yang
The implementation conforms to DDR3-SRAM/DDR3L-SDRAM initialization section described in the SAMA5D2 datasheet. Add registers and definitions of mpddrc controller, which is used to support DDR3 devices. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- arch/arm/mach-at91/includ

[U-Boot] [PATCH 3/3] arm: at91/spl: mpddrc: use IP version to check configuration

2015-11-03 Thread Wenyou Yang
To remove the unnecessary #ifdef-endif, use the mpddrc IP version to check whether or not the interleaved decoding type is supported. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- arch/arm/mach-at91/mpddrc.c | 12 1 file changed, 8 insertions(+), 4 deletions(-)

[U-Boot] [PATCH 0/3] arm: at91/spl: add DDR3-SDRAM initialization support

2015-11-03 Thread Wenyou Yang
This patches is to add the DDR3-SDRAM initialzation support, the implementation conforms to DDR3-SRAM/DDR3L-SDRAM initialization section described in the SAMA5D2 datasheet. Wenyou Yang (3): arm: at91/spl: mpddrc: add struct atmel_mpddrc_config arm: at91/spl: mpddrc: add mpddrc DDR3-SDRAM

[U-Boot] [PATCH v3] arm: at91: clock: Add the generated clock support

2015-10-29 Thread Wenyou Yang
Some peripherals may need a second clock source that may be different from the system clock. This second clock is the generated clock (GCK) and is managed by the PMC via PMC_PCR. For simplicity, the clock source of the GCK is fixed to PLLA_CLK. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.

[U-Boot] [PATCH v6] arm: atmel: Add SAMA5D2 Xplained board

2015-10-29 Thread Wenyou Yang
The board supports following features: - Boot media support: SD card/e.MMC/SPI flash, - Support LCD display (optional, disabled by default), - Support ethernet, - Support USB mass storage. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- The patch is based on the following patche

[U-Boot] [PATCH] gpio: atmel: Add the PIO4 driver support

2015-09-08 Thread Wenyou Yang
The PIO4 is introduced from SAMA5D2, as a new version for Atmel PIO controller. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- arch/arm/mach-at91/include/mach/atmel_pio4.h | 48 + drivers/gpio/Kconfig | 11 + drivers/gpio/Ma

[U-Boot] [PATCH] arm: at91: Change the Chip ID registers' addresses

2015-09-08 Thread Wenyou Yang
Provide the specific addresses for the Chip ID and Chip ID Extension registers, instead of the offset, which make it use on other chips. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- arch/arm/mach-at91/armv7/cpu.c |7 --- arch/arm/mach-at91/include/mach/at91

[U-Boot] [PATCH] arm: at91: clock: Add the generated clock support

2015-09-08 Thread Wenyou Yang
Some peripherals may need a second clock source that may be different from the system clock. This second clock is the generated clock (GCK) and is managed by the PMC via PMC_PCR. For simplicity, the source of the GCK is fixed to PLLA_CLK. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.

[U-Boot] [PATCH] mmc: sdhci: Fix the SD clock stop sequence

2015-09-16 Thread Wenyou Yang
in the Presen State register, before stopping the SD clock. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- drivers/mmc/sdhci.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/sdhci.c b/drivers/mmc/sdhci.c index d89e302..f02db4e 100644 --- a/drive

[U-Boot] [PATCH] mmc: atmel: Add support fo atmel sdhci

2015-09-16 Thread Wenyou Yang
Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- arch/arm/mach-at91/include/mach/atmel_sdhci.h | 13 + drivers/mmc/Makefile |1 + drivers/mmc/atmel_sdhci.c | 35 + 3 files changed, 49 insertions(+)

[U-Boot] [PATCH v2] mmc: sdhci: Fix the SD clock stop sequence

2015-09-22 Thread Wenyou Yang
in the Presen State register, before stopping the SD clock. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- Changes in v2: - Add timeout to wait for the cmd & data inhibit bit drivers/mmc/sdhci.c | 20 ++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git

[U-Boot] [PATCH] arm: atmel: Add SAMA5D2 Xplained board

2015-09-22 Thread Wenyou Yang
The board supports following features: - Boot media support: SD card/e.MMC/SPI flash, - Support LCD display (optional, disabled by default), - Support ethernet, - Support USB mass storage. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- The patch is based on the following patche

[U-Boot] [PATCH v2] mmc: atmel: Add atmel sdhci support

2015-09-22 Thread Wenyou Yang
specification. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- Changes in v2: - According to Bo Shen's comments, 1./ change the macro ATMEL_SDHC_MIN_FRQ -> ATMEL_SDHC_MIN_FREQ. 2./ change the return value to -ENOMEM and print log for malloc failure. 3./ add the failed retur

[U-Boot] [PATCH v2 0/4] ARM: at91: add UTMI PLL handle functions

2015-12-09 Thread Wenyou Yang
. Wenyou Yang (4): ARM: at91: clock: add UTMI PLL enable/disable function ARM: at91: armv7: clean up UTMI PLL handle code drivers: usb: atmel: clean up the UTMI PLL code board: atmel: siemens: clean up UTMI PLL code arch/arm/mach-at91/armv7/sama5d2_devices.c |5 +-- arch/arm/mach-at91

[U-Boot] [PATCH v2 4/4] board: atmel: siemens: clean up UTMI PLL code

2015-12-09 Thread Wenyou Yang
Due to introducing the new UTMI PLL clock handle functions, use the functions to reduce the duplicated code. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- Changes in v2: None board/siemens/corvus/board.c |4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a

[U-Boot] [PATCH v2 3/4] drivers: usb: atmel: clean up the UTMI PLL code

2015-12-09 Thread Wenyou Yang
Due to introducing the new UTMI PLL clock handle functions, use these function to reduce the duplicated code. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- Changes in v2: - remain asm/io.h include. drivers/usb/host/ehci-atmel.c | 38 -- d

[U-Boot] [PATCH v2 2/4] ARM: at91: armv7: clean up UTMI PLL handle code

2015-12-09 Thread Wenyou Yang
Due to introducing the UTMI PLL enable function, use this function to reduce the duplicated code. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- Changes in v2: None arch/arm/mach-at91/armv7/sama5d2_devices.c |5 + arch/arm/mach-at91/armv7/sama5d3_devices.c |5 +

[U-Boot] [PATCH v2 1/4] ARM: at91: clock: add UTMI PLL enable/disable function

2015-12-09 Thread Wenyou Yang
To avoid the duplicated code, add the UTMI PLL handle functions, and add PMC_USB init function too. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- Changes in v2: None arch/arm/mach-at91/clock.c| 48 + arch/arm/mach-at91/include/mach

[U-Boot] [PATCH v2 5/5] drivers: at91: clean up peripheral clock code

2015-12-08 Thread Wenyou Yang
Due to introducing the new peripheral clock handle functions, use these functions to reduce the duplicated code. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- Changes in v2: None drivers/net/at91_emac.c |9 - drivers/usb/host/ehci-atmel.c |8 drive

[U-Boot] [PATCH v2 4/5] board: atmel: clean up peripheral clock code

2015-12-08 Thread Wenyou Yang
Due to introducing the new peripheral clock handle functions, use these functions to reduce duplicated code. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- Changes in v2: - fix checkpatch warning. board/atmel/at91rm9200ek/at91rm9200ek.c |1 - board/atmel/at91rm9200ek

[U-Boot] [PATCH v2 3/5] ARM: cpu: at91: clean up peripheral clock code

2015-12-08 Thread Wenyou Yang
Due to introducing the new peripheral clock handle functions, use these functions to clean up the duplicated code. Meanwhile, remove unneeded header file include, at91_pmc.h. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- Changes in v2: None arch/arm/mach-at91/a

[U-Boot] [PATCH v2 1/3] ARM: at91: clock: add PMC_PLLICPR init function

2015-12-08 Thread Wenyou Yang
To avoid the duplicated code, add the PMC_PLLICPR init function. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- Changes in v2: - move at91_pllicpr_init() definition to the common file, clock.c. - fix checkpatch errors. arch/arm/mach-at91/clock.c |7 +++

[U-Boot] [PATCH v2 3/3] board: atmel: clean up the PMC_PLLICPR init code

2015-12-08 Thread Wenyou Yang
Due to introducing the PMC_PLLICPR init function, use this function to clean up the code. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- Changes in v2: None board/atmel/sama5d3_xplained/sama5d3_xplained.c |4 +--- board/atmel/sama5d3xek/sama5d3xek.c |4 +---

[U-Boot] [PATCH v2 0/3] ARM: at91: add PMC_PLLICPR init function

2015-12-08 Thread Wenyou Yang
handle functions [PATCH 0/3] ARM: at91: add PLLB handle functions Changes in v2: - move at91_pllicpr_init() definition to the common file, clock.c. - fix checkpatch errors. Wenyou Yang (3): ARM: at91: clock: add PMC_PLLICPR init function ARM: at91: clean up the PMC_PLLICPR init code

[U-Boot] [PATCH v2 2/3] ARM: at91: clean up the PMC_PLLICPR init code

2015-12-08 Thread Wenyou Yang
Due to introducing the PMC_PLLICPR init function, use this function to clean up the code. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- Changes in v2: None arch/arm/mach-at91/spl_at91.c |5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/arch/arm/mac

[U-Boot] [PATCH v2 0/5] ARM: at91: improve peripheral and system clock handle functions

2015-12-08 Thread Wenyou Yang
To reduce the duplicated code, rework the peripheral's and system's clock handle functions, use these functions to replace the clock handle code. Changes in v2: - fix checkpatch warning. Wenyou Yang (5): ARM: at91: asm/at91_pmc.h: fix trival register offset ARM: at91: clock: add a new file

[U-Boot] [PATCH v2 1/5] ARM: at91: asm/at91_pmc.h: fix trival register offset

2015-12-08 Thread Wenyou Yang
Remove unnecessary #ifdef CPU_HAS_PCR. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- Changes in v2: None arch/arm/mach-at91/include/mach/at91_pmc.h |8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/arch/arm/mach-at91/include/mach/at91_pmc.h b/ar

[U-Boot] [PATCH v2 2/5] ARM: at91: clock: add a new file to handle clock

2015-12-08 Thread Wenyou Yang
To reduce the duplicated code, add a new file to accommodate the peripheral's and system's clock handle code, shared with the SoCs with different ARM core. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- Changes in v2: None arch/arm/mach-at91/Makefile |1 + arch/ar

[U-Boot] [PATCH 3/4] drivers: usb: atmel: clean up the UTMI PLL code

2015-12-08 Thread Wenyou Yang
Due to introducing the new UTMI PLL clock handle functions, use these function to reduce the duplicated code. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- drivers/usb/host/ehci-atmel.c | 39 --- drivers/usb/host/ohci-at91.c

[U-Boot] [PATCH] defconfig: taurus_defconfig: disable SPL

2015-12-08 Thread Wenyou Yang
e[1]: *** [spl/u-boot-spl] Error 1 make: *** [spl/u-boot-spl] Error 2 --->8 This board code is not ready for SPL for now, so disable CONFIG_SPL. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- configs/taurus_defconfig |1 - 1 file changed, 1 deletion(-) diff --git a/configs/taurus

[U-Boot] [PATCH 1/4] ARM: at91: clock: add UTMI PLL enable/disable function

2015-12-08 Thread Wenyou Yang
To avoid the duplicated code, add the UTMI PLL handle functions, and add PMC_USB init function too. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- arch/arm/mach-at91/clock.c| 48 + arch/arm/mach-at91/include/mach/clk.h |3 +++ 2

[U-Boot] [PATCH 4/4] board: atmel: siemens: clean up UTMI PLL code

2015-12-08 Thread Wenyou Yang
Due to introducing the new UTMI PLL clock handle functions, use the functions to reduce the duplicated code. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> [PATCH 0/5] ARM: at91: improve peripheral and system clock handle functions --- board/siemens/corvus/board.c |4 +---

[U-Boot] [PATCH 2/4] ARM: at91: armv7: clean up UTMI PLL handle code

2015-12-08 Thread Wenyou Yang
Due to introducing the UTMI PLL enable function, use this function to reduce the duplicated code. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- arch/arm/mach-at91/armv7/sama5d2_devices.c |5 + arch/arm/mach-at91/armv7/sama5d3_devices.c |5 + arch/arm/mach-at91

[U-Boot] [PATCH 0/4] ARM: at91: add UTMI PLL handle functions

2015-12-08 Thread Wenyou Yang
To reduce the duplicated code, add UTMI PLL enable/disable functions, replace the UTMI PLL handle code with these functions. Wenyou Yang (4): ARM: at91: clock: add UTMI PLL enable/disable function ARM: at91: armv7: clean up UTMI PLL handle code drivers: usb: atmel: clean up the UTMI PLL

[U-Boot] [PATCH 4/5] board: atmel: clean up peripheral clock code

2015-12-08 Thread Wenyou Yang
Due to introducing the new peripheral clock handle functions, use these functions to reduce duplicated code. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- board/atmel/at91rm9200ek/at91rm9200ek.c |1 - board/atmel/at91rm9200ek/led.c |5 + board

[U-Boot] [PATCH 3/5] ARM: cpu: at91: clean up peripheral clock code

2015-12-08 Thread Wenyou Yang
Due to introducing the new peripheral clock handle functions, use these functions to clean up the duplicated code. Meanwhile, remove unneeded header file include, at91_pmc.h. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- arch/arm/mach-at91/arm920t/at91rm9200_devices.c

[U-Boot] [PATCH 5/5] drivers: at91: clean up peripheral clock code

2015-12-08 Thread Wenyou Yang
Due to introducing the new peripheral clock handle functions, use these functions to reduce the duplicated code. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- drivers/net/at91_emac.c |9 - drivers/usb/host/ehci-atmel.c |8 drivers/usb/host/ohci-

[U-Boot] [PATCH 0/5] ARM: at91: improve peripheral and system clock handle functions

2015-12-08 Thread Wenyou Yang
To reduce the duplicated code, rework the peripheral's and system's clock handle functions, use these functions to replace the clock handle code. Wenyou Yang (5): ARM: at91: asm/at91_pmc.h: fix trival register offset ARM: at91: clock: add a new file to handle clock ARM: cpu: at91: clean up

[U-Boot] [PATCH 1/5] ARM: at91: asm/at91_pmc.h: fix trival register offset

2015-12-08 Thread Wenyou Yang
Remove unnecessary #ifdef CPU_HAS_PCR. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- arch/arm/mach-at91/include/mach/at91_pmc.h |8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/arch/arm/mach-at91/include/mach/at91_pmc.h b/arch/arm/mach-at91/includ

[U-Boot] [PATCH 2/5] ARM: at91: clock: add a new file to handle clock

2015-12-08 Thread Wenyou Yang
To reduce the duplicated code, add a new file to accommodate the peripheral's and system's clock handle code, shared with the SoCs with different ARM core. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- arch/arm/mach-at91/Makefile |1 + arch/arm/mach-at91/arm926ejs/c

[U-Boot] [PATCH 2/3] drivers: usb: ohci-at91: clean up the PLLB code

2015-12-08 Thread Wenyou Yang
Due to introducing the new PLLB clock handle functions, use these functions to clean up the PLLB enable/disable code. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- drivers/usb/host/ohci-at91.c | 20 +--- 1 file changed, 5 insertions(+), 15 deletions(-) diff

[U-Boot] [PATCH 3/3] board: atmel: siemens: clean up PLLB code

2015-12-08 Thread Wenyou Yang
Due to introducing the new PLLB clock handle functions, use these functions to clean up the PLLB enable code. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- board/siemens/smartweb/smartweb.c |6 +- board/siemens/taurus/taurus.c |6 +- 2 files changed, 2 inse

[U-Boot] [PATCH 1/3] ARM: at91: clock: add PLLB enable/disable functions

2015-12-08 Thread Wenyou Yang
To avoid the duplicated code, add the PLLB handle functions. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- arch/arm/mach-at91/arm926ejs/clock.c | 38 + arch/arm/mach-at91/include/mach/clk.h |2 ++ 2 files changed, 40 insertions(+) diff

[U-Boot] [PATCH 0/3] ARM: at91: add PLLB handle functions

2015-12-08 Thread Wenyou Yang
functions Wenyou Yang (3): ARM: at91: clock: add PLLB enable/disable functions drivers: usb: ohci-at91: clean up the PLLB code board: atmel: siemens: clean up PLLB code arch/arm/mach-at91/arm926ejs/clock.c | 38 + arch/arm/mach-at91/include/mach/clk.h

[U-Boot] [PATCH 0/3] ARM: at91: add PMC_PLLICPR init function

2015-12-08 Thread Wenyou Yang
handle functions [PATCH 0/3] ARM: at91: add PLLB handle functions Wenyou Yang (3): ARM: at91: clock: add PMC_PLLICPR init function ARM: at91: clean up the PMC_PLLICPR init code board: atmel: clean up the PMC_PLLICPR init code arch/arm/mach-at91/armv7/clock.c|7

[U-Boot] [PATCH 1/3] ARM: at91: clock: add PMC_PLLICPR init function

2015-12-08 Thread Wenyou Yang
To avoid the duplicated code, add the PMC_PLLICPR init function. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- arch/arm/mach-at91/armv7/clock.c |7 +++ arch/arm/mach-at91/include/mach/at91_pmc.h |7 +++ arch/arm/mach-at91/include/mach/clk.h |

[U-Boot] [PATCH 3/3] board: atmel: clean up the PMC_PLLICPR init code

2015-12-08 Thread Wenyou Yang
Due to introducing the PMC_PLLICPR init function, use this function to clean up the code. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- board/atmel/sama5d3_xplained/sama5d3_xplained.c |4 +--- board/atmel/sama5d3xek/sama5d3xek.c |4 +--- board/atmel/sama5d4_xp

[U-Boot] [PATCH 2/3] ARM: at91: clean up the PMC_PLLICPR init code

2015-12-08 Thread Wenyou Yang
Due to introducing the PMC_PLLICPR init function, use this function to clean up the code. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- arch/arm/mach-at91/spl_at91.c |5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/arch/arm/mach-at91/spl_at91.c b/arch/ar

[U-Boot] [PATCH v3 0/5] ARM: at91: improve peripheral and system clock handle functions

2015-12-09 Thread Wenyou Yang
v2: - fix checkpatch warning. Wenyou Yang (5): ARM: at91: asm/at91_pmc.h: fix trival register offset ARM: at91: clock: add a new file to handle clock ARM: cpu: at91: clean up peripheral clock code board: atmel: clean up peripheral clock code drivers: at91: clean up peripheral clock code arc

[U-Boot] [PATCH v3 1/5] ARM: at91: asm/at91_pmc.h: fix trival register offset

2015-12-09 Thread Wenyou Yang
Remove unnecessary #ifdef CPU_HAS_PCR. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- Changes in v3: None Changes in v2: None arch/arm/mach-at91/include/mach/at91_pmc.h |8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/arch/arm/mach-at91/includ

[U-Boot] [PATCH v3 2/5] ARM: at91: clock: add a new file to handle clock

2015-12-09 Thread Wenyou Yang
To reduce the duplicated code, add a new file to accommodate the peripheral's and system's clock handle code, shared with the SoCs with different ARM core. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- Changes in v3: - fix incorrectly used the indicator '&' to achieve th

[U-Boot] [PATCH v3 3/5] ARM: cpu: at91: clean up peripheral clock code

2015-12-09 Thread Wenyou Yang
Due to introducing the new peripheral clock handle functions, use these functions to clean up the duplicated code. Meanwhile, remove unneeded header file include, at91_pmc.h. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- Changes in v3: None Changes in v2: None arch/arm/mac

[U-Boot] [PATCH v3 4/5] board: atmel: clean up peripheral clock code

2015-12-09 Thread Wenyou Yang
Due to introducing the new peripheral clock handle functions, use these functions to reduce duplicated code. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- Changes in v3: None Changes in v2: - fix checkpatch warning. board/atmel/at91rm9200ek/at91rm9200ek.c |1 -

[U-Boot] [PATCH v3 5/5] drivers: at91: clean up peripheral clock code

2015-12-09 Thread Wenyou Yang
Due to introducing the new peripheral clock handle functions, use these functions to reduce the duplicated code. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- Changes in v3: None Changes in v2: None drivers/net/at91_emac.c |9 - drivers/usb/host/ehci-atmel.c

[U-Boot] [PATCH v2 2/3] arm: at91/spl: mpddrc: add mpddrc DDR3-SDRAM initialization

2015-11-30 Thread Wenyou Yang
The DDR3-SDRAM initialization sequence is implemented in accordance with the DDR3-SRAM/DDR3L-SDRAM initialization section described in the SAMA5D2 datasheet. Add registers and definitions of mpddrc controller, which is used to support DDR3 devices. Signed-off-by: Wenyou Yang <wenyo

[U-Boot] [PATCH v2 1/3] arm: at91/spl: mpddrc: add struct atmel_mpddrc_config

2015-11-30 Thread Wenyou Yang
Add struct atmel_mpddrc_config to accommodate the mpddrc register configurations, not using the mpddrc register map structure, struct atmel_mpddrc, in order to increase readability and reduce run-time memory use. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> Reviewed-by: Andreas Bi

[U-Boot] [PATCH v2 0/3] arm: at91/spl: add DDR3-SDRAM initialization support

2015-11-30 Thread Wenyou Yang
accordingly after changing struct atmel_mpddr. - remove some registers which have different definitions on different SoCs to avoid confusion. - remove whitespace error. - rework commit log. - add Reviewed-by from Andreas. Wenyou Yang (3): arm: at91/spl: mpddrc: add struct atmel_mpddrc_config

[U-Boot] [PATCH v2 3/3] arm: at91/spl: mpddrc: use IP version to check configuration

2015-11-30 Thread Wenyou Yang
To remove the unnecessary #ifdef-endif, use the mpddrc IP version to check whether or not the interleaved decoding type is supported. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> Reviewed-by: Andreas Bießmann <andreas.de...@googlemail.com> --- Changes in v2: - add Reviewed-by

[U-Boot] [PATCH] board: atmel: sama5d2_xplained: add SPL support

2015-11-30 Thread Wenyou Yang
The sama5d2 Xplained SPL supports the boot medias: spi flash and SD Card. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- arch/arm/mach-at91/Kconfig |1 + arch/arm/mach-at91/Makefile |1 + arch/arm/mach-at91/include/mach/sam

[U-Boot] [PATCH v3] mmc: atmel_sdhci: Convert to the driver model support

2016-06-07 Thread Wenyou Yang
Convert the driver to the driver model while retaining the existing legacy code. This allows the driver to support boards that have converted to driver model as well as those that have not. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- Changes in v3: - Remove the redundant log

[U-Boot] [PATCH v2 2/2] clk: at91: Add new clock driver

2016-06-07 Thread Wenyou Yang
The patch is referred to at91 clock driver of Linux, to make the clock node descriptions in dt are aligned with the Linux. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- Changes in v2: - Remove the redundant log print. arch/arm/mach-at91/include/mach/at91_pmc.h | 11 ++- drive

[U-Boot] [PATCH v2 0/2] clk: at91: Add new clock driver

2016-06-07 Thread Wenyou Yang
For CLK uclass add post binding support to recursively bind its children as clk devices. Add the clock driver for AT91's SoCs. Changes in v2: - Remove the redundant log print. Wenyou Yang (2): clk: clk-uclass: Add post binding for CLK uclass clk: at91: Add new clock driver arch/arm/mach

[U-Boot] [PATCH v4 4/5] atmel: Bring in at91 pio4 device tree file and bindings

2016-06-07 Thread Wenyou Yang
Bring in required device tree file and bindings from Linux. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> Reviewed-by: Andreas Bießmann <andr...@biessmann.org> --- Changes in v4: None Changes in v3: None Changes in v2: - add detailed example to show how to configure pinctr

[U-Boot] [PATCH v4 2/5] gpio: atmel_pio4: Rework to support DM & DT

2016-06-07 Thread Wenyou Yang
Rework the driver to support driver model and device tree, and support to regard the pio4 pinctrl device as a child of atmel_pio4 device. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- Changes in v4: - Remove the redundant log print. Changes in v3: - Add bind callback to s

[U-Boot] [PATCH v4 3/5] pinctrl: at91-pio4: Add pinctrl driver

2016-06-07 Thread Wenyou Yang
as a child of atmel_pio4 device. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- Changes in v4: None Changes in v3: - Rework due to the pinctrl device is regarded as atmel_pio4 device's child. Changes in v2: - remove meaningless comment. - add else path for argument of pinconf. - add

[U-Boot] [PATCH v4 1/5] gpio: atmel_pio4: Move PIO4 definitions to head file

2016-06-07 Thread Wenyou Yang
In order to make these PIO4 definitions shared with AT91 PIO4 pinctrl driver, move them from the existing gpio driver to the head file, and rephrase them. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- Changes in v4: None Changes in v3: None Changes in v2: None arch/arm/mac

[U-Boot] [PATCH v4 0/5] ARM: AT91: Add AT91 PIO4 pinctrl driver and gpio driver with DM

2016-06-07 Thread Wenyou Yang
to move the PIO4 definitions to head file and rephrase them. - add the new patch to add #ifndef before CONFIG_ATMEL_PIO4 in configs/sama5d2_xplained.h Wenyou Yang (5): gpio: atmel_pio4: Move PIO4 definitions to head file gpio: atmel_pio4: Rework to support DM & DT pinctrl: at91-

[U-Boot] [PATCH v4 5/5] configs: sama5d2_xplained: Add #ifndef before CONFIG_ATMEL_PIO4

2016-06-07 Thread Wenyou Yang
Since CONFIG_ATMEL_PIO4 options is added to Kconfig, to avoid compilation warnings when the option is enabled, add #ifndef CONFIG_DM_GPIO before #define CONFIG_ATMEL_PIO4 to avoid compilation warnings. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- Changes in v4: None Changes in v3

[U-Boot] [PATCH v3] dm: at91: Add driver model support for the spi driver

2016-06-07 Thread Wenyou Yang
Add driver model support while retaining the existing legacy code. This allows the driver to support boards that have converted to driver model as well as those that have not. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- Changes in v3: - Remove redundant log print. Changes

[U-Boot] [PATCH v2 1/2] clk: clk-uclass: Add post binding for CLK uclass

2016-06-07 Thread Wenyou Yang
Add post binding support for CLK uclass to recursively bind its children as clk devices. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- Changes in v2: None drivers/clk/clk-uclass.c | 51 1 file changed, 51 insertions(+) diff

[U-Boot] [PATCH] dm: atmel: Add driver model support for the ehci driver

2016-06-02 Thread Wenyou Yang
Add driver model support while retaining the existing legacy code. This allows the driver to support boards that have converted to driver model as well as those that have not. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- drivers/usb/host/Kconfig | 7 +++ drivers/usb/hos

[U-Boot] [PATCH 2/2] clk: at91: Add new clock driver

2016-05-25 Thread Wenyou Yang
The patch is referred to at91 clock driver of Linux, to make the clock node descriptions in dt are aligned with the Linux. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- arch/arm/mach-at91/include/mach/at91_pmc.h | 11 ++- drivers/clk/Kconfig| 1 + drive

[U-Boot] [PATCH 0/2] clk: at91: Add new clock driver

2016-05-25 Thread Wenyou Yang
For CLK uclass add post binding support to recursively bind its children as clk devices. Add the clock driver for AT91's SoCs. Wenyou Yang (2): clk: clk-uclass: Add post binding for CLK uclass clk: at91: Add new clock driver arch/arm/mach-at91/include/mach/at91_pmc.h | 11 ++- drivers

[U-Boot] [PATCH v2] dm: at91: Add driver model support for the spi driver

2016-05-25 Thread Wenyou Yang
Add driver model support while retaining the existing legacy code. This allows the driver to support boards that have converted to driver model as well as those that have not. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- Changes in v2: - Add clock support. drivers/spi/K

[U-Boot] [PATCH v3 1/5] gpio: atmel_pio4: Move PIO4 definitions to head file

2016-05-25 Thread Wenyou Yang
In order to make these PIO4 definitions shared with AT91 PIO4 pinctrl driver, move them from the existing gpio driver to the head file, and rephrase them. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- Changes in v3: None Changes in v2: None arch/arm/mach-at91/include/mach/atmel_

[U-Boot] [PATCH] serial: atmel_usart: Add device tree support

2016-05-30 Thread Wenyou Yang
Add device tree support. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- drivers/serial/atmel_usart.c | 13 + 1 file changed, 13 insertions(+) diff --git a/drivers/serial/atmel_usart.c b/drivers/serial/atmel_usart.c index 4fe992b..b78a94c 100644 --- a/drivers/

[U-Boot] [PATCH 1/2] clk: clk-uclass: Add post binding for CLK uclass

2016-05-25 Thread Wenyou Yang
Add post binding support for CLK uclass to recursively bind its children as clk devices. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- drivers/clk/clk-uclass.c | 51 1 file changed, 51 insertions(+) diff --git a/drivers/clk/clk-uc

[U-Boot] [PATCH v2] mmc: atmel_sdhci: Convert to the driver model support

2016-05-25 Thread Wenyou Yang
Convert the driver to the driver model while retaining the existing legacy code. This allows the driver to support boards that have converted to driver model as well as those that have not. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> --- Changes in v2: - Add clock support, i

[U-Boot] [PATCH v3 0/5] ARM: AT91: Add AT91 PIO4 pinctrl driver and gpio driver with DM

2016-05-25 Thread Wenyou Yang
and rephrase them. - add the new patch to add #ifndef before CONFIG_ATMEL_PIO4 in configs/sama5d2_xplained.h Wenyou Yang (5): gpio: atmel_pio4: Move PIO4 definitions to head file gpio: atmel_pio4: Rework to support DM & DT pinctrl: at91-pio4: Add pinctrl driver atmel: Bring in at91

  1   2   3   4   5   6   7   8   9   >