Re: [U-Boot] [PATCH 14/14] spi: atmel: default y if DM_SPI && ARCH_AT91

2018-03-20 Thread Wenyou Yang
On 3/14/2018 9:16 PM, Jagan Teki wrote: ATMEL_SPI is now fully converted to driver-model and respective boards switch to DM_SPI as well, so make default y for ARCH_AT91 Signed-off-by: Jagan Teki Acked-by: Wenyou Yang --- configs/at91sam9260ek_dataflash_cs0_defconfig | 1 - configs

Re: [U-Boot] [PATCH 13/14] spi: atmel: Drop atmel_spi.h

2018-03-20 Thread Wenyou Yang
On 3/14/2018 9:16 PM, Jagan Teki wrote: atmel_spi.h has register offsets, and atmel_spi_slave structure, move it into .c file for better readability and drop atmel_spi.h Signed-off-by: Jagan Teki Indeed. Acked-by: Wenyou Yang --- drivers/spi/atmel_spi.c | 97

Re: [U-Boot] [PATCH 12/14] spi: atmel: Drop non-dm code

2018-03-20 Thread Wenyou Yang
On 3/14/2018 9:16 PM, Jagan Teki wrote: All board configs are now enabled DM_SPI for SPL and U-Boot proper, so now its time to drop non-dm code. Signed-off-by: Jagan Teki It is okay for me. Acked-by: Wenyou Yang --- drivers/spi/atmel_spi.c | 201

Re: [U-Boot] [PATCH 03/14] configs: gurnard: Move CONFIG_ATMEL_SPI to defconfigs

2018-03-20 Thread Wenyou Yang
On 3/14/2018 9:16 PM, Jagan Teki wrote: Now CONFIG_ATMEL_SPI is defined in Kconfig, so move the same into defconfig file. Cc: Simon Glass Signed-off-by: Jagan Teki Acked-by: Wenyou Yang --- configs/gurnard_defconfig | 1 + include/configs/snapper9g45.h | 2 -- 2 files changed, 1

Re: [U-Boot] [PATCH 01/14] spi: atmel: Add ifdef for DM_GPIO code

2018-03-20 Thread Wenyou Yang
On 3/14/2018 9:16 PM, Jagan Teki wrote: Few boards are configuring gpio directly from board instead using drivers/gpio so add ifdef for DM_GPIO to compatible for both the cases. Signed-off-by: Jagan Teki It is okay for me. Acked-by: Wenyou Yang --- drivers/spi/atmel_spi.c | 14

Re: [U-Boot] [PATCH][Boards Need to Switch DM] spi: atmel: Full dm conversion

2018-03-12 Thread Wenyou Yang
On 3/7/2018 1:51 PM, Jagan Teki wrote: atmel_spi now support dt along with platform data, respective boards need to switch into dm for the same. Signed-off-by: Jagan Teki --- Indeed. Acked-by: Wenyou Yang Best Regards, Wenyou Yang drivers/spi/atmel_spi.c | 294

Re: [U-Boot] [PATCH 0/3] clk: at91: add usb and plladiv drivers

2018-03-05 Thread Wenyou Yang
Hi, Do you have any comments? On 2/9/2018 11:34 AM, Wenyou Yang wrote: In order to provide the clocks UHP48MHz and UHP12MHz to the USB Host OHCI, add the USB clock and PLLADIV clock driver. Wenyou Yang (3): clk: at91: add USB Host clock driver clk: at91: add PLLADIV driver clk

[U-Boot] [PATCH 2/3] clk: at91: add PLLADIV driver

2018-02-08 Thread Wenyou Yang
As said in the SAMA5D2 datasheet, the PLLA clock must be divided by 2 by writing the PLLADIV2 bit in PMC_MCKR, if the ratio between PCK and MCK is 3 (MDIV = 3). This is the purpose of the driver. Signed-off-by: Wenyou Yang --- drivers/clk/at91/Makefile | 2 +- drivers/clk/at91/clk

[U-Boot] [PATCH 3/3] clk: at91: clk-system: add set/get_rate operations

2018-02-08 Thread Wenyou Yang
To support set/get the clock rate, add set/get_rate operations. Signed-off-by: Wenyou Yang --- drivers/clk/at91/clk-system.c | 26 ++ 1 file changed, 26 insertions(+) diff --git a/drivers/clk/at91/clk-system.c b/drivers/clk/at91/clk-system.c index 24b271aa18

[U-Boot] [PATCH 1/3] clk: at91: add USB Host clock driver

2018-02-08 Thread Wenyou Yang
Add USB clock driver to configure the input clock and the divider in the PMC_USB register to generate a 48MHz and a 12MHz signal to the USB Host OHCI. Signed-off-by: Wenyou Yang --- arch/arm/mach-at91/include/mach/at91_pmc.h | 6 ++ drivers/clk/at91/Kconfig | 8

[U-Boot] [PATCH 0/3] clk: at91: add usb and plladiv drivers

2018-02-08 Thread Wenyou Yang
In order to provide the clocks UHP48MHz and UHP12MHz to the USB Host OHCI, add the USB clock and PLLADIV clock driver. Wenyou Yang (3): clk: at91: add USB Host clock driver clk: at91: add PLLADIV driver clk: at91: clk-system: add set/get_rate operations arch/arm/mach-at91/include/mach

[U-Boot] [PATCH 1/2] ARM: at91: add sama5d2 smc header

2017-11-16 Thread Wenyou Yang
From: Ludovic Desroches Add a header for SAMA5D2 SMC since it's not compatible with SAMA5D3 one. Signed-off-by: Ludovic Desroches [wenyou: fix the wrong base address of the SMC register] Signed-off-by: Wenyou Yang --- arch/arm/mach-at91/include/mach/sama5d2_smc.h

