[OpenWrt-Devel] [PATCH v2 4/5] mvebu: add support for the Armada XP GP board (DB-MV784MP-GP)

2014-02-02 Thread Seif Mazareeb
This Armada XP GP board from Marvell comes with:

* 2GB DDR3 DIMM
* 1GB NAND flash (8-bit interface)
* 16MB NOR flash (16-bot interrface)
* 16MB SPI flash
* SDIO module
* 3 PCIe
* 1 SATA link
* 2 USB EHCI
* 1 internal SSD
* 4 Ethernet Gigabit
* 1 RS232 port over USB

Signed-off-by: Seif Mazareeb seif.mazar...@gmail.com
---
 target/linux/mvebu/base-files/lib/mvebu.sh |3 +++
 target/linux/mvebu/image/Makefile  |2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/target/linux/mvebu/base-files/lib/mvebu.sh 
b/target/linux/mvebu/base-files/lib/mvebu.sh
index 727b6b5..5bc35ef 100644
--- a/target/linux/mvebu/base-files/lib/mvebu.sh
+++ b/target/linux/mvebu/base-files/lib/mvebu.sh
@@ -28,6 +28,9 @@ mvebu_board_detect() {
*PlatHome OpenBlocks AX3-4 board)
name=openblocks-ax3-4
;;
+   *Marvell Armada XP GP Board)
+   name=armada-xp-gp
+   ;;
esac
 
[ -z $name ]  name=unknown
diff --git a/target/linux/mvebu/image/Makefile 
b/target/linux/mvebu/image/Makefile
index 1e4a791..e89530a 100644
--- a/target/linux/mvebu/image/Makefile
+++ b/target/linux/mvebu/image/Makefile
@@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk
 include $(INCLUDE_DIR)/image.mk
 
 TARGET_DTBS := armada-xp-db armada-370-db armada-xp-openblocks-ax3-4 
armada-370-mirabox \
-   armada-370-rd
+   armada-370-rd armada-xp-gp
 
 LOADADDR:=0x8000
 
-- 
1.7.9.5
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH v2 5/5] mvebu: update kernel config

2014-02-02 Thread Seif Mazareeb
Enabling the NAND controller on the mvebu target.

Signed-off-by: Seif Mazareeb seif.mazar...@gmail.com
---
 target/linux/mvebu/config-3.10 |4 
 1 file changed, 4 insertions(+)

diff --git a/target/linux/mvebu/config-3.10 b/target/linux/mvebu/config-3.10
index a8cc779..38acc17 100644
--- a/target/linux/mvebu/config-3.10
+++ b/target/linux/mvebu/config-3.10
@@ -168,8 +168,12 @@ CONFIG_MODULES_USE_ELF_REL=y
 CONFIG_MSDOS_FS=y
 CONFIG_MTD_CFI_STAA=y
 CONFIG_MTD_M25P80=y
+CONFIG_MTD_NAND=y
+CONFIG_MTD_NAND_ECC=y
+CONFIG_MTD_NAND_PXA3xx=y
 CONFIG_MTD_OF_PARTS=y
 CONFIG_MTD_PHYSMAP_OF=y
+# CONFIG_MTD_SM_COMMON is not set
 CONFIG_MULTI_IRQ_HANDLER=y
 CONFIG_MUTEX_SPIN_ON_OWNER=y
 CONFIG_MVEBU_CLK_CORE=y
-- 
1.7.9.5
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH 4/5] mvebu: update kernel config

2014-01-30 Thread Seif Mazareeb
The config-3.10 doesn't specify the configuration of the backported PCI
features, and the Marvell EBU Device Bus Controller, this will prevent
a clean compile. This patch enables these features to archive a clean compile
without having to specify the state of these configuration after starting to
compile.

Signed-off-by: Seif Mazareeb seif.mazar...@gmail.com
---
 target/linux/mvebu/config-3.10 |   17 -
 1 file changed, 12 insertions(+), 5 deletions(-)

diff --git a/target/linux/mvebu/config-3.10 b/target/linux/mvebu/config-3.10
index 0fba064..a8cc779 100644
--- a/target/linux/mvebu/config-3.10
+++ b/target/linux/mvebu/config-3.10
@@ -12,7 +12,6 @@ CONFIG_ARCH_MULTI_V7=y
 CONFIG_ARCH_MVEBU=y
 # CONFIG_ARCH_NEEDS_CPU_IDLE_COUPLED is not set
 CONFIG_ARCH_NR_GPIO=0
