itial frequency before probing the OHCI/EHCI
driver. Furthermore enable this driver in the defconfigs.
Changes in v2:
- fix build error for sam9x60_curiosity_mmc1_defconfig
- took over the upstream process from Sergiu
Claudiu Beznea (1):
clk: at91: pmc: export clock setup to pmc
Sergiu Moga (4):
: Claudiu Beznea
Signed-off-by: Claudiu Beznea
---
drivers/clk/at91/Kconfig | 7 ++
drivers/clk/at91/Makefile | 1 +
drivers/clk/at91/clk-sam9x60-usb.c | 157 +
drivers/clk/at91/pmc.h | 11 ++
4 files changed, 176 insertions
From: Sergiu Moga
Register into DM the clocks required to properly enable USB functionality
within the bootloader.
Signed-off-by: Sergiu Moga
Reviewed-by: Claudiu Beznea
Signed-off-by: Claudiu Beznea
---
drivers/clk/at91/sam9x60.c | 33 +
1 file changed, 33
From: Sergiu Moga
In order for some of the functionalities, such as the USB clocks,
to work properly we need some clocks to be properly initialised
at the very beginning of booting.
Signed-off-by: Sergiu Moga
Reviewed-by: Claudiu Beznea
Signed-off-by: Claudiu Beznea
---
drivers/clk/at91
Clock setup was intended for setting clocks at boot time on SAMA7G5,
e.g. for root clocks like PLLs, that were used to feed IPs needed alive
in u-boot (e.g. Ethernet clock feed by a PLL). Export this functionality
to all at91 clocks as it may be necessary on other SoCs.
Signed-off-by: Claudiu
From: Sergiu Moga
Add the configs required to use the SAM9X60's USB clock.
Signed-off-by: Sergiu Moga
Reviewed-by: Claudiu Beznea
[claudiu.beznea: added CONFIG_AT91_SAM9X60_USB to
sam9x60_curiosity_mmc1_defconfig]
Signed-off-by: Claudiu Beznea
---
configs/sam9x60_curiosity_mmc1_defc
filled.
Signed-off-by: Claudiu Beznea
---
drivers/net/macb.c | 53 +
1 file changed, 41 insertions(+), 12 deletions(-)
diff --git a/drivers/net/macb.c b/drivers/net/macb.c
index 2225b33ff651..097d57871093 100644
--- a/drivers/net/macb.c
+++ b
Hi,
This series add support for SAMA7G5 ethernet interfaces: one
gigabit interface and one 10/100Mbps interface.
Thank you,
Claudiu Beznea
Changes in v3:
- get rid of patch 1/6 from v2 as it was already integrated from patch series
at [1]
- rebase on top of current master branch
Changes in
clk_set_rate() returns the set rate in case of success and a
negative number in case of failure. Consider failure only the
negative numbers.
Fixes: 3ef6de157 ("dm: net: macb: Implement link speed change callback")
Signed-off-by: Claudiu Beznea
---
drivers/net/macb.c | 2 +-
1 fi
Add support for SAMA7G5 GMAC.
Signed-off-by: Claudiu Beznea
---
drivers/net/macb.c | 33 +
1 file changed, 33 insertions(+)
diff --git a/drivers/net/macb.c b/drivers/net/macb.c
index 80ed58d4b908..e87ffd9be3ed 100644
--- a/drivers/net/macb.c
+++ b/drivers/net
Add support for SAMA7G5 EMAC.
Signed-off-by: Claudiu Beznea
---
drivers/net/macb.c | 9 +
1 file changed, 9 insertions(+)
diff --git a/drivers/net/macb.c b/drivers/net/macb.c
index e87ffd9be3ed..f71331827ca0 100644
--- a/drivers/net/macb.c
+++ b/drivers/net/macb.c
@@ -1482,12 +1482,21
Take into account all RGMII interface types. Depending on it
the RGMII PHY's timings are setup.
Signed-off-by: Claudiu Beznea
---
drivers/net/macb.c | 5 -
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/drivers/net/macb.c b/drivers/net/macb.c
index f71331827ca0..6e26467
Check hw and hw->dev before dereference it.
Signed-off-by: Claudiu Beznea
Reviewed-by: Simon Glass
---
drivers/clk/clk.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c
index 786f4e887e7a..319808d433f5 100644
--- a/drivers/clk/clk.c
+++ b/driv
that reparent a device. This will be used in clk-uclass.c
to reparent a clock device.
Signed-off-by: Claudiu Beznea
Reviewed-by: Simon Glass
---
drivers/core/device.c| 22 ++
include/dm/device-internal.h | 9 +++
test/dm/core.c
Signed-off-by: Claudiu Beznea
Reviewed-by: Simon Glass
---
drivers/clk/clk-uclass.c | 11 ++-
test/dm/clk_ccf.c| 27 +++
2 files changed, 37 insertions(+), 1 deletion(-)
diff --git a/drivers/clk/clk-uclass.c b/drivers/clk/clk-uclass.c
index 934cd5787a5c.
: 1d7993d1d0ef ("clk: Port Linux common clock framework [CCF] for imx6q to
U-boot (tag: v5.1.12)")
Signed-off-by: Claudiu Beznea
Reviewed-by: Simon Glass
---
drivers/clk/clk-uclass.c | 37 +
1 file changed, 33 insertions(+), 4 deletions(-)
diff --git a/drive
ag is needed in there).
Also patch 3/21 has been added to support clock re-reparenting (this
is minimal support and hope it doesn't break anything if used).
Thank you,
Claudiu Beznea
Changes in v3:
- collected remaining Reviewed-by tags
- rebase on top of latest master branch:
e5df264e7aac (&q
Do not disable clock if it is a critical one.
Signed-off-by: Claudiu Beznea
Reviewed-by: Simon Glass
---
drivers/clk/clk-uclass.c | 3 +++
test/dm/clk_ccf.c| 32 +++-
2 files changed, 34 insertions(+), 1 deletion(-)
diff --git a/drivers/clk/clk-uclass.c b
Add sckc driver compatible with common clock framework. Driver
implements slow clock support for SAM9X60 compatible IPs (in this
list it is also present SAMA7G5's slow clock IP).
Signed-off-by: Claudiu Beznea
---
drivers/clk/at91/Makefile | 2 +-
drivers/clk/at91/sckc.c
Add helper for clock drivers. These will be used by following
commits in the process of switching AT91 clock drivers to CCF.
Signed-off-by: Claudiu Beznea
---
drivers/clk/at91/pmc.c | 91 ++
drivers/clk/at91/pmc.h | 13
2 files changed
Add pre-requisite headers for AT91 clock architecture. These
are based on already present files on Linux and will be used
by following commits for AT91 CCF clock drivers.
Signed-off-by: Claudiu Beznea
---
include/dt-bindings/clk/at91.h | 22
include/linux/clk/at91_pmc.h | 247
Add clk-master driver compatible with common clock framework.
Signed-off-by: Claudiu Beznea
---
drivers/clk/at91/Makefile | 2 +-
drivers/clk/at91/clk-master.c | 156 ++
drivers/clk/at91/pmc.h| 21 ++
3 files changed, 178 insertions
Add clk-main driver compatible with common clock framework.
Signed-off-by: Claudiu Beznea
---
drivers/clk/at91/Makefile | 2 +-
drivers/clk/at91/clk-main.c | 387
drivers/clk/at91/pmc.h | 10 ++
3 files changed, 398 insertions(+), 1
Move clock code to compat.c to allow switching to CCF
without mixing CCF code with non CCF code. This prepares the
field for next commits.
Signed-off-by: Claudiu Beznea
---
drivers/clk/at91/Makefile | 13 +-
drivers/clk/at91/clk-generated.c | 178 ---
drivers/clk/at91/clk
Add UTMI support for SAMA7G5. SAMA7G5's UTMI control is done via
XTALF register. Values written at bits 2..0 in this register
correspond to the on board crystal oscillator frequency.
Signed-off-by: Claudiu Beznea
---
drivers/clk/at91/clk-utmi.c
Add sam9x60-pll driver compatible with common clock framework.
Signed-off-by: Claudiu Beznea
---
drivers/clk/at91/Kconfig | 7 +
drivers/clk/at91/Makefile | 1 +
drivers/clk/at91/clk-sam9x60-pll.c | 442 +
drivers/clk/at91/pmc.h
Add clk-utmi driver compatible with common clock framework.
Signed-off-by: Claudiu Beznea
---
drivers/clk/at91/Makefile | 1 +
drivers/clk/at91/clk-utmi.c | 165
drivers/clk/at91/pmc.h | 3 +
3 files changed, 169 insertions(+)
create mode
Add master clock (MCK1..MCK4) support for SAMA7G5. SAMA7G5's PMC has
multiple master clocks feeding different subsystems. One of them
feeds image subsystem and is changeable based on image subsystem
needs.
Signed-off-by: Claudiu Beznea
---
drivers/clk/at91/clk-master.c
Add clock support for SAMA7G5.
Signed-off-by: Claudiu Beznea
---
drivers/clk/at91/Makefile |1 +
drivers/clk/at91/sama7g5.c | 1401
2 files changed, 1402 insertions(+)
create mode 100644 drivers/clk/at91/sama7g5.c
diff --git a/drivers/clk/at91
Add clk-programmable driver compatible with common clock framework.
Signed-off-by: Claudiu Beznea
---
drivers/clk/at91/Makefile | 2 +-
drivers/clk/at91/clk-programmable.c | 208
drivers/clk/at91/pmc.h | 17 +++
3 files changed, 226
Add clk-system driver compatible with common clock framework.
Signed-off-by: Claudiu Beznea
---
drivers/clk/at91/Makefile | 2 +-
drivers/clk/at91/clk-system.c | 112 ++
drivers/clk/at91/pmc.h| 3 ++
3 files changed, 116 insertions(+), 1
Add clk-peripheral compatible with common clock framework.
Signed-off-by: Claudiu Beznea
---
drivers/clk/at91/Makefile | 2 +
drivers/clk/at91/clk-peripheral.c | 254 ++
drivers/clk/at91/pmc.h| 16 +++
3 files changed, 272 insertions
Add generic clock ops to be used by every AT91 PMC driver
built on top of CCF.
Signed-off-by: Claudiu Beznea
---
drivers/clk/at91/pmc.c | 71 ++
drivers/clk/at91/pmc.h | 2 ++
2 files changed, 73 insertions(+)
diff --git a/drivers/clk/at91/pmc.c
Add clk-generic driver compatible with common clock framework.
Signed-off-by: Claudiu Beznea
---
drivers/clk/at91/Makefile | 1 +
drivers/clk/at91/clk-generic.c | 202 +
drivers/clk/at91/pmc.h | 6 ++
3 files changed, 209 insertions
SAMA7G5 supports slew rate configuration. Adapt the driver for this.
For switching frequencies lower than 50MHz the slew rate needs to
be enabled. Since most of the pins on SAMA7G5 fall into this category
enabled the slew rate by default.
Signed-off-by: Claudiu Beznea
---
arch/arm/mach-at91
Hi,
This series adds support for slew rate on AT91 PIO4 driver.
The support is enabled on SAMA7G5.
Thank you,
Claudiu Beznea
Claudiu Beznea (2):
dt-bindings: pinctrl: at91-pio4: add slew-rate
pinctrl: at91-pio4: add support for slew-rate
arch/arm/mach-at91/include/mach/atmel_pio4.h
Document slew-rate DT binding for SAMA7G5.
Signed-off-by: Claudiu Beznea
---
doc/device-tree-bindings/pinctrl/atmel,at91-pio4-pinctrl.txt | 7 ---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/doc/device-tree-bindings/pinctrl/atmel,at91-pio4-pinctrl.txt
b/doc/device-tree
Enable CONFIG_CPU for SAM9X60EK configs.
Reported-by: Eugen Hristev
Fixes: a64862284f65 ("clk: at91: sam9x60: add support compatible with
CCF")
Signed-off-by: Claudiu Beznea
---
configs/sam9x60ek_mmc_defconfig | 1 +
configs/sam9x60ek_nandflash_defconfig | 1
via device tree (or any other mechanism).
Thank you,
Claudiu Beznea
Claudiu Beznea (4):
clk: at91: clk-master: split master clock in pres and divider
cpu: at91: add compatible for ARM9260EJ-S
ARM: dts: at91: sam9x60: add bindings for CPU
configs: sam9x60ek: enable CONFIG_CPU
arch/arm/dts
Add bindings for CPU. This will allow displaying correctly the crystal,
CPU and master clock.
Reported-by: Eugen Hristev
Fixes: a64862284f65 ("clk: at91: sam9x60: add support compatible with
CCF")
Signed-off-by: Claudiu Beznea
---
arch/arm/dts/sam9x60.dtsi | 12
1 file c
The crystal, CPU and master clock were not displayed correctly on SAM9X60
after adding CCF clock support. Add compatible for ARM926EJ-S to fix
this.
Reported-by: Eugen Hristev
Fixes: a64862284f65 ("clk: at91: sam9x60: add support compatible with CCF")
Signed-off-by: Claudiu Beznea
--
Split master clock in 2 controlling block: one for prescaler one for
divider. This will allow referencing correctly the CPU clock and
master clock in device trees.
Reported-by: Eugen Hristev
Fixes: a64862284f65 ("clk: at91: sam9x60: add support compatible with
CCF")
Signed-off-by: Clau
Check hw and hw->dev before dereference it.
Signed-off-by: Claudiu Beznea
---
drivers/clk/clk.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c
index 0f55ba751c0f..9fa18e342eaf 100644
--- a/drivers/clk/clk.c
+++ b/drivers/clk/clk.c
@@ -57,6 +5
Check pointer returned by dev_get_parent().
Signed-off-by: Claudiu Beznea
---
drivers/clk/clk-uclass.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/clk/clk-uclass.c b/drivers/clk/clk-uclass.c
index 70df9d410f4c..aa1f11a27c41 100644
--- a/drivers/clk/clk-uclass.c
+++ b/drivers
Do not disable clock if it is a critical one.
Signed-off-by: Claudiu Beznea
---
drivers/clk/clk-uclass.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/clk/clk-uclass.c b/drivers/clk/clk-uclass.c
index b390a6b01c06..958a9490bee2 100644
--- a/drivers/clk/clk-uclass.c
+++ b
that reparent a device. This will be used in clk-uclass.c
to reparent a clock device.
Signed-off-by: Claudiu Beznea
---
drivers/core/device.c| 26 ++
include/dm/device-internal.h | 9 +
2 files changed, 35 insertions(+)
diff --git a/drivers/core/device.c b/dr
ag is needed in there).
Also patch 3/22 has been added to support clock re-reparenting (this
is minimal support and hope it doesn't break anything if used).
Thank you,
Claudiu Beznea
Claudiu Beznea (22):
clk: check hw and hw->dev before dereference it
clk: check pointer returned by d
Signed-off-by: Claudiu Beznea
---
drivers/clk/clk-uclass.c | 11 ++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/drivers/clk/clk-uclass.c b/drivers/clk/clk-uclass.c
index aa1f11a27c41..b390a6b01c06 100644
--- a/drivers/clk/clk-uclass.c
+++ b/drivers/clk/clk-uclass.c
@
Add pre-requisite headers for AT91 clock architecture. These
are based on already present files on Linux and will be used
by following commits for AT91 CCF clock drivers.
Signed-off-by: Claudiu Beznea
---
include/dt-bindings/clk/at91.h | 22
include/linux/clk/at91_pmc.h | 247
Add clk-master driver compatible with common clock framework.
Signed-off-by: Claudiu Beznea
---
drivers/clk/at91/Makefile | 2 +-
drivers/clk/at91/clk-master.c | 156 ++
drivers/clk/at91/pmc.h| 21 ++
3 files changed, 178 insertions
Add clk-main driver compatible with common clock framework.
Signed-off-by: Claudiu Beznea
---
drivers/clk/at91/Makefile | 2 +-
drivers/clk/at91/clk-main.c | 387
drivers/clk/at91/pmc.h | 10 ++
3 files changed, 398 insertions(+), 1
Add sckc driver compatible with common clock framework. Driver
implements slow clock support for SAM9X60 compatible IPs (in this
list it is also present SAMA7G5's slow clock IP).
Signed-off-by: Claudiu Beznea
---
drivers/clk/at91/Makefile | 2 +-
drivers/clk/at91/sckc.c
Add helper for clock drivers. These will be used by following
commits in the process of switching AT91 clock drivers to CCF.
Signed-off-by: Claudiu Beznea
---
drivers/clk/at91/pmc.c | 91 ++
drivers/clk/at91/pmc.h | 13
2 files changed
: 1d7993d1d0ef ("clk: Port Linux common clock framework [CCF] for imx6q to
U-boot (tag: v5.1.12)")
Signed-off-by: Claudiu Beznea
---
drivers/clk/clk-uclass.c | 41 +
1 file changed, 37 insertions(+), 4 deletions(-)
diff --git a/drivers/clk/clk-uclass.c
Add clk-programmable driver compatible with common clock framework.
Signed-off-by: Claudiu Beznea
---
drivers/clk/at91/Makefile | 2 +-
drivers/clk/at91/clk-programmable.c | 208
drivers/clk/at91/pmc.h | 17 +++
3 files changed, 226
Add UTMI support for SAMA7G5. SAMA7G5's UTMI control is done via
XTALF register. Values written at bits 2..0 in this register
correspond to the on board crystal oscillator frequency.
Signed-off-by: Claudiu Beznea
---
drivers/clk/at91/clk-utmi.c
Add clk-system driver compatible with common clock framework.
Signed-off-by: Claudiu Beznea
---
drivers/clk/at91/Makefile | 2 +-
drivers/clk/at91/clk-system.c | 112 ++
drivers/clk/at91/pmc.h| 3 ++
3 files changed, 116 insertions(+), 1
Add master clock (MCK1..MCK4) support for SAMA7G5. SAMA7G5's PMC has
multiple master clocks feeding different subsystems.
Signed-off-by: Claudiu Beznea
---
drivers/clk/at91/clk-master.c | 178 +-
drivers/clk/at91/pmc.h| 5 ++
2 files ch
Add clk-peripheral compatible with common clock framework.
Signed-off-by: Claudiu Beznea
---
drivers/clk/at91/Makefile | 2 +
drivers/clk/at91/clk-peripheral.c | 254 ++
drivers/clk/at91/pmc.h| 16 +++
3 files changed, 272 insertions
Add clk-generic driver compatible with common clock framework.
Signed-off-by: Claudiu Beznea
---
drivers/clk/at91/Makefile | 1 +
drivers/clk/at91/clk-generic.c | 202 +
drivers/clk/at91/pmc.h | 6 ++
3 files changed, 209 insertions
Add generic clock ops to be used by every AT91 PMC driver
built on top of CCF.
Signed-off-by: Claudiu Beznea
---
drivers/clk/at91/pmc.c | 71 ++
drivers/clk/at91/pmc.h | 2 ++
2 files changed, 73 insertions(+)
diff --git a/drivers/clk/at91/pmc.c
Add clock support for SAMA7G5.
Signed-off-by: Claudiu Beznea
---
drivers/clk/at91/Makefile |1 +
drivers/clk/at91/sama7g5.c | 1401
2 files changed, 1402 insertions(+)
create mode 100644 drivers/clk/at91/sama7g5.c
diff --git a/drivers/clk/at91
Add sam9x60-pll driver compatible with common clock framework.
Signed-off-by: Claudiu Beznea
---
drivers/clk/at91/Kconfig | 7 +
drivers/clk/at91/Makefile | 1 +
drivers/clk/at91/clk-sam9x60-pll.c | 442 +
drivers/clk/at91/pmc.h
Move clock code to compat.c to allow switching to CCF
without mixing CCF code with non CCF code. This prepares the
field for next commits.
Signed-off-by: Claudiu Beznea
---
drivers/clk/at91/Makefile | 13 +-
drivers/clk/at91/clk-generated.c | 178 ---
drivers/clk/at91/clk
Add clk-utmi driver compatible with common clock framework.
Signed-off-by: Claudiu Beznea
---
drivers/clk/at91/Makefile | 1 +
drivers/clk/at91/clk-utmi.c | 165
drivers/clk/at91/pmc.h | 3 +
3 files changed, 169 insertions(+)
create mode
ag is needed in there).
Also patch 3/21 has been added to support clock re-reparenting (this
is minimal support and hope it doesn't break anything if used).
Thank you,
Claudiu Beznea
Changes in v2:
- use assert() in patch 1/21
- drop patch 2/22 from previous series
- add sandbox tests
Check hw and hw->dev before dereference it.
Signed-off-by: Claudiu Beznea
---
drivers/clk/clk.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c
index 0f55ba751c0f..56ae1e7e265f 100644
--- a/drivers/clk/clk.c
+++ b/drivers/clk/clk.c
@@ -57,6 +5
: 1d7993d1d0ef ("clk: Port Linux common clock framework [CCF] for imx6q to
U-boot (tag: v5.1.12)")
Signed-off-by: Claudiu Beznea
---
drivers/clk/clk-uclass.c | 37 +
1 file changed, 33 insertions(+), 4 deletions(-)
diff --git a/drivers/clk/clk-uclass.c b/drive
Signed-off-by: Claudiu Beznea
Reviewed-by: Simon Glass
---
drivers/clk/clk-uclass.c | 11 ++-
test/dm/clk_ccf.c| 27 +++
2 files changed, 37 insertions(+), 1 deletion(-)
diff --git a/drivers/clk/clk-uclass.c b/drivers/clk/clk-uclass.c
index 934cd5787a5c.
Do not disable clock if it is a critical one.
Signed-off-by: Claudiu Beznea
Reviewed-by: Simon Glass
---
drivers/clk/clk-uclass.c | 3 +++
test/dm/clk_ccf.c| 32 +++-
2 files changed, 34 insertions(+), 1 deletion(-)
diff --git a/drivers/clk/clk-uclass.c b
that reparent a device. This will be used in clk-uclass.c
to reparent a clock device.
Signed-off-by: Claudiu Beznea
---
drivers/core/device.c| 22 ++
include/dm/device-internal.h | 9 +++
test/dm/core.c | 160 +++
3 files changed
Add pre-requisite headers for AT91 clock architecture. These
are based on already present files on Linux and will be used
by following commits for AT91 CCF clock drivers.
Signed-off-by: Claudiu Beznea
---
include/dt-bindings/clk/at91.h | 22
include/linux/clk/at91_pmc.h | 247
Add sckc driver compatible with common clock framework. Driver
implements slow clock support for SAM9X60 compatible IPs (in this
list it is also present SAMA7G5's slow clock IP).
Signed-off-by: Claudiu Beznea
---
drivers/clk/at91/Makefile | 2 +-
drivers/clk/at91/sckc.c
Add clk-main driver compatible with common clock framework.
Signed-off-by: Claudiu Beznea
---
drivers/clk/at91/Makefile | 2 +-
drivers/clk/at91/clk-main.c | 387
drivers/clk/at91/pmc.h | 10 ++
3 files changed, 398 insertions(+), 1
Add helper for clock drivers. These will be used by following
commits in the process of switching AT91 clock drivers to CCF.
Signed-off-by: Claudiu Beznea
---
drivers/clk/at91/pmc.c | 91 ++
drivers/clk/at91/pmc.h | 13
2 files changed
Move clock code to compat.c to allow switching to CCF
without mixing CCF code with non CCF code. This prepares the
field for next commits.
Signed-off-by: Claudiu Beznea
---
drivers/clk/at91/Makefile | 13 +-
drivers/clk/at91/clk-generated.c | 178 ---
drivers/clk/at91/clk
Add master clock (MCK1..MCK4) support for SAMA7G5. SAMA7G5's PMC has
multiple master clocks feeding different subsystems. One of them
feeds image subsystem and is changeable based on image subsystem
needs.
Signed-off-by: Claudiu Beznea
---
drivers/clk/at91/clk-master.c
Add sam9x60-pll driver compatible with common clock framework.
Signed-off-by: Claudiu Beznea
---
drivers/clk/at91/Kconfig | 7 +
drivers/clk/at91/Makefile | 1 +
drivers/clk/at91/clk-sam9x60-pll.c | 442 +
drivers/clk/at91/pmc.h
Add clk-peripheral compatible with common clock framework.
Signed-off-by: Claudiu Beznea
---
drivers/clk/at91/Makefile | 2 +
drivers/clk/at91/clk-peripheral.c | 254 ++
drivers/clk/at91/pmc.h| 16 +++
3 files changed, 272 insertions
Add clk-master driver compatible with common clock framework.
Signed-off-by: Claudiu Beznea
---
drivers/clk/at91/Makefile | 2 +-
drivers/clk/at91/clk-master.c | 156 ++
drivers/clk/at91/pmc.h| 21 ++
3 files changed, 178 insertions
Add clk-system driver compatible with common clock framework.
Signed-off-by: Claudiu Beznea
---
drivers/clk/at91/Makefile | 2 +-
drivers/clk/at91/clk-system.c | 112 ++
drivers/clk/at91/pmc.h| 3 ++
3 files changed, 116 insertions(+), 1
Add clk-utmi driver compatible with common clock framework.
Signed-off-by: Claudiu Beznea
---
drivers/clk/at91/Makefile | 1 +
drivers/clk/at91/clk-utmi.c | 165
drivers/clk/at91/pmc.h | 3 +
3 files changed, 169 insertions(+)
create mode
Add clk-programmable driver compatible with common clock framework.
Signed-off-by: Claudiu Beznea
---
drivers/clk/at91/Makefile | 2 +-
drivers/clk/at91/clk-programmable.c | 208
drivers/clk/at91/pmc.h | 17 +++
3 files changed, 226
Add UTMI support for SAMA7G5. SAMA7G5's UTMI control is done via
XTALF register. Values written at bits 2..0 in this register
correspond to the on board crystal oscillator frequency.
Signed-off-by: Claudiu Beznea
---
drivers/clk/at91/clk-utmi.c
Add clock support for SAMA7G5.
Signed-off-by: Claudiu Beznea
---
drivers/clk/at91/Makefile |1 +
drivers/clk/at91/sama7g5.c | 1401
2 files changed, 1402 insertions(+)
create mode 100644 drivers/clk/at91/sama7g5.c
diff --git a/drivers/clk/at91
Add clk-generic driver compatible with common clock framework.
Signed-off-by: Claudiu Beznea
---
drivers/clk/at91/Makefile | 1 +
drivers/clk/at91/clk-generic.c | 202 +
drivers/clk/at91/pmc.h | 6 ++
3 files changed, 209 insertions
Add generic clock ops to be used by every AT91 PMC driver
built on top of CCF.
Signed-off-by: Claudiu Beznea
---
drivers/clk/at91/pmc.c | 71 ++
drivers/clk/at91/pmc.h | 2 ++
2 files changed, 73 insertions(+)
diff --git a/drivers/clk/at91/pmc.c
Add Microchip PIT64B timer.
Signed-off-by: Claudiu Beznea
---
Hi Eugen,
I chosed to have it under AT91 hood to not create an entry only for this
driver as there are mostly architecture/subsystem related entries in
MAINTAINERS file.
Thank you,
Claudiu Beznea
MAINTAINERS | 1 +
1 file changed
Add basic CPU driver use to retrieve information about CPU itself.
Signed-off-by: Claudiu Beznea
---
MAINTAINERS| 1 +
drivers/cpu/Makefile | 1 +
drivers/cpu/at91_cpu.c | 123 +
3 files changed, 125 insertions(+)
create mode
Add basic CPU driver use to retrieve information about CPU itself.
Signed-off-by: Claudiu Beznea
---
Changes in v2:
- get rid of compilation warnings
- rebase on top of "MAINTAINERS: add Microchip PIT64B timer" patch
MAINTAINERS| 1 +
drivers/cpu/Makefile | 1 +
d
Hi,
This series adds SAM9X60 clock support, CCF compatible, so that
SAM9X60 based boards (e.g. SAM9X60-EK in this case) to be able
to boot with mainline code.
This series is based on u-boot-atmel/next.
Thank you,
Claudiu Beznea
Claudiu Beznea (7):
board: atmel: sam9x60ek: add
Add SAM9X60 clock support compatible with CCF.
Signed-off-by: Claudiu Beznea
---
drivers/clk/at91/Makefile | 1 +
drivers/clk/at91/sam9x60.c | 594 +
2 files changed, 595 insertions(+)
create mode 100644 drivers/clk/at91/sam9x60.c
diff --git a
Use u-boot,dm-pre-reloc for slow xtal and main xtal.
Signed-off-by: Claudiu Beznea
---
arch/arm/dts/sam9x60.dtsi | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm/dts/sam9x60.dtsi b/arch/arm/dts/sam9x60.dtsi
index 51de586e1900..a4e2576d8e0f 100644
--- a/arch/arm/dts/sam9x60.dtsi
Slow Xtal and Main Xtal are board specific. Add their proper
frequency to board file.
Signed-off-by: Claudiu Beznea
---
arch/arm/dts/sam9x60.dtsi | 2 --
arch/arm/dts/sam9x60ek.dts | 10 ++
2 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/arch/arm/dts/sam9x60.dtsi b
Heap base address is computed based on SYS_INIT_SP_ADDR by
subtracting the SYS_MALLOC_F_LEN value in
board_init_f_init_reserve().
Signed-off-by: Claudiu Beznea
---
include/configs/sam9x60ek.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/include/configs/sam9x60ek.h b
Use CCF compatible for PMC. With this, the board/SoC will be
able to boot.
Signed-off-by: Claudiu Beznea
---
arch/arm/dts/sam9x60.dtsi | 135 -
arch/arm/dts/sam9x60ek-u-boot.dtsi | 52 --
arch/arm/dts/sam9x60ek.dts | 2 +-
3
Use slow clock CCF compatible DT bindings. This will not break
the above functionality as the SoC is not booting with current
PMC bindings.
Signed-off-by: Claudiu Beznea
---
arch/arm/dts/sam9x60.dtsi | 42 +-
arch/arm/dts/sam9x60ek-u-boot.dtsi | 17
Update defconfigs for using common clock framework compatible
clocks.
Signed-off-by: Claudiu Beznea
---
configs/sam9x60ek_mmc_defconfig | 4 +++-
configs/sam9x60ek_nandflash_defconfig | 4 +++-
configs/sam9x60ek_qspiflash_defconfig | 4 +++-
3 files changed, 9 insertions(+), 3 deletions
Heap base address is computed based on SYS_INIT_SP_ADDR by
subtracting the SYS_MALLOC_F_LEN value in
board_init_f_init_reserve().
Signed-off-by: Claudiu Beznea
---
include/configs/sam9x60ek.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/include/configs/sam9x60ek.h b
Hi,
This series adds SAM9X60 clock support, CCF compatible, so that
SAM9X60 based boards (e.g. SAM9X60-EK in this case) to be able
to boot with mainline code.
This series is based on u-boot-atmel/next.
Thank you,
Claudiu Beznea
Changes in v2:
- remove "Alignment should match open parent
1 - 100 of 134 matches
Mail list logo