[U-Boot] [PATCH 2/2] board: atmel: add sama5d2_ptc_ek board

2017-11-16 Thread Wenyou Yang
From: Ludovic Desroches Add the SAMA5D2 PTC EK board and remove the SAMA5D2 PTC ENGI board which was a prototype. Signed-off-by: Ludovic Desroches Signed-off-by: Wenyou Yang --- arch/arm/dts/Makefile | 3 + arch/arm/dts/at91-sama5d2_ptc_ek.dts

[U-Boot] [PATCH 0/2] board: atmel: Add new board SAMA5D2 PTC EK

2017-11-16 Thread Wenyou Yang
Add the new board SAMA5D2 PTC EK and remove the SAMA5D2 PTC ENGI board which was a prototype. Ludovic Desroches (2): ARM: at91: add sama5d2 smc header board: atmel: add sama5d2_ptc_ek board arch/arm/dts/Makefile | 3 + arch/arm/dts/at91-sama5d2_ptc_ek.dts

[U-Boot] [PATCH] mmc: atmel_sdhci: not on capabilities to set gck rate

2017-11-16 Thread Wenyou Yang
llows to get a 400 kHz clock for the card initialisation. Signed-off-by: Ludovic Desroches Signed-off-by: Wenyou Yang --- drivers/mmc/atmel_sdhci.c | 12 ++-- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/drivers/mmc/atmel_sdhci.c b/drivers/mmc/atmel_sdhci.c index c19a1

[U-Boot] [PATCH 1/2] clk: at91: clk-generated: select absolute closest rate

2017-11-16 Thread Wenyou Yang
From: Ludovic Desroches To get the same behavior as the Linux driver, instead of selecting the closest inferior rate, select the closest inferior or superior rate Signed-off-by: Ludovic Desroches Signed-off-by: Wenyou Yang --- drivers/clk/at91/clk-generated.c | 4 +--- 1 file changed, 1

[U-Boot] [PATCH 2/2] clk: at91: clk-generated: fix incorrect index of clk source

2017-11-16 Thread Wenyou Yang
Differentiate the generic clock source selection value from the parent clock index to fix the incorrect assignment of the generic clock source selection. Signed-off-by: Wenyou Yang --- drivers/clk/at91/clk-generated.c | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff

[U-Boot] [PATCH 0/2] clk: at91: clk-generated: Improvement

2017-11-16 Thread Wenyou Yang
absolute closest rate Wenyou Yang (1): clk: at91: clk-generated: fix incorrect index of clk source drivers/clk/at91/clk-generated.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) -- 2.13.0 ___ U-Boot mailing list U-Boot

[U-Boot] [PATCH] clk: at91: Kconfig: fix the dependency of AT91_UTMI

2017-11-16 Thread Wenyou Yang
What the AT91_UTMI depends on SPL_DM isn't right. AT91_UTMI is not only used in SPL, also in other place, even if SPL_DM isn't enabled. Signed-off-by: Wenyou Yang --- drivers/clk/at91/Kconfig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/clk/at91

[U-Boot] [PATCH v3 5/5] board: at91sam9x5ek: Convert to CONFIG_DM_VIDEO

2017-09-18 Thread Wenyou Yang
Convert the board to support the video driver model, add the device tree node, and remove the unnecessary code. Signed-off-by: Wenyou Yang Reviewed-by: Simon Glass --- Changes in v3: - Collect the Reviewed-by tags. Changes in v2: - Rebase the u-boot/master (5541543f686). - Drop the applied

[U-Boot] [PATCH v3 4/5] board: sama5d4_xplained: Convert to CONFIG_DM_VIDEO

2017-09-18 Thread Wenyou Yang
From: Wenyou Yang Convert the board to support the video driver model, add the device tree node, and remove the unnecessary code. Signed-off-by: Wenyou Yang Reviewed-by: Simon Glass --- Changes in v3: None Changes in v2: None arch/arm/dts/at91-sama5d4_xplained.dts | 25

[U-Boot] [PATCH v3 3/5] board: sama5d4ek: Convert to CONFIG_DM_VIDEO

2017-09-18 Thread Wenyou Yang
From: Wenyou Yang Convert the board to support the video driver model, add the device tree node, and remove the unnecessary code. Signed-off-by: Wenyou Yang Reviewed-by: Simon Glass --- Changes in v3: None Changes in v2: None arch/arm/dts/at91-sama5d4ek.dts | 26 ++ arch/arm

[U-Boot] [PATCH v3 2/5] board: sama5d3xek: Convert to CONFIG_DM_VIDEO

2017-09-18 Thread Wenyou Yang
From: Wenyou Yang Convert the board to support the video driver model, add the device tree node, and remove the unnecessary code. Signed-off-by: Wenyou Yang Reviewed-by: Simon Glass --- Changes in v3: None Changes in v2: None arch/arm/dts/sama5d36ek_cmp.dts| 1 + arch/arm/dts

[U-Boot] [PATCH v3 0/5] board: atmel: Convert to support video driver model

2017-09-18 Thread Wenyou Yang
. Wenyou Yang (5): board: sama5d2_xplained: Convert to CONFIG_DM_VIDEO board: sama5d3xek: Convert to CONFIG_DM_VIDEO board: sama5d4ek: Convert to CONFIG_DM_VIDEO board: sama5d4_xplained: Convert to CONFIG_DM_VIDEO board: at91sam9x5ek: Convert to CONFIG_DM_VIDEO arch/arm/dts/at91

[U-Boot] [PATCH v3 1/5] board: sama5d2_xplained: Convert to CONFIG_DM_VIDEO

2017-09-18 Thread Wenyou Yang
Convert the board to support the video driver model, add the device tree node, and remove the unnecessary code. Signed-off-by: Wenyou Yang Reviewed-by: Simon Glass --- Changes in v3: None Changes in v2: None arch/arm/dts/at91-sama5d2_xplained.dts | 60 arch/arm/dts

