[PATCH 0/5] Initial support for Marvell Dove SoCs
Sebastian Hesselbarth
sebastian.hesselbarth at gmail.com
Sun May 12 09:09:01 EDT 2013
With latest patches from Thomas Petazzoni, barebox now has support for
Marvell MVEBU SoCs. Besides Armada 370/XP there is also Dove and famous
Kirkwood within this SoC family. Therefore, this patch set adds initial
support for the Marvell Dove SoC.
First, recently introduced tools for Marvell MVEBU SoCs are updated to
also reference Dove. The kwboot tools is also extended, as Dove requires
a different procedure for UART bootmode. (Patches 1-2)
Then initial SoC code and clocksource is added, as the timer found on
Dove and Kirkwood is slightly different from Armada 370/XP. It is named
after the Marvell MVEBU SoC subset Orion which Dove and Kirkwood belong
to. (Patch 3)
As first board using Dove, the SolidRun CuBox is added. The whole patch
set also have been tested on that board. (Patch 4)
As setup for the different Marvell MVEBU SoCs depends on the SoC and
to avoid irritation about source file names, existing setup source for
Armada 370/XP is renamed to reflect the purpose of the source file.
(Patch 5)
Note: For Dove and Kirkwood, Linux expects the internal registers to be
remapped to different addresses for some ancient reasons. Linux for Armada
370/XP does not have this requirement. To avoid messing with lowlevel
routines (e.g. debug_ll.h), I do not remap the internal registers in
barebox.
I rather suggest to have some mach hooks at start_linux to perform such
tweaks required to boot linux.
Sebastian Hesselbarth (5):
scripts: kwbimage: add references to Marvell Dove SoC
scripts: kwboot: add support for Marvell Dove
arm: initial support for Marvell Dove SoCs
arm: add basic support for SolidRun CuBox
arm: mach-mvebu: rename Armada 370/XP core code
arch/arm/Kconfig | 1 -
arch/arm/Makefile | 1 +
arch/arm/boards/solidrun-cubox/Makefile | 2 +
arch/arm/boards/solidrun-cubox/config.h | 4 +
arch/arm/boards/solidrun-cubox/kwbimage.cfg | 39 ++++++
arch/arm/boards/solidrun-cubox/lowlevel.c | 26 ++++
arch/arm/boards/solidrun-cubox/solidrun-cubox.c | 28 ++++
arch/arm/configs/solidrun_cubox_defconfig | 9 ++
arch/arm/mach-mvebu/Kconfig | 21 +++
arch/arm/mach-mvebu/Makefile | 4 +-
arch/arm/mach-mvebu/armada-370-xp.c | 142 ++++++++++++++++++++
arch/arm/mach-mvebu/core.c | 142 --------------------
arch/arm/mach-mvebu/dove.c | 161 +++++++++++++++++++++++
arch/arm/mach-mvebu/include/mach/dove-regs.h | 59 +++++++++
arch/arm/mach-mvebu/include/mach/dove.h | 23 ++++
drivers/clocksource/Kconfig | 4 +
drivers/clocksource/Makefile | 1 +
drivers/clocksource/orion.c | 76 +++++++++++
scripts/kwbimage.c | 9 +-
scripts/kwboot.c | 31 +++--
20 files changed, 626 insertions(+), 157 deletions(-)
create mode 100644 arch/arm/boards/solidrun-cubox/Makefile
create mode 100644 arch/arm/boards/solidrun-cubox/config.h
create mode 100644 arch/arm/boards/solidrun-cubox/kwbimage.cfg
create mode 100644 arch/arm/boards/solidrun-cubox/lowlevel.c
create mode 100644 arch/arm/boards/solidrun-cubox/solidrun-cubox.c
create mode 100644 arch/arm/configs/solidrun_cubox_defconfig
create mode 100644 arch/arm/mach-mvebu/armada-370-xp.c
delete mode 100644 arch/arm/mach-mvebu/core.c
create mode 100644 arch/arm/mach-mvebu/dove.c
create mode 100644 arch/arm/mach-mvebu/include/mach/dove-regs.h
create mode 100644 arch/arm/mach-mvebu/include/mach/dove.h
create mode 100644 drivers/clocksource/orion.c
---
Cc: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
Cc: Ezequiel Garcia <ezequiel.garcia at free-electrons.com>
Cc: barebox at lists.infradead.org
--
1.7.10.4
More information about the barebox
mailing list