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.
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
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
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
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
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
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
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
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
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
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
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
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
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
-#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
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
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
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
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
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
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
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
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(-)
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
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.
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
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
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
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.
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
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(+)
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
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
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
.
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
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
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
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 +
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
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
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
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
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 +++
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 +---
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
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
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
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
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
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
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
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
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 +---
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
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
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
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
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-
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
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
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
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
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
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
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
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
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 |
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
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
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
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
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
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
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 -
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
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
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
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
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
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
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
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
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
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
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
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
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
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-
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
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
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
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
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
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
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
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_
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/
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
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
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 - 100 of 837 matches
Mail list logo