[U-Boot] [PATCH v2 4/5] board: sama5d4_xplained: Convert to CONFIG_DM_VIDEO

2017-09-14 Thread Wenyou Yang
From: Wenyou Yang Convert the board to support the video driver model, add the device tree node, and remove the unnecessary code. Signed-off-by: Wenyou Yang --- Changes in v2: None arch/arm/dts/at91-sama5d4_xplained.dts | 25 ++ arch/arm/dts/sama5d4.dtsi

[U-Boot] [PATCH v2 5/5] board: at91sam9x5ek: Convert to CONFIG_DM_VIDEO

2017-09-14 Thread Wenyou Yang
Convert the board to support the video driver model, add the device tree node, and remove the unnecessary code. Signed-off-by: Wenyou Yang --- Changes in v2: - Rebase the u-boot/master (5541543f686). - Drop the applied patches. - Improve the commit log. arch/arm/mach-at91/Kconfig

[U-Boot] [PATCH v2 3/5] board: sama5d4ek: Convert to CONFIG_DM_VIDEO

2017-09-14 Thread Wenyou Yang
From: Wenyou Yang Convert the board to support the video driver model, add the device tree node, and remove the unnecessary code. Signed-off-by: Wenyou Yang --- Changes in v2: None arch/arm/dts/at91-sama5d4ek.dts | 26 ++ arch/arm/mach-at91/Kconfig| 1 + board

[U-Boot] [PATCH v2 2/5] board: sama5d3xek: Convert to CONFIG_DM_VIDEO

2017-09-14 Thread Wenyou Yang
From: Wenyou Yang Convert the board to support the video driver model, add the device tree node, and remove the unnecessary code. Signed-off-by: Wenyou Yang --- Changes in v2: None arch/arm/dts/sama5d36ek_cmp.dts| 1 + arch/arm/dts/sama5d3_lcd.dtsi | 21

[U-Boot] [PATCH v2 0/5] board: atmel: Convert to support video driver model

2017-09-14 Thread Wenyou Yang
Convert the boards to support the driver model of LCD/video via enabling CONFIG_DM_VIDEO, remove CONFIG_LCD and the unnecessary code. Changes in v2: - Rebase the u-boot/master (5541543f686). - Drop the applied patches. - Improve the commit log. Wenyou Yang (5): board: sama5d2_xplained

[U-Boot] [PATCH v2 1/5] board: sama5d2_xplained: Convert to CONFIG_DM_VIDEO

2017-09-14 Thread Wenyou Yang
Convert the board to support the video driver model, add the device tree node, and remove the unnecessary code. Signed-off-by: Wenyou Yang --- Changes in v2: None arch/arm/dts/at91-sama5d2_xplained.dts | 60 arch/arm/dts/sama5d2.dtsi | 7

[U-Boot] [PATCH v3 4/5] ARM: at91: spl: Add macro CONFIG_XXXX_BOOT support

2017-09-13 Thread Wenyou Yang
Use the CONFIG__BOOT to indicate the boot media, instead of the CONFIG_SYS_USE_ option, which is declared by CONFIG_SYS_EXTRA_OPTIONS option. Signed-off-by: Wenyou Yang --- Changes in v3: None Changes in v2: None arch/arm/mach-at91/spl.c | 16 ++-- 1 file changed, 10

[U-Boot] [PATCH v3 5/5] configs: at91: Remove CONFIG_SYS_EXTRA_OPTIONS assignment

2017-09-13 Thread Wenyou Yang
To remove the assignment of CONFIG_SYS_EXTRA_OPTIONS option, which is deprecated, use the CONFIG__BOOT options to indicate the boot media, and the SoC is selected by the board. Signed-off-by: Wenyou Yang --- Changes in v3: - Rebase the u-boot/master (ba39608147). Changes in v2: - Rebase

[U-Boot] [PATCH v3 3/5] ARM: at91: Remove hardware.h included in configs