-# CONFIG_ARCH_OMAP2PLUS is not set
 CONFIG_ARCH_REQUIRE_GPIOLIB=y
 # CONFIG_ARCH_SELECT_MEMORY_MODEL is not set
 # CONFIG_ARCH_SPARSEMEM_DEFAULT is not set
@@ -44,6 +43,7 @@ CONFIG_CACHE_L2X0=y
 CONFIG_CACHE_PL310=y
 CONFIG_CLKDEV_LOOKUP=y
 CONFIG_CLKSRC_MMIO=y
+CONFIG_CLKSRC_OF=y
 CONFIG_CLONE_BACKWARDS=y
 CONFIG_COMMON_CLK=y
 CONFIG_CPU_32v6K=y
@@ -69,6 +69,7 @@ CONFIG_DEBUG_INFO=y
 CONFIG_DEBUG_LL=y
 CONFIG_DEBUG_LL_INCLUDE=debug/mvebu.S
 CONFIG_DEBUG_MVEBU_UART=y
+# CONFIG_DEBUG_MVEBU_UART_ALTERNATE is not set
 # CONFIG_DEBUG_PINCTRL is not set
 CONFIG_DEBUG_UNCOMPRESS=y
 CONFIG_DEBUG_USER=y
@@ -124,6 +125,7 @@ CONFIG_HAVE_FUNCTION_GRAPH_TRACER=y
 CONFIG_HAVE_FUNCTION_TRACER=y
 CONFIG_HAVE_GENERIC_DMA_COHERENT=y
 CONFIG_HAVE_GENERIC_HARDIRQS=y
+CONFIG_HAVE_IDE=y
 CONFIG_HAVE_IRQ_TIME_ACCOUNTING=y
 CONFIG_HAVE_KERNEL_GZIP=y
 CONFIG_HAVE_KERNEL_LZMA=y
@@ -161,6 +163,7 @@ CONFIG_MAGIC_SYSRQ=y
 CONFIG_MARVELL_PHY=y
 CONFIG_MDIO_BOARDINFO=y
 CONFIG_MEMORY=y
+CONFIG_MIGHT_HAVE_PCI=y
 CONFIG_MODULES_USE_ELF_REL=y
 CONFIG_MSDOS_FS=y
 CONFIG_MTD_CFI_STAA=y
@@ -170,15 +173,16 @@ CONFIG_MTD_PHYSMAP_OF=y
 CONFIG_MULTI_IRQ_HANDLER=y
 CONFIG_MUTEX_SPIN_ON_OWNER=y
 CONFIG_MVEBU_CLK_CORE=y
+CONFIG_MVEBU_CLK_COREDIV=y
 CONFIG_MVEBU_CLK_CPU=y
 CONFIG_MVEBU_CLK_GATING=y
+CONFIG_MVEBU_DEVBUS=y
 CONFIG_MVEBU_MBUS=y
 CONFIG_MVMDIO=y
 CONFIG_MVNETA=y
 CONFIG_MV_XOR=y
 CONFIG_NEED_DMA_MAP_STATE=y
 # CONFIG_NEON is not set
-# CONFIG_NET_DMA is not set
 CONFIG_NLS=y
 CONFIG_NLS_CODEPAGE_437=y
 CONFIG_NLS_CODEPAGE_850=y
@@ -196,13 +200,17 @@ CONFIG_OF_IRQ=y
 CONFIG_OF_MDIO=y
 CONFIG_OF_MTD=y
 CONFIG_OF_NET=y
+CONFIG_OF_PCI=y
+CONFIG_OF_PCI_IRQ=y
 CONFIG_OLD_SIGACTION=y
 CONFIG_OLD_SIGSUSPEND3=y
 CONFIG_OUTER_CACHE=y
 CONFIG_OUTER_CACHE_SYNC=y
 CONFIG_PAGEFLAGS_EXTENDED=y
 CONFIG_PAGE_OFFSET=0xC000
-# CONFIG_PCI_SYSCALL is not set
+CONFIG_PCI=y
+CONFIG_PCI_MSI=y
+CONFIG_PCI_MVEBU=y
 CONFIG_PERF_USE_VMALLOC=y
 CONFIG_PHYLIB=y
 CONFIG_PINCONF=y
@@ -246,8 +254,7 @@ CONFIG_UDF_FS=m
 CONFIG_UID16=y
 CONFIG_UIDGID_CONVERTED=y
 CONFIG_UNCOMPRESS_INCLUDE=debug/uncompress.h
