>From 452d56f86f23641349dd7d96ae99ee9325b1c1a5 Mon Sep 17 00:00:00 2001
From: Nobuhiro Iwamatsu <iwamatsu@debian.org>
Date: Mon, 4 Mar 2013 13:20:13 +0900
Subject: [PATCH] [armhf] Add multiplatform flavour

Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@debian.org>
---
 debian/config/armhf/config.multiplatform |   96 ++++++++++++++++++++++++++++++
 debian/config/armhf/defines              |   11 ++++
 debian/installer/armhf/kernel-versions   |    7 ++-
 3 files changed, 111 insertions(+), 3 deletions(-)
 create mode 100644 debian/config/armhf/config.multiplatform

diff --git a/debian/config/armhf/config.multiplatform b/debian/config/armhf/config.multiplatform
new file mode 100644
index 0000000..cb4ad57
--- /dev/null
+++ b/debian/config/armhf/config.multiplatform
@@ -0,0 +1,96 @@
+##
+## file: arch/arm/Kconfig
+##
+CONFIG_ARCH_MULTIPLATFORM=y
+CONFIG_PLAT_ORION=y
+CONFIG_SMP=y
+CONFIG_SMP_ON_UP=y
+CONFIG_NR_CPUS=4
+CONFIG_HOTPLUG_CPU=y
+CONFIG_HIGHMEM=y
+CONFIG_ARM_APPENDED_DTB=y
+
+##
+## file: arch/arm/mach-mvebu/Kconfig
+##
+CONFIG_ARCH_MVEBU=y
+CONFIG_MACH_ARMADA_370_XP=y
+CONFIG_MACH_ARMADA_370=y
+CONFIG_MACH_ARMADA_XP=y
+
+##
+## file: drivers/ata/Kconfig
+##
+CONFIG_SATA_MV=m
+
+##
+## file: drivers/net/ethernet/marvell/Kconfig
+##
+CONFIG_NET_VENDOR_MARVELL=y
+CONFIG_MVMDIO=y
+CONFIG_MVNETA=y
+
+##
+## file: drivers/net/ethernet/micrel/Kconfig
+##
+CONFIG_NET_VENDOR_MICREL=y
+
+##
+## file: drivers/net/phy/Kconfig
+##
+CONFIG_PHYLIB=y
+CONFIG_MARVELL_PHY=y
+
+##
+## file: drivers/tty/serial/8250/Kconfig
+##
+CONFIG_SERIAL_8250=y
+CONFIG_SERIAL_8250_CONSOLE=y
+CONFIG_SERIAL_8250_NR_UARTS=4
+CONFIG_SERIAL_8250_RUNTIME_UARTS=4
+CONFIG_SERIAL_8250_DW=y
+
+##
+## file: drivers/tty/serial/Kconfig
+##
+CONFIG_SERIAL_CORE=y
+CONFIG_SERIAL_CORE_CONSOLE=y
+
+##
+## file: drivers/pinctrl/mvebu/Kconfig
+##
+CONFIG_PINCTRL_MVEBU=y
+CONFIG_PINCTRL_ARMADA_370=y
+CONFIG_PINCTRL_ARMADA_XP=y
+
+##
+## file: drivers/gpio/Kconfig
+##
+CONFIG_GPIO_SYSFS=y
+CONFIG_GPIO_GENERIC=y
+CONFIG_GPIO_MVEBU=y
+
+##
+## file: drivers/i2c/busses/Kconfig
+##
+CONFIG_I2C_MV64XXX=y
+
+##
+## file: drivers/dma/Kconfig
+##
+CONFIG_ASYNC_TX_ENABLE_CHANNEL_SWITCH=y
+CONFIG_MV_XOR=y
+CONFIG_DMA_ENGINE=y
+
+##
+## file: drivers/clk/mvebu/Kconfig
+##
+CONFIG_MVEBU_CLK_CORE=y
+CONFIG_MVEBU_CLK_CPU=y
+CONFIG_MVEBU_CLK_GATING=y
+
+##
+## file: drivers/clocksource/Kconfig
+##
+CONFIG_CLKSRC_MMIO=y
+CONFIG_ARMADA_370_XP_TIMER=y
diff --git a/debian/config/armhf/defines b/debian/config/armhf/defines
index a9f9437..d01b0db 100644
--- a/debian/config/armhf/defines
+++ b/debian/config/armhf/defines
@@ -1,5 +1,6 @@
 [base]
 flavours:
+ multiplatform
  mx5
  omap
  vexpress
@@ -11,6 +12,16 @@ configs:
  armel/config
  armhf/config
 
+[multiplatform_build]
+image-file: arch/arm/boot/zImage
+
+[multiplatform_description]
+hardware: ARMv7 based platforms
+hardware-long: Currently support Marvell EBU (Engineering Business Unit) Armada family of processors
+
+[multiplatform_image]
+recommends: uboot-mkimage
+
 [mx5_build]
 image-file: arch/arm/boot/zImage
 
diff --git a/debian/installer/armhf/kernel-versions b/debian/installer/armhf/kernel-versions
index cf3465a..9b079f0 100644
--- a/debian/installer/armhf/kernel-versions
+++ b/debian/installer/armhf/kernel-versions
@@ -1,3 +1,4 @@
-# arch version flavour  installedname suffix build-depends
-armhf  -       mx5      -             y      -
-armhf  -       vexpress -             y      -
+# arch version flavour        installedname suffix build-depends
+armhf  -       multiplatform  -             y      -
+armhf  -       mx5            -             y      -
+armhf  -       vexpress       -             y      -
-- 
1.7.10.4

