Skip to contentSkip to conversation

cpu: at91: add driver for CPU

PATCH New Claudiu Beznea 2 participants 2 messages Oct 1, 2020 – Oct 5, 2020 Arm/Microchip (AT91) SoC support

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 cpu: at91: add driver for CPU

Add basic CPU driver use to retrieve information about CPU itself.

---

Changes in v2:
- get rid of compilation warnings
- rebase on top of "MAINTAINERS: add Microchip PIT64B timer" patch

 MAINTAINERS            |   1 +
 drivers/cpu/Makefile   |   1 +
 drivers/cpu/at91_cpu.c | 123 +++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 125 insertions(+)
 create mode 100644 drivers/cpu/at91_cpu.c
MAINTAINERS +1 -0
index 85e51855c488..91b06b49bd78 100644
@@ -291,6 +291,7 @@ S:	Maintained
 T:	git https://gitlab.denx.de/u-boot/custodians/u-boot-atmel.git
 F:	arch/arm/mach-at91/
 F:	board/atmel/
+F:	drivers/cpu/at91_cpu.c
 F:	drivers/misc/microchip_flexcom.c
 F:	drivers/timer/mchp-pit64b-timer.c
 
drivers/cpu/Makefile +1 -0
index 0b5dbc7c88e6..c8532637ca7c 100644
@@ -8,6 +8,7 @@ obj-$(CONFIG_CPU) += cpu-uclass.o
 
 obj-$(CONFIG_ARCH_BMIPS) += bmips_cpu.o
 obj-$(CONFIG_ARCH_IMX8) += imx8_cpu.o
+obj-$(CONFIG_ARCH_AT91) += at91_cpu.o
 obj-$(CONFIG_CPU_MPC83XX) += mpc83xx_cpu.o
 obj-$(CONFIG_CPU_RISCV) += riscv_cpu.o
 obj-$(CONFIG_SANDBOX) += cpu_sandbox.o
drivers/cpu/at91_cpu.c new file +123 -0

123 lines not on this page · raw message

Signature · 1 line
2.7.4
#1 lore raw

PATCH v2 1/1 cpu: at91: add driver for CPU

Quoted 9 lines · Claudiu Beznea

Add basic CPU driver use to retrieve information about CPU itself.

---

Changes in v2:
- get rid of compilation warnings
- rebase on top of "MAINTAINERS: add Microchip PIT64B timer" patch

Quoted 5 lines
  MAINTAINERS            |   1 +
  drivers/cpu/Makefile   |   1 +
  drivers/cpu/at91_cpu.c | 123 +++++++++++++++++++++++++++++++++++++++++++++++++
  3 files changed, 125 insertions(+)

create mode 100644 drivers/cpu/at91_cpu.c

Applied to u-boot-atmel/next
Thanks !