-# CONFIG_USB_ARCH_HAS_OHCI is not set
-# CONFIG_USB_ARCH_HAS_XHCI is not set
+CONFIG_USB_ARCH_HAS_XHCI=y
 CONFIG_USB_SUPPORT=y
 CONFIG_USE_GENERIC_SMP_HELPERS=y
 CONFIG_USE_OF=y
-- 
1.7.9.5
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH 5/5] mvebu: add support for the Armada XP GP board (DB-MV784MP-GP)

2014-01-30 Thread Seif Mazareeb
This Armada XP GP board from Marvell comes with:

* 2GB DDR3 DIMM
* 1GB NAND flash (8-bit interface)
* 16MB NOR flash (16-bot interrface)
* 16MB SPI flash
* SDIO module
* 3 PCIe
* 1 SATA link
* 2 USB EHCI
* 1 internal SSD
* 4 Ethernet Gigabit
* 1 RS232 port over USB

Signed-off-by: Seif Mazareeb seif.mazar...@gmail.com
---
 target/linux/mvebu/base-files/lib/mvebu.sh |3 +++
 target/linux/mvebu/image/Makefile  |2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/target/linux/mvebu/base-files/lib/mvebu.sh 
b/target/linux/mvebu/base-files/lib/mvebu.sh
index 727b6b5..5bc35ef 100644
--- a/target/linux/mvebu/base-files/lib/mvebu.sh
+++ b/target/linux/mvebu/base-files/lib/mvebu.sh
@@ -28,6 +28,9 @@ mvebu_board_detect() {
*PlatHome OpenBlocks AX3-4 board)
name=openblocks-ax3-4
;;
+   *Marvell Armada XP GP Board)
+   name=armada-xp-gp
+   ;;
esac
 
[ -z $name ]  name=unknown
diff --git a/target/linux/mvebu/image/Makefile 
b/target/linux/mvebu/image/Makefile
index 1e4a791..e89530a 100644
--- a/target/linux/mvebu/image/Makefile
+++ b/target/linux/mvebu/image/Makefile
@@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk
 include $(INCLUDE_DIR)/image.mk
 
 TARGET_DTBS := armada-xp-db armada-370-db armada-xp-openblocks-ax3-4 
armada-370-mirabox \
-   armada-370-rd
+   armada-370-rd armada-xp-gp
 
 LOADADDR:=0x8000
 
-- 
1.7.9.5
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH 4/5] mvebu: update kernel config

2014-01-30 Thread Seif Mazareeb
Sure thing - will resubmit later today.

Seif

 -Original Message-
 From: openwrt-devel [mailto:openwrt-devel-boun...@lists.openwrt.org] On Behalf
 Of Jonas Gorski
 Sent: Thursday, January 30, 2014 3:39 AM
 To: OpenWrt Development List
 Cc: l...@openwrt.org; Adam Graham
 Subject: Re: [OpenWrt-Devel] [PATCH 4/5] mvebu: update kernel config
 
 On Thu, Jan 30, 2014 at 9:27 AM, Seif Mazareeb seif.mazar...@gmail.com
 wrote:
  The config-3.10 doesn't specify the configuration of the backported PCI
  features, and the Marvell EBU Device Bus Controller, this will prevent
  a clean compile. This patch enables these features to archive a clean
 compile
  without having to specify the state of these configuration after starting to
  compile.
 
 This patch should be merged into patches 1-3 where the kernel config
 symbols get introduced/available, else applying only a subset of these
 patches will break the build (which can be annoying when bisecting).
 
 
 Regards
 Jonas
 ___
 openwrt-devel mailing list
 openwrt-devel@lists.openwrt.org
 https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH]: Backporting of NAND support to mvebu

2014-01-28 Thread Seif Mazareeb
Hi all,

Please find the follow repository:
https://github.com/mazareeb/openwrt/commits/master

This repository adds 5 patches that mainly aim to back port the recently added 
NAND support to mainline to openwrt.
On the way other patches that address other aspects of mvebu are integrated.
The 3 initial patches backport the relevant mainline  patches accepted to 3.11, 
3.12, and 3.13 respectively.
4th Patch updates the kernel config.
5th Patch adds support for the Armada XP GP board (DB-MV784MP-GP).

Main testing platforms are armada-xp-gp, armada-370-rd boards.


Thanks
Seif

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel