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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
.
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
: 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
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
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
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
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
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
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
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
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
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
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
: 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
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
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
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
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
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
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
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
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
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
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
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
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
: 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
).
- 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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 - 100 of 843 matches
Mail list logo