2017-09-13 Thread Wenyou Yang
From: Wenyou Yang As said in READRE.kconfig, include/configs/*.h will be removed after all options are switched to Kconfig. As the first step, remove the follow line from include/configs/*.h. #include Signed-off-by: Wenyou Yang --- Changes in v3: None Changes in v2: None arch/arm/mach

[U-Boot] [PATCH v3 1/5] ARM: at91: Move CONFIG_AT91FAMILY option to Kconfig

2017-09-13 Thread Wenyou Yang
From: Wenyou Yang Move the CONFIG_AT91FAMILY option from include/mach/.h header file to Kconfig. Signed-off-by: Wenyou Yang --- Changes in v3: None Changes in v2: None arch/arm/mach-at91/Kconfig| 3 +++ arch/arm/mach-at91/include/mach/at91rm9200.h | 1 - arch/arm/mach

[U-Boot] [PATCH v3 2/5] ARM: at91: Add the SoC options to Kconfig

2017-09-13 Thread Wenyou Yang
From: Wenyou Yang To prepare to remove the SoCs options such as SAMA5D2, SAMA5D3 and SAMA5D4 from the CONFIG_SYS_EXTRA_OPTIONS option which is deprecated, add the SoC options to Kconfig. Signed-off-by: Wenyou Yang --- Changes in v3: None Changes in v2: None arch/arm/mach-at91/Kconfig | 106

[U-Boot] [PATCH v3 0/5] configs: at91: Remove value of CONFIG_SYS_EXTRA_OPTIONS option

2017-09-13 Thread Wenyou Yang
The CONFIG_SYS_EXTRA_OPTIONS option is deprecated, remove the value of this option from the board default config files. Changes in v3: - Rebase the u-boot/master (ba39608147). Changes in v2: - Rebase the uboot/master (84a42069f253). Wenyou Yang (5): ARM: at91: Move CONFIG_AT91FAMILY option

[U-Boot] [PATCH v6 8/9] ARM: at91: Get the Chip ID of SAMA5D2 SiP

2017-09-13 Thread Wenyou Yang
From: Wenyou Yang The SAMA5D2 SiP(System in Package) has different Chip IDs in the CHIPID and CHIP_EXID registers. Signed-off-by: Wenyou Yang Reviewed-by: Simon Glass --- Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None arch/arm/mach-at91

[U-Boot] [PATCH v6 5/9] board: sama5d2_xplained: Make SPL work on spiflash

2017-09-13 Thread Wenyou Yang
: Wenyou Yang Reviewed-by: Simon Glass --- Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None board/atmel/sama5d2_xplained/sama5d2_xplained.c | 10 ++ include/configs/sama5d2_xplained.h | 2 +- 2 files changed, 11 insertions

[U-Boot] [PATCH v6 4/9] ARM: at91: spl: Add mck function to lower rate while switching

2017-09-13 Thread Wenyou Yang
happens on SAMA5D2 as exitting from the ROM code. Add a function pmc_mck_init_down() to allow this sequence. Signed-off-by: Wenyou Yang Reviewed-by: Simon Glass --- Changes in v6: - Add function comments for at91_mck_init_down(). Changes in v5: None Changes in v4: None Changes in v3: None

[U-Boot] [PATCH v6 9/9] board: atmel: Add SAMA5D27 SOM1 EK board

2017-09-13 Thread Wenyou Yang
From: Wenyou Yang The SAMA5D27-SiP (System in Package) integrates the SAMA5D2 with 1Gbit DDR2-SDRAM in a single package. The SAMA5D27 SOM1 embeds a 64Mbit QSPI flash, KSZ8081 Phy and Mac-address EEPROM. Signed-off-by: Wenyou Yang Reviewed-by: Simon Glass --- Changes in v6: - Add the

[U-Boot] [PATCH v6 7/9] ARM: at91: mach: Add missing defines of MPDDRC

2017-09-13 Thread Wenyou Yang
Add missing defines of Multiport DDR-SDRAM Controller (MPDDRC). Signed-off-by: Wenyou Yang Reviewed-by: Simon Glass --- Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None arch/arm/mach-at91/include/mach/atmel_mpddrc.h | 4 1 file changed

[U-Boot] [PATCH v6 6/9] ARM: at91: spl: Add boot device for boot from QSPI

2017-09-13 Thread Wenyou Yang
Add the boot device for booting from the QSPI flash. Signed-off-by: Wenyou Yang Reviewed-by: Simon Glass --- Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None arch/arm/mach-at91/spl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch

[U-Boot] [PATCH v6 3/9] ARM: at91: spl: Adjust switching to oscillator for SAMA5D2

2017-09-13 Thread Wenyou Yang
As said in 29.5.7 section of SAMA5D2 datasheet, before switching to the crystal oscillator, a check must be carried out to ensure that the oscillator is present and that its freqency is valid. Signed-off-by: Wenyou Yang Reviewed-by: Simon Glass --- Changes in v6: None Changes in v5: None

[U-Boot] [PATCH v6 2/9] atmel: common: Add function to display via DM_VIDEO's API

2017-09-13 Thread Wenyou Yang
Add a function to display the company's logo and board information via the API from DM_VIDEO. This function can be shared by other atmel boards, so locate it in board/atmel/common folder. Signed-off-by: Wenyou Yang Reviewed-by: Simon Glass --- Changes in v6: None Changes in v5: None Chang

[U-Boot] [PATCH v6 0/9] board: atmel: Add new board SAMA5D27-SOM1-EK board.

2017-09-13 Thread Wenyou Yang
ress with the common code from the board/atmel/common folder. Wenyou Yang (9): lib: at91: Add logo files used via API of DM_VIDEO atmel: common: Add function to display via DM_VIDEO's API ARM: at91: spl: Adjust switching to oscillator for SAMA5D2 ARM: at91: spl: Add mck function to l

[U-Boot] [PATCH v5 7/9] ARM: at91: mach: Add missing defines of MPDDRC

2017-09-12 Thread Wenyou Yang
Add missing defines of Multiport DDR-SDRAM Controller (MPDDRC). Signed-off-by: Wenyou Yang Reviewed-by: Simon Glass --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None arch/arm/mach-at91/include/mach/atmel_mpddrc.h | 4 1 file changed, 4 insertions

[U-Boot] [PATCH v5 8/9] ARM: at91: Get the Chip ID of SAMA5D2 SiP

2017-09-12 Thread Wenyou Yang
From: Wenyou Yang The SAMA5D2 SiP(System in Package) has different Chip IDs in the CHIPID and CHIP_EXID registers. Signed-off-by: Wenyou Yang Reviewed-by: Simon Glass --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None arch/arm/mach-at91/armv7

[U-Boot] [PATCH v5 9/9] board: atmel: Add SAMA5D27 SOM1 EK board

2017-09-12 Thread Wenyou Yang
From: Wenyou Yang The SAMA5D27-SiP (System in Package) integrates the SAMA5D2 with 1Gbit DDR2-SDRAM in a single package. The SAMA5D27 SOM1 embeds a 64Mbit QSPI flash, KSZ8081 Phy and Mac-address EEPROM. Signed-off-by: Wenyou Yang --- Changes in v5: - Rebase the u-boot/master (8a33cb8b6bd

[U-Boot] [PATCH v5 5/9] board: sama5d2_xplained: Make SPL work on spiflash

2017-09-12 Thread Wenyou Yang
: Wenyou Yang --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None board/atmel/sama5d2_xplained/sama5d2_xplained.c | 10 ++ include/configs/sama5d2_xplained.h | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/board/atmel

[U-Boot] [PATCH v5 4/9] ARM: at91: spl: Add mck function to lower rate while switching

2017-09-12 Thread Wenyou Yang
happen on SAMA5D2 as we exit from ROM code @396MHz. Add a function pmc_mck_init_down() to allow this sequence. Signed-off-by: Wenyou Yang --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None arch/arm/mach-at91/armv7/clock.c | 36

[U-Boot] [PATCH v5 6/9] ARM: at91: spl: Add boot device for boot from QSPI

2017-09-12 Thread Wenyou Yang
Add the boot device for booting from the QSPI flash. Signed-off-by: Wenyou Yang Reviewed-by: Simon Glass --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None arch/arm/mach-at91/spl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-at91/spl.c

[U-Boot] [PATCH v5 3/9] ARM: at91: spl: Adjust switching to oscillator for SAMA5D2

2017-09-12 Thread Wenyou Yang
As said in 29.5.7 section of SAMA5D2 datasheet, before switching to the crystal oscillator, a check must be carried out to ensure that the oscillator is present and that its freqency is valid. Signed-off-by: Wenyou Yang Reviewed-by: Simon Glass --- Changes in v5: None Changes in v4: None

[U-Boot] [PATCH v5 2/9] atmel: common: Add function to display via DM_VIDEO's API

2017-09-12 Thread Wenyou Yang
Add a function to display the company's logo and board information via the API from DM_VIDEO. This function can be shared by other atmel boards, so locate it in board/atmel/common folder. Signed-off-by: Wenyou Yang --- Changes in v5: None Changes in v4: None Changes in v3: None Changes

[U-Boot] [PATCH v5 0/9] board: atmel: Add new board SAMA5D27-SOM1-EK board.

2017-09-12 Thread Wenyou Yang
e the board and peripherals. - Add the code to display the company's logo and board information. - Replace the code to set the ethernet mac address with the common code from the board/atmel/common folder. Wenyou Yang (9): lib: at91: Add logo files used via API of DM_VIDEO atmel: com

[U-Boot] [PATCH v2 5/5] configs: at91: Remove CONFIG_SYS_EXTRA_OPTIONS assignment

2017-09-06 Thread Wenyou Yang
To remove the assignment of CONFIG_SYS_EXTRA_OPTIONS option, which is deprecated, use the CONFIG__BOOT options to indicate the boot media, and the SoC is selected by the board. Signed-off-by: Wenyou Yang --- Changes in v2: - Rebase the uboot/master (84a42069f253). board/atmel

[U-Boot] [PATCH v2 3/5] ARM: at91: Remove hardware.h included in configs

2017-09-06 Thread Wenyou Yang
From: Wenyou Yang As said in READRE.kconfig, include/configs/*.h will be removed after all options are switched to Kconfig. As the first step, remove the follow line from include/configs/*.h. #include Signed-off-by: Wenyou Yang --- Changes in v2: None arch/arm/mach-at91/atmel_sfr.c

[U-Boot] [PATCH v2 2/5] ARM: at91: Add the SoC options to Kconfig

2017-09-06 Thread Wenyou Yang
From: Wenyou Yang To prepare to remove the SoCs options such as SAMA5D2, SAMA5D3 and SAMA5D4 from the CONFIG_SYS_EXTRA_OPTIONS option which is deprecated, add the SoC options to Kconfig. Signed-off-by: Wenyou Yang --- Changes in v2: None arch/arm/mach-at91/Kconfig | 106

[U-Boot] [PATCH v2 4/5] ARM: at91: spl: Add macro CONFIG_XXXX_BOOT support

2017-09-06 Thread Wenyou Yang
Use the CONFIG__BOOT to indicate the boot media, instead of the CONFIG_SYS_USE_ option, which is declared by CONFIG_SYS_EXTRA_OPTIONS option. Signed-off-by: Wenyou Yang --- Changes in v2: None arch/arm/mach-at91/spl.c | 16 ++-- 1 file changed, 10 insertions(+), 6

[U-Boot] [PATCH v2 1/5] ARM: at91: Move CONFIG_AT91FAMILY option to Kconfig

2017-09-06 Thread Wenyou Yang
From: Wenyou Yang Move the CONFIG_AT91FAMILY option from include/mach/.h header file to Kconfig. Signed-off-by: Wenyou Yang --- Changes in v2: None arch/arm/mach-at91/Kconfig| 3 +++ arch/arm/mach-at91/include/mach/at91rm9200.h | 1 - arch/arm/mach-at91/include/mach

[U-Boot] [PATCH v2 0/5] configs: at91: Remove value of CONFIG_SYS_EXTRA_OPTIONS option

2017-09-06 Thread Wenyou Yang
The CONFIG_SYS_EXTRA_OPTIONS option is deprecated, remove the value of this option from the board default config files. Changes in v2: - Rebase the uboot/master (84a42069f253). Wenyou Yang (5): ARM: at91: Move CONFIG_AT91FAMILY option to Kconfig ARM: at91: Add the SoC options to Kconfig

[U-Boot] [PATCH v4 10/12] ARM: at91: mach: Add missing defines of MPDDRC

2017-09-05 Thread Wenyou Yang
Add missing defines of Multiport DDR-SDRAM Controller (MPDDRC). Signed-off-by: Wenyou Yang Reviewed-by: Simon Glass --- Changes in v4: None Changes in v3: None Changes in v2: None arch/arm/mach-at91/include/mach/atmel_mpddrc.h | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm

[U-Boot] [PATCH v4 09/12] board: sama5d2_xplained: Make SPL work on spiflash

2017-09-05 Thread Wenyou Yang
: Wenyou Yang --- Changes in v4: None Changes in v3: None Changes in v2: None board/atmel/sama5d2_xplained/sama5d2_xplained.c | 10 ++ include/configs/sama5d2_xplained.h | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/board/atmel/sama5d2_xplained

[U-Boot] [PATCH v4 12/12] board: atmel: Add SAMA5D27 SOM1 EK board

2017-09-05 Thread Wenyou Yang
From: Wenyou Yang The SAMA5D27-SiP (System in Package) integrates the SAMA5D2 with 1Gbit DDR2-SDRAM in a single package. The SAMA5D27 SOM1 embeds a 64Mbit QSPI flash, KSZ8081 Phy and Mac-address EEPROM. Signed-off-by: Wenyou Yang --- Changes in v4: - Rebase the uboot/master (84a4206

[U-Boot] [PATCH v4 08/12] ARM: at91: spl: Add boot device for boot from QSPI

2017-09-05 Thread Wenyou Yang
Add the boot device for booting from the QSPI flash. Signed-off-by: Wenyou Yang Reviewed-by: Simon Glass --- Changes in v4: None Changes in v3: None Changes in v2: None arch/arm/mach-at91/spl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-at91/spl.c b/arch/arm/mach

[U-Boot] [PATCH v4 07/12] ARM: at91: spl: Add mck function to lower rate while switching

2017-09-05 Thread Wenyou Yang
happen on SAMA5D2 as we exit from ROM code @396MHz. Add a function pmc_mck_init_down() to allow this sequence. Signed-off-by: Wenyou Yang --- Changes in v4: None Changes in v3: None Changes in v2: None arch/arm/mach-at91/armv7/clock.c | 36 +++ arch/arm/mach

[U-Boot] [PATCH v4 11/12] ARM: at91: Get the Chip ID of SAMA5D2 SiP

2017-09-05 Thread Wenyou Yang
From: Wenyou Yang The SAMA5D2 SiP(System in Package) has different Chip IDs in the CHIPID and CHIP_EXID registers. Signed-off-by: Wenyou Yang Reviewed-by: Simon Glass --- Changes in v4: None Changes in v3: None Changes in v2: None arch/arm/mach-at91/armv7/sama5d2_devices.c | 26

[U-Boot] [PATCH v4 06/12] ARM: at91: spl: Adjust switching to oscillator for SAMA5D2

2017-09-05 Thread Wenyou Yang
As said in 29.5.7 section of SAMA5D2 datasheet, before switching to the crystal oscillator, a check must be carried out to ensure that the oscillator is present and that its freqency is valid. Signed-off-by: Wenyou Yang Reviewed-by: Simon Glass --- Changes in v4: None Changes in v3: None

[U-Boot] [PATCH v4 05/12] atmel: common: Add function to display via DM_VIDEO's API

2017-09-05 Thread Wenyou Yang
Add a function to display the company's logo and board information via the API from DM_VIDEO. This function can be shared by other atmel boards, so locate it in board/atmel/common folder. Signed-off-by: Wenyou Yang --- Changes in v4: None Changes in v3: None Changes in v2: None arch/arm

[U-Boot] [PATCH v4 02/12] board: sama5d2_xplained: Replace code of setting mac addr

2017-09-05 Thread Wenyou Yang
Replace the code of setting the ethernet mac address with the code from the board/atmel/common folder. Signed-off-by: Wenyou Yang --- Changes in v4: None Changes in v3: None Changes in v2: None arch/arm/dts/at91-sama5d2_xplained.dts | 5 +++ board/atmel/sama5d2_xplained

[U-Boot] [PATCH v4 03/12] board: sama5d4_xplained: Set mac address from eeprom

2017-09-05 Thread Wenyou Yang
Add the code of setting the ethernet mac address from eeprom via the common code from the common folder. Signed-off-by: Wenyou Yang --- Changes in v4: None Changes in v3: None Changes in v2: None arch/arm/dts/at91-sama5d4_xplained.dts | 5 + board/atmel/sama5d4_xplained

[U-Boot] [PATCH v4 01/12] board: atmel: Create board/atmel/common folder

2017-09-05 Thread Wenyou Yang
Create board/atmel/common folder to accommodate the common code shared by other atmel boards, now move the code of setting ethernet mac address from eeprom, which uses the i2c eeprom driver. Signed-off-by: Wenyou Yang --- Changes in v4: None Changes in v3: None Changes in v2: None arch/arm

[U-Boot] [PATCH v4 00/12] board: atmel: Add new board SAMA5D27-SOM1-EK board.

2017-09-05 Thread Wenyou Yang
s in v2: - Add the reviewed-by tag. - Add the help in Kconfig to describe the board and peripherals. - Add the code to display the company's logo and board information. - Replace the code to set the ethernet mac address with the common code from the board/atmel/common folder. Wenyou Yang

[U-Boot] [PATCH v2] misc: Kconfig: Add SPL_I2C_EEPROM option

2017-09-05 Thread Wenyou Yang
This option is an SPL-variant of the I2C_EEPROM option to enable the driver for generic I2C-attached EEPROMs for SPL. Signed-off-by: Wenyou Yang --- Changes in v2: - Rebase the uboot/master (84a4206). drivers/misc/Kconfig | 8 drivers/misc/Makefile | 2 +- 2 files changed, 9

[U-Boot] [PATCH 2/2] ARM: dts: at91: sama5: Add the sfr node

2017-09-05 Thread Wenyou Yang
For sama5d2, add the sfr node with syscon support. In order to access the SFR_UTMICKTRIM register for the utmi clock driver, add the phandle property for the utmi node to point to the sfr node. Signed-off-by: Wenyou Yang --- arch/arm/dts/sama5d2.dtsi | 6 ++ arch/arm/dts/sama5d3.dtsi | 2

[U-Boot] [PATCH 1/2] clk: at91: utmi: Set the reference clock frequency

2017-09-05 Thread Wenyou Yang
plier we can configure. The multiplier is managed internally, depending on the reference clock frequency, to achieve the target of 480 MHz. The patch is cloned from the patch of mailing-list: [PATCH v2] clk: at91: utmi: set the mainck rate Signed-off-by: Wenyou Yang --- arch/arm/mach

[U-Boot] [PATCH 0/2] clk: at91: utmi: Fix to set the main clock

2017-09-05 Thread Wenyou Yang
apply the correct multiplier, x40, x30 or x20, respectively. By default, it is assumed that the UTMI clock is generated from a 12 MHz MAINCK. Wenyou Yang (2): clk: at91: utmi: Set the reference clock frequency ARM: dts: at91: sama5: Add the sfr node arch/arm/dts/sama5d2.dtsi

[U-Boot] [PATCH v4 1/3] board: atmel: Create board/$(VENDOR)/common folder

2017-09-01 Thread Wenyou Yang
Create board/$(VENDOR)/common folder to accommodate the common code shared by other atmel boards, now put the code to set ethernet mac address from eeprom, which uses the i2c eeprom driver. Signed-off-by: Wenyou Yang --- Changes in v4: - Follow up the env function renaming. Changes in v3

[U-Boot] [PATCH v4 3/3] board: sama5d4_xplained: Set mac address from eeprom

2017-09-01 Thread Wenyou Yang
Add the code to set the ethernet mac address from eeprom by using the common code from the common folder. Signed-off-by: Wenyou Yang --- Changes in v4: - Rebase the latest commit(8b3cec7da) on uboot/master. Changes in v3: - remove CONFIG_SPL_I2C_SUPPORT=y from the default configuration files

[U-Boot] [PATCH v4 2/3] board: sama5d2_xplained: Replace code to set mac address

2017-09-01 Thread Wenyou Yang
Replace the code to set the ethernet mac address with the code from the common folder. Signed-off-by: Wenyou Yang --- Changes in v4: None Changes in v3: None Changes in v2: None arch/arm/dts/at91-sama5d2_xplained.dts | 5 +++ board/atmel/sama5d2_xplained/sama5d2_xplained.c | 46

[U-Boot] [PATCH v4 0/3] board: atmel: Set the ethernet mac address from eeprom

2017-09-01 Thread Wenyou Yang
v2: - Add a new patch to create board/$(VENDOR)/common folder to accommodate the common code and put the code to set the ethernet mac address from eeprom here. - Use the i2c_eeprom driver to read the mac address, instead of the dm i2c API directly. Wenyou Yang (3): board: atmel: Create

[U-Boot] [PATCH v2 2/2] board: atmel: Use the new PIT timer driver

2017-08-15 Thread Wenyou Yang
Use the Atmel PIT timer driver which supports the driver model and device tree. Signed-off-by: Wenyou Yang --- Changes in v2: - Integrate the PATCH {timer: Add Atmel PIT timer driver} to one patch set. - Rebase on latest commit of uboot/master (2d3c4ae35). - Retain the

[U-Boot] [PATCH v2 1/2] driver: timer: Add the Atmel PIT timer driver

2017-08-15 Thread Wenyou Yang
Add the new Atmel PIT timer driver, which supports the driver model and device tree. Signed-off-by: Wenyou Yang --- Changes in v2: None arch/arm/mach-at91/arm926ejs/Makefile | 2 + arch/arm/mach-at91/armv7/Makefile | 2 + drivers/timer/Kconfig | 8 drivers/timer

[U-Boot] [PATCH v2 0/2] driver: timer: Add Atmel PIT timer driver

2017-08-15 Thread Wenyou Yang
). - Retain the CONFIG_SYS_TIMER_COUNTER macro in . - Convert all atmel boards to support the new timer driver. Wenyou Yang (2): driver: timer: Add the Atmel PIT timer driver board: atmel: Use the new PIT timer driver arch/arm/dts/sama5d2.dtsi | 28 arch/arm/mach

[U-Boot] [PATCH] drivers: spi: Remove atmel_dataflash_spi driver

2017-08-08 Thread Wenyou Yang
This driver is replaced by the SPI-flash-based AT45xxx DataFlash driver, which supports the driver model and device tree, the atmel_dataflash_spi driver will not be used any more. Signed-off-by: Wenyou Yang --- drivers/spi/Makefile | 1 - drivers/spi/atmel_dataflash_spi.c | 184

[U-Boot] [PATCH] ARM: dts: ethernut5: Fix the build warning

2017-08-07 Thread Wenyou Yang
63@50 Warning (avoid_default_addr_size): Relying on default #size-cells value for /i2c-gpio-0/pcf8563@50 --->8 Signed-off-by: Wenyou Yang --- arch/arm/dts/ethernut5.dts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/dts/ethernut5.dts b/arch/arm/dts/ethernut5.dts index e07715225f..5

[U-Boot] [PATCH v3 6/6] board: atmel: Add SAMA5D27 SOM1 EK board

2017-08-03 Thread Wenyou Yang
From: Wenyou Yang The SAMA5D27-SiP (System in Package) integrates the SAMA5D2 with 1Gbit DDR2-SDRAM in a single package. The SAMA5D27 SOM1 embeds a 64Mbit QSPI flash, KSZ8081 Phy and Mac-address EEPROM. Signed-off-by: Wenyou Yang --- Changes in v3: - Rebase on the PATCH: Atmel PIT timer

[U-Boot] [PATCH v3 4/6] ARM: at91: mach: Add missing defines of MPDDRC

2017-08-03 Thread Wenyou Yang
Add missing defines of Multiport DDR-SDRAM Controller (MPDDRC). Signed-off-by: Wenyou Yang Reviewed-by: Simon Glass --- Changes in v3: None Changes in v2: None arch/arm/mach-at91/include/mach/atmel_mpddrc.h | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/mach-at91/include

[U-Boot] [PATCH v3 3/6] ARM: at91: spl: Add boot device for boot from QSPI

2017-08-03 Thread Wenyou Yang
Add the boot device for booting from the QSPI flash. Signed-off-by: Wenyou Yang Reviewed-by: Simon Glass --- Changes in v3: None Changes in v2: None arch/arm/mach-at91/spl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-at91/spl.c b/arch/arm/mach-at91/spl.c index

[U-Boot] [PATCH v3 2/6] ARM: at91: spl: Add mck function to lower rate while switching

2017-08-03 Thread Wenyou Yang
happen on SAMA5D2 as we exit from ROM code @396MHz. Add a function pmc_mck_init_down() to allow this sequence. Signed-off-by: Wenyou Yang --- Changes in v3: None Changes in v2: None arch/arm/mach-at91/armv7/clock.c | 36 +++ arch/arm/mach-at91/include/mach

[U-Boot] [PATCH v3 5/6] ARM: at91: Get the Chip ID of SAMA5D2 SiP

2017-08-03 Thread Wenyou Yang
From: Wenyou Yang The SAMA5D2 SiP(System in Package) has different Chip IDs in the CHIPID and CHIP_EXID registers. Signed-off-by: Wenyou Yang Reviewed-by: Simon Glass --- Changes in v3: None Changes in v2: None arch/arm/mach-at91/armv7/sama5d2_devices.c | 26

[U-Boot] [PATCH v3 1/6] ARM: at91: spl: Adjust switching to oscillator for SAMA5D2

2017-08-03 Thread Wenyou Yang
As said in 29.5.7 section of SAMA5D2 datasheet, before switching to the crystal oscillator, a check must be carried out to ensure that the oscillator is present and that its freqency is valid. Signed-off-by: Wenyou Yang Reviewed-by: Simon Glass --- Changes in v3: None Changes in v2: None

[U-Boot] [PATCH v3 0/6] board: atmel: Add new board SAMA5D27-SOM1-EK board.

2017-08-03 Thread Wenyou Yang
nges in v2: - Add the reviewed-by tag. - Add the help in Kconfig to describe the board and peripherals. - Add the code to display the company's logo and board information. - Replace the code to set the ethernet mac address with the common code from the board/atmel/common folder. Wenyou

[U-Boot] [PATCH 3/5] ARM: at91: Remove hardware.h included in configs

2017-08-03 Thread Wenyou Yang
From: Wenyou Yang As said in READRE.kconfig, include/configs/*.h will be removed after all options are switched to Kconfig. As the first step, remove the follow line from include/configs/*.h. #include Signed-off-by: Wenyou Yang --- arch/arm/mach-at91/atmel_sfr.c | 1 + arch/arm/mach

[U-Boot] [PATCH 4/5] ARM: at91: spl: Add macro CONFIG_XXXX_BOOT support

2017-08-03 Thread Wenyou Yang
Use the CONFIG__BOOT to indicate the boot media, instead of the CONFIG_SYS_USE_ option, which is declared by CONFIG_SYS_EXTRA_OPTIONS option. Signed-off-by: Wenyou Yang --- arch/arm/mach-at91/spl.c | 16 ++-- 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a

[U-Boot] [PATCH 5/5] configs: at91: Remove CONFIG_SYS_EXTRA_OPTIONS assignment

2017-08-03 Thread Wenyou Yang
To remove the assignment of CONFIG_SYS_EXTRA_OPTIONS option, which is deprecated, use the CONFIG__BOOT options to indicate the boot media, and the SoC is selected by the board. Signed-off-by: Wenyou Yang --- board/atmel/at91sam9m10g45ek/at91sam9m10g45ek.c | 4 ++-- board/atmel

[U-Boot] [PATCH 2/5] ARM: at91: Add the SoC options to Kconfig

2017-08-03 Thread Wenyou Yang
From: Wenyou Yang To prepare to remove the SoCs options such as SAMA5D2, SAMA5D3 and SAMA5D4 from the CONFIG_SYS_EXTRA_OPTIONS option which is deprecated, add the SoC options to Kconfig. Signed-off-by: Wenyou Yang --- arch/arm/mach-at91/Kconfig | 108

[U-Boot] [PATCH 1/5] ARM: at91: Move CONFIG_AT91FAMILY option to Kconfig

2017-08-03 Thread Wenyou Yang
From: Wenyou Yang Move the CONFIG_AT91FAMILY option from include/mach/.h header file to Kconfig. Signed-off-by: Wenyou Yang --- arch/arm/mach-at91/Kconfig| 3 +++ arch/arm/mach-at91/include/mach/at91rm9200.h | 1 - arch/arm/mach-at91/include/mach/at91sam9260.h | 5

[U-Boot] [PATCH 0/5] configs: at91: Remove value of CONFIG_SYS_EXTRA_OPTIONS option

2017-08-03 Thread Wenyou Yang
The CONFIG_SYS_EXTRA_OPTIONS option is deprecated, remove the value of this option from the board default config files. Wenyou Yang (5): ARM: at91: Move CONFIG_AT91FAMILY option to Kconfig ARM: at91: Add the SoC options to Kconfig ARM: at91: Remove hardware.h included in configs ARM

[U-Boot] [PATCH] board: atmel: Enable to use new timer driver

2017-08-03 Thread Wenyou Yang
Use the Atmel PIT timer driver which supports the driver model and device tree. Signed-off-by: Wenyou Yang --- The patch is based on, [PATCH] timer: Add Atmel PIT timer driver https://lists.denx.de/pipermail/u-boot/2017-August/300788.html arch/arm/dts/sama5d2.dtsi

  1   2   3   4   5   6   7   8   9   >