[PATCH 00/11] arm: mvebu: SoC consolidation

Sebastian Hesselbarth sebastian.hesselbarth at gmail.com
Sun May 19 14:23:44 EDT 2013


After power-up, Marvell EBU SoCs are common enough to justify common
init code. All SoCs start up with internal registers mapped at 0xd0000000
and Linux wants them remapped to 0xf1000000 which gives ~512M contiguous
address space. As internal registers base address is remapped from within
internal registers itself, we do this remap as soon as possible.

This patch set consolidates lowlevel init for all MVEBU SoCs which is
currently performed on every board supported. Also common console UART
is created. Then Dove, Armada 370/XP, and Kirkwood are moved to use
common init functions, and finally all board specific init is removed
to its bare minimum.

The patch set has been tested on CuBox (Dove), Guruplug (Kirkwood),
Mirabox and OpenBlocks AX3 (Armada 370) by either me or Thomas Petazzoni.

Sebastian Hesselbarth (11):
  arm: mvebu: add more visible SoC separators to Kconfig
  arm: mvebu: introduce common lowlevel and early init
  arm: mvebu: introduce common console UART config
  arm: mvebu: convert Dove to common init
  arm: mvebu: convert Armada 370/XP to common init
  arm: mvebu: convert Kirkwood to common init
  arm: mvebu: convert SolidRun CuBox to common init
  arm: mvebu: convert Globalscale Mirabox to common init
  arm: mvebu: convert PlatHome OpenBlocks AX3 to common init
  arm: mvebu: convert Marvell Armada XP GP board to common init
  arm: mvebu: convert Globalscale Guruplug to common init

 arch/arm/boards/globalscale-guruplug/Makefile      |    3 +-
 .../board.c}                                       |   12 +--
 .../globalscale-guruplug/globalscale-guruplug.c    |   26 -----
 arch/arm/boards/globalscale-guruplug/lowlevel.c    |   26 -----
 arch/arm/boards/globalscale-mirabox/Makefile       |    3 +-
 .../lowlevel.c => globalscale-mirabox/board.c}     |   13 +--
 .../globalscale-mirabox/globalscale-mirabox.c      |   26 -----
 arch/arm/boards/marvell-armada-xp-gp/Makefile      |    3 +-
 arch/arm/boards/marvell-armada-xp-gp/board.c       |   17 ++++
 arch/arm/boards/plathome-openblocks-ax3/Makefile   |    3 +-
 arch/arm/boards/plathome-openblocks-ax3/board.c    |   17 ++++
 arch/arm/boards/plathome-openblocks-ax3/lowlevel.c |   25 -----
 arch/arm/boards/solidrun-cubox/Makefile            |    3 +-
 .../lowlevel.c => solidrun-cubox/board.c}          |   14 +--
 arch/arm/mach-mvebu/Kconfig                        |   30 ++++++
 arch/arm/mach-mvebu/Makefile                       |    2 +
 arch/arm/mach-mvebu/armada-370-xp.c                |  103 ++++++++------------
 arch/arm/mach-mvebu/common.c                       |   57 +++++++++++
 arch/arm/mach-mvebu/dove.c                         |   56 ++++-------
 .../mach-mvebu/include/mach/armada-370-xp-regs.h   |   47 +++++++++
 .../include/mach/common.h}                         |   16 ++-
 arch/arm/mach-mvebu/include/mach/debug_ll.h        |   23 +++--
 arch/arm/mach-mvebu/include/mach/dove-regs.h       |   21 ++--
 arch/arm/mach-mvebu/include/mach/kirkwood-regs.h   |   45 ++++++---
 .../include/mach/lowlevel.h}                       |   16 ++-
 arch/arm/mach-mvebu/kirkwood.c                     |   44 ++++-----
 .../globalscale-mirabox => mach-mvebu}/lowlevel.c  |    6 +-
 27 files changed, 335 insertions(+), 322 deletions(-)
 rename arch/arm/boards/{solidrun-cubox/solidrun-cubox.c => globalscale-guruplug/board.c} (67%)
 delete mode 100644 arch/arm/boards/globalscale-guruplug/globalscale-guruplug.c
 delete mode 100644 arch/arm/boards/globalscale-guruplug/lowlevel.c
 rename arch/arm/boards/{solidrun-cubox/lowlevel.c => globalscale-mirabox/board.c} (66%)
 delete mode 100644 arch/arm/boards/globalscale-mirabox/globalscale-mirabox.c
 create mode 100644 arch/arm/boards/marvell-armada-xp-gp/board.c
 create mode 100644 arch/arm/boards/plathome-openblocks-ax3/board.c
 delete mode 100644 arch/arm/boards/plathome-openblocks-ax3/lowlevel.c
 rename arch/arm/boards/{marvell-armada-xp-gp/lowlevel.c => solidrun-cubox/board.c} (64%)
 create mode 100644 arch/arm/mach-mvebu/common.c
 create mode 100644 arch/arm/mach-mvebu/include/mach/armada-370-xp-regs.h
 rename arch/arm/{boards/marvell-armada-xp-gp/marvell-armada-xp-gp.c => mach-mvebu/include/mach/common.h} (65%)
 rename arch/arm/{boards/plathome-openblocks-ax3/plathome-openblocks-ax3.c => mach-mvebu/include/mach/lowlevel.h} (64%)
 rename arch/arm/{boards/globalscale-mirabox => mach-mvebu}/lowlevel.c (80%)
---
Cc: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
Cc: Sascha Hauer <s.hauer at pengutronix.de>
Cc: barebox at lists.infradead.org
-- 
1.7.10.4




More information about the barebox mailing list