All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] [ARM] Dove: add support for CM-A510 machine.
@ 2010-11-15 11:22 Mike Rapoport
  2010-11-15 11:40 ` Catalin Marinas
  2010-11-15 17:30 ` Nicolas Pitre
  0 siblings, 2 replies; 7+ messages in thread
From: Mike Rapoport @ 2010-11-15 11:22 UTC (permalink / raw)
  To: linux-arm-kernel

From: Konstantin Sinyuk <kostyas@compulab.co.il>

Hi Nicolas,
Can you please add the below patch to your orion tree?
Saeed has already reviewed and approved the prevoius version.

v2 changes:
* rebase on top of current Linus tree
* remove .phys_io and .io_pg_offst from machine description

---
Signed-off-by: Konstantin Sinyuk <kostyas@compulab.co.il>
Signed-off-by: Mike Rapoport <mike@compulab.co.il>
---
 arch/arm/mach-dove/Kconfig   |    6 +++
 arch/arm/mach-dove/Makefile  |    1 +
 arch/arm/mach-dove/cm-a510.c |   95 ++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 102 insertions(+), 0 deletions(-)
 create mode 100644 arch/arm/mach-dove/cm-a510.c

diff --git a/arch/arm/mach-dove/Kconfig b/arch/arm/mach-dove/Kconfig
index 3b9a32a..a4ed390 100644
--- a/arch/arm/mach-dove/Kconfig
+++ b/arch/arm/mach-dove/Kconfig
@@ -9,6 +9,12 @@ config MACH_DOVE_DB
 	  Say 'Y' here if you want your kernel to support the
 	  Marvell DB-MV88AP510 Development Board.
 
+ config MACH_CM_A510
+	bool "CompuLab CM-A510 Board"
+	help
+	  Say 'Y' here if you want your kernel to support the
+	  CompuLab CM-A510 Board.
+
 endmenu
 
 endif
diff --git a/arch/arm/mach-dove/Makefile b/arch/arm/mach-dove/Makefile
index 7ab3be5..f74f549 100644
--- a/arch/arm/mach-dove/Makefile
+++ b/arch/arm/mach-dove/Makefile
@@ -1,3 +1,4 @@
 obj-y				+= common.o addr-map.o irq.o pcie.o
 
 obj-$(CONFIG_MACH_DOVE_DB)	+= dove-db-setup.o
+obj-$(CONFIG_MACH_CM_A510)	+= cm-a510.o
diff --git a/arch/arm/mach-dove/cm-a510.c b/arch/arm/mach-dove/cm-a510.c
new file mode 100644
index 0000000..96e0e94
--- /dev/null
+++ b/arch/arm/mach-dove/cm-a510.c
@@ -0,0 +1,95 @@
+/*
+ * arch/arm/mach-dove/cm-a510.c
+ *
+ * Copyright (C) 2010 CompuLab, Ltd.
+ * Konstantin Sinyuk <kostyas@compulab.co.il>
+ *
+ * Based on Marvell DB-MV88AP510-BP Development Board Setup
+ *
+ * This file is licensed under the terms of the GNU General Public
+ * License version 2.  This program is licensed "as is" without any
+ * warranty of any kind, whether express or implied.
+ */
+
+#include <linux/kernel.h>
+#include <linux/init.h>
+#include <linux/platform_device.h>
+#include <linux/ata_platform.h>
+#include <linux/mv643xx_eth.h>
+#include <linux/spi/spi.h>
+#include <linux/spi/flash.h>
+
+#include <asm/mach-types.h>
+#include <asm/mach/arch.h>
+
+#include <mach/dove.h>
+
+#include "common.h"
+
+static struct mv643xx_eth_platform_data cm_a510_ge00_data = {
+	.phy_addr	= MV643XX_ETH_PHY_ADDR_DEFAULT,
+};
+
+static struct mv_sata_platform_data cm_a510_sata_data = {
+	.n_ports        = 1,
+};
+
+/*
+ * SPI Devices:
+ * SPI0: 1M Flash Winbond w25q32bv
+ */
+static const struct flash_platform_data cm_a510_spi_flash_data = {
+	.type		= "w25q32bv",
+};
+
+static struct spi_board_info __initdata cm_a510_spi_flash_info[] = {
+	{
+		.modalias       = "m25p80",
+		.platform_data  = &cm_a510_spi_flash_data,
+		.irq            = -1,
+		.max_speed_hz   = 20000000,
+		.bus_num        = 0,
+		.chip_select    = 0,
+	},
+};
+
+static int __init cm_a510_pci_init(void)
+{
+	if (machine_is_cm_a510())
+		dove_pcie_init(1, 1);
+
+	return 0;
+}
+
+subsys_initcall(cm_a510_pci_init);
+
+/* Board Init */
+static void __init cm_a510_init(void)
+{
+	/*
+	 * Basic Dove setup. Needs to be called early.
+	 */
+	dove_init();
+
+	dove_ge00_init(&cm_a510_ge00_data);
+	dove_ehci0_init();
+	dove_ehci1_init();
+	dove_sata_init(&cm_a510_sata_data);
+	dove_sdio0_init();
+	dove_sdio1_init();
+	dove_spi0_init();
+	dove_spi1_init();
+	dove_uart0_init();
+	dove_uart1_init();
+	dove_i2c_init();
+	spi_register_board_info(cm_a510_spi_flash_info,
+				ARRAY_SIZE(cm_a510_spi_flash_info));
+}
+
+MACHINE_START(CM_A510, "Compulab CM-A510 Board")
+	.boot_params	= 0x00000100,
+	.init_machine	= cm_a510_init,
+	.map_io		= dove_map_io,
+	.init_irq	= dove_init_irq,
+	.timer		= &dove_timer,
+MACHINE_END
-- 
1.7.3.1

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PATCH v2] [ARM] Dove: add support for CM-A510 machine.
  2010-11-15 11:22 [PATCH v2] [ARM] Dove: add support for CM-A510 machine Mike Rapoport
@ 2010-11-15 11:40 ` Catalin Marinas
  2010-11-15 17:30 ` Nicolas Pitre
  1 sibling, 0 replies; 7+ messages in thread
From: Catalin Marinas @ 2010-11-15 11:40 UTC (permalink / raw)
  To: linux-arm-kernel

Mike,

Some minor comments below:

On Mon, 2010-11-15 at 11:22 +0000, Mike Rapoport wrote:
> From: Konstantin Sinyuk <kostyas@compulab.co.il>
> 
> Hi Nicolas,
> Can you please add the below patch to your orion tree?
> Saeed has already reviewed and approved the prevoius version.

Some better description of the patch rather than internal
communication :)

> v2 changes:
> * rebase on top of current Linus tree
> * remove .phys_io and .io_pg_offst from machine description

The changelog can go after the '---' line.

> ---
> Signed-off-by: Konstantin Sinyuk <kostyas@compulab.co.il>
> Signed-off-by: Mike Rapoport <mike@compulab.co.il>

The signed-off-by lines will be ignored by 'git am' as they come after
the '---' line. Should be moved above.

-- 
Catalin

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [PATCH v2] [ARM] Dove: add support for CM-A510 machine.
  2010-11-15 11:22 [PATCH v2] [ARM] Dove: add support for CM-A510 machine Mike Rapoport
  2010-11-15 11:40 ` Catalin Marinas
@ 2010-11-15 17:30 ` Nicolas Pitre
  2010-11-16  6:55   ` Mike Rapoport
  1 sibling, 1 reply; 7+ messages in thread
From: Nicolas Pitre @ 2010-11-15 17:30 UTC (permalink / raw)
  To: linux-arm-kernel

On Mon, 15 Nov 2010, Mike Rapoport wrote:

> From: Konstantin Sinyuk <kostyas@compulab.co.il>
> 
> Hi Nicolas,
> Can you please add the below patch to your orion tree?
> Saeed has already reviewed and approved the prevoius version.

Sure. but please resent with the appropriate formatting for the commit 
log (Catalin pointed that out already) and add the Reviewed-by: tags 
from Saeed as appropriate.


Nicolas

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [PATCH v2] [ARM] Dove: add support for CM-A510 machine.
  2010-11-15 17:30 ` Nicolas Pitre
@ 2010-11-16  6:55   ` Mike Rapoport
  2010-11-22  7:39     ` saeed bishara
  0 siblings, 1 reply; 7+ messages in thread
From: Mike Rapoport @ 2010-11-16  6:55 UTC (permalink / raw)
  To: linux-arm-kernel

From: Konstantin Sinyuk <kostyas@compulab.co.il>

This patch adds support for CM-A510 machine

Signed-off-by: Konstantin Sinyuk <kostyas@compulab.co.il>
Signed-off-by: Mike Rapoport <mike@compulab.co.il>
Reviewed-by: Saeed Bishara <saeed@marvell.com>
---
v2 changes:
* rebase on top of current Linus tree
* remove .phys_io and .io_pg_offst from machine description

 arch/arm/mach-dove/Kconfig   |    6 +++
 arch/arm/mach-dove/Makefile  |    1 +
 arch/arm/mach-dove/cm-a510.c |   95 ++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 102 insertions(+), 0 deletions(-)
 create mode 100644 arch/arm/mach-dove/cm-a510.c

diff --git a/arch/arm/mach-dove/Kconfig b/arch/arm/mach-dove/Kconfig
index 3b9a32a..a4ed390 100644
--- a/arch/arm/mach-dove/Kconfig
+++ b/arch/arm/mach-dove/Kconfig
@@ -9,6 +9,12 @@ config MACH_DOVE_DB
 	  Say 'Y' here if you want your kernel to support the
 	  Marvell DB-MV88AP510 Development Board.
 
+ config MACH_CM_A510
+	bool "CompuLab CM-A510 Board"
+	help
+	  Say 'Y' here if you want your kernel to support the
+	  CompuLab CM-A510 Board.
+
 endmenu
 
 endif
diff --git a/arch/arm/mach-dove/Makefile b/arch/arm/mach-dove/Makefile
index 7ab3be5..f74f549 100644
--- a/arch/arm/mach-dove/Makefile
+++ b/arch/arm/mach-dove/Makefile
@@ -1,3 +1,4 @@
 obj-y				+= common.o addr-map.o irq.o pcie.o
 
 obj-$(CONFIG_MACH_DOVE_DB)	+= dove-db-setup.o
+obj-$(CONFIG_MACH_CM_A510)	+= cm-a510.o
diff --git a/arch/arm/mach-dove/cm-a510.c b/arch/arm/mach-dove/cm-a510.c
new file mode 100644
index 0000000..96e0e94
--- /dev/null
+++ b/arch/arm/mach-dove/cm-a510.c
@@ -0,0 +1,95 @@
+/*
+ * arch/arm/mach-dove/cm-a510.c
+ *
+ * Copyright (C) 2010 CompuLab, Ltd.
+ * Konstantin Sinyuk <kostyas@compulab.co.il>
+ *
+ * Based on Marvell DB-MV88AP510-BP Development Board Setup
+ *
+ * This file is licensed under the terms of the GNU General Public
+ * License version 2.  This program is licensed "as is" without any
+ * warranty of any kind, whether express or implied.
+ */
+
+#include <linux/kernel.h>
+#include <linux/init.h>
+#include <linux/platform_device.h>
+#include <linux/ata_platform.h>
+#include <linux/mv643xx_eth.h>
+#include <linux/spi/spi.h>
+#include <linux/spi/flash.h>
+
+#include <asm/mach-types.h>
+#include <asm/mach/arch.h>
+
+#include <mach/dove.h>
+
+#include "common.h"
+
+static struct mv643xx_eth_platform_data cm_a510_ge00_data = {
+	.phy_addr	= MV643XX_ETH_PHY_ADDR_DEFAULT,
+};
+
+static struct mv_sata_platform_data cm_a510_sata_data = {
+	.n_ports        = 1,
+};
+
+/*
+ * SPI Devices:
+ * SPI0: 1M Flash Winbond w25q32bv
+ */
+static const struct flash_platform_data cm_a510_spi_flash_data = {
+	.type		= "w25q32bv",
+};
+
+static struct spi_board_info __initdata cm_a510_spi_flash_info[] = {
+	{
+		.modalias       = "m25p80",
+		.platform_data  = &cm_a510_spi_flash_data,
+		.irq            = -1,
+		.max_speed_hz   = 20000000,
+		.bus_num        = 0,
+		.chip_select    = 0,
+	},
+};
+
+static int __init cm_a510_pci_init(void)
+{
+	if (machine_is_cm_a510())
+		dove_pcie_init(1, 1);
+
+	return 0;
+}
+
+subsys_initcall(cm_a510_pci_init);
+
+/* Board Init */
+static void __init cm_a510_init(void)
+{
+	/*
+	 * Basic Dove setup. Needs to be called early.
+	 */
+	dove_init();
+
+	dove_ge00_init(&cm_a510_ge00_data);
+	dove_ehci0_init();
+	dove_ehci1_init();
+	dove_sata_init(&cm_a510_sata_data);
+	dove_sdio0_init();
+	dove_sdio1_init();
+	dove_spi0_init();
+	dove_spi1_init();
+	dove_uart0_init();
+	dove_uart1_init();
+	dove_i2c_init();
+	spi_register_board_info(cm_a510_spi_flash_info,
+				ARRAY_SIZE(cm_a510_spi_flash_info));
+}
+
+MACHINE_START(CM_A510, "Compulab CM-A510 Board")
+	.boot_params	= 0x00000100,
+	.init_machine	= cm_a510_init,
+	.map_io		= dove_map_io,
+	.init_irq	= dove_init_irq,
+	.timer		= &dove_timer,
+MACHINE_END
-- 
1.7.3.1

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PATCH v2] [ARM] Dove: add support for CM-A510 machine.
  2010-11-16  6:55   ` Mike Rapoport
@ 2010-11-22  7:39     ` saeed bishara
  2010-11-29 12:51       ` Mike Rapoport
  0 siblings, 1 reply; 7+ messages in thread
From: saeed bishara @ 2010-11-22  7:39 UTC (permalink / raw)
  To: linux-arm-kernel

On Tue, Nov 16, 2010 at 8:55 AM, Mike Rapoport <mike@compulab.co.il> wrote:
> From: Konstantin Sinyuk <kostyas@compulab.co.il>
>
> This patch adds support for CM-A510 machine
>
> Signed-off-by: Konstantin Sinyuk <kostyas@compulab.co.il>
> Signed-off-by: Mike Rapoport <mike@compulab.co.il>
> Reviewed-by: Saeed Bishara <saeed@marvell.com>
 Acked-by: Saeed Bishara <saeed@marvell.com>
> ---
> v2 changes:
> * rebase on top of current Linus tree
> * remove .phys_io and .io_pg_offst from machine description
>
> ?arch/arm/mach-dove/Kconfig ? | ? ?6 +++
> ?arch/arm/mach-dove/Makefile ?| ? ?1 +
> ?arch/arm/mach-dove/cm-a510.c | ? 95 ++++++++++++++++++++++++++++++++++++++++++
> ?3 files changed, 102 insertions(+), 0 deletions(-)
> ?create mode 100644 arch/arm/mach-dove/cm-a510.c
>
> diff --git a/arch/arm/mach-dove/Kconfig b/arch/arm/mach-dove/Kconfig
> index 3b9a32a..a4ed390 100644
> --- a/arch/arm/mach-dove/Kconfig
> +++ b/arch/arm/mach-dove/Kconfig
> @@ -9,6 +9,12 @@ config MACH_DOVE_DB
> ? ? ? ? ?Say 'Y' here if you want your kernel to support the
> ? ? ? ? ?Marvell DB-MV88AP510 Development Board.
>
> + config MACH_CM_A510
> + ? ? ? bool "CompuLab CM-A510 Board"
> + ? ? ? help
> + ? ? ? ? Say 'Y' here if you want your kernel to support the
> + ? ? ? ? CompuLab CM-A510 Board.
> +
> ?endmenu
>
> ?endif
> diff --git a/arch/arm/mach-dove/Makefile b/arch/arm/mach-dove/Makefile
> index 7ab3be5..f74f549 100644
> --- a/arch/arm/mach-dove/Makefile
> +++ b/arch/arm/mach-dove/Makefile
> @@ -1,3 +1,4 @@
> ?obj-y ? ? ? ? ? ? ? ? ? ? ? ? ?+= common.o addr-map.o irq.o pcie.o
>
> ?obj-$(CONFIG_MACH_DOVE_DB) ? ? += dove-db-setup.o
> +obj-$(CONFIG_MACH_CM_A510) ? ? += cm-a510.o
> diff --git a/arch/arm/mach-dove/cm-a510.c b/arch/arm/mach-dove/cm-a510.c
> new file mode 100644
> index 0000000..96e0e94
> --- /dev/null
> +++ b/arch/arm/mach-dove/cm-a510.c
> @@ -0,0 +1,95 @@
> +/*
> + * arch/arm/mach-dove/cm-a510.c
> + *
> + * Copyright (C) 2010 CompuLab, Ltd.
> + * Konstantin Sinyuk <kostyas@compulab.co.il>
> + *
> + * Based on Marvell DB-MV88AP510-BP Development Board Setup
> + *
> + * This file is licensed under the terms of the GNU General Public
> + * License version 2. ?This program is licensed "as is" without any
> + * warranty of any kind, whether express or implied.
> + */
> +
> +#include <linux/kernel.h>
> +#include <linux/init.h>
> +#include <linux/platform_device.h>
> +#include <linux/ata_platform.h>
> +#include <linux/mv643xx_eth.h>
> +#include <linux/spi/spi.h>
> +#include <linux/spi/flash.h>
> +
> +#include <asm/mach-types.h>
> +#include <asm/mach/arch.h>
> +
> +#include <mach/dove.h>
> +
> +#include "common.h"
> +
> +static struct mv643xx_eth_platform_data cm_a510_ge00_data = {
> + ? ? ? .phy_addr ? ? ? = MV643XX_ETH_PHY_ADDR_DEFAULT,
> +};
> +
> +static struct mv_sata_platform_data cm_a510_sata_data = {
> + ? ? ? .n_ports ? ? ? ?= 1,
> +};
> +
> +/*
> + * SPI Devices:
> + * SPI0: 1M Flash Winbond w25q32bv
> + */
> +static const struct flash_platform_data cm_a510_spi_flash_data = {
> + ? ? ? .type ? ? ? ? ? = "w25q32bv",
> +};
> +
> +static struct spi_board_info __initdata cm_a510_spi_flash_info[] = {
> + ? ? ? {
> + ? ? ? ? ? ? ? .modalias ? ? ? = "m25p80",
> + ? ? ? ? ? ? ? .platform_data ?= &cm_a510_spi_flash_data,
> + ? ? ? ? ? ? ? .irq ? ? ? ? ? ?= -1,
> + ? ? ? ? ? ? ? .max_speed_hz ? = 20000000,
> + ? ? ? ? ? ? ? .bus_num ? ? ? ?= 0,
> + ? ? ? ? ? ? ? .chip_select ? ?= 0,
> + ? ? ? },
> +};
> +
> +static int __init cm_a510_pci_init(void)
> +{
> + ? ? ? if (machine_is_cm_a510())
> + ? ? ? ? ? ? ? dove_pcie_init(1, 1);
> +
> + ? ? ? return 0;
> +}
> +
> +subsys_initcall(cm_a510_pci_init);
> +
> +/* Board Init */
> +static void __init cm_a510_init(void)
> +{
> + ? ? ? /*
> + ? ? ? ?* Basic Dove setup. Needs to be called early.
> + ? ? ? ?*/
> + ? ? ? dove_init();
> +
> + ? ? ? dove_ge00_init(&cm_a510_ge00_data);
> + ? ? ? dove_ehci0_init();
> + ? ? ? dove_ehci1_init();
> + ? ? ? dove_sata_init(&cm_a510_sata_data);
> + ? ? ? dove_sdio0_init();
> + ? ? ? dove_sdio1_init();
> + ? ? ? dove_spi0_init();
> + ? ? ? dove_spi1_init();
> + ? ? ? dove_uart0_init();
> + ? ? ? dove_uart1_init();
> + ? ? ? dove_i2c_init();
> + ? ? ? spi_register_board_info(cm_a510_spi_flash_info,
> + ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ARRAY_SIZE(cm_a510_spi_flash_info));
> +}
> +
> +MACHINE_START(CM_A510, "Compulab CM-A510 Board")
> + ? ? ? .boot_params ? ?= 0x00000100,
> + ? ? ? .init_machine ? = cm_a510_init,
> + ? ? ? .map_io ? ? ? ? = dove_map_io,
> + ? ? ? .init_irq ? ? ? = dove_init_irq,
> + ? ? ? .timer ? ? ? ? ?= &dove_timer,
> +MACHINE_END
> --
> 1.7.3.1
>
>
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [PATCH v2] [ARM] Dove: add support for CM-A510 machine.
  2010-11-22  7:39     ` saeed bishara
@ 2010-11-29 12:51       ` Mike Rapoport
  2010-11-29 15:50         ` Nicolas Pitre
  0 siblings, 1 reply; 7+ messages in thread
From: Mike Rapoport @ 2010-11-29 12:51 UTC (permalink / raw)
  To: linux-arm-kernel

Hi Nicolas,

Any updates on this?


On 11/22/10 09:39, saeed bishara wrote:
> On Tue, Nov 16, 2010 at 8:55 AM, Mike Rapoport <mike@compulab.co.il> wrote:
>> From: Konstantin Sinyuk <kostyas@compulab.co.il>
>>
>> This patch adds support for CM-A510 machine
>>
>> Signed-off-by: Konstantin Sinyuk <kostyas@compulab.co.il>
>> Signed-off-by: Mike Rapoport <mike@compulab.co.il>
>> Reviewed-by: Saeed Bishara <saeed@marvell.com>
>  Acked-by: Saeed Bishara <saeed@marvell.com>
>> ---
>> v2 changes:
>> * rebase on top of current Linus tree
>> * remove .phys_io and .io_pg_offst from machine description
>>
>>  arch/arm/mach-dove/Kconfig   |    6 +++
>>  arch/arm/mach-dove/Makefile  |    1 +
>>  arch/arm/mach-dove/cm-a510.c |   95 ++++++++++++++++++++++++++++++++++++++++++
>>  3 files changed, 102 insertions(+), 0 deletions(-)
>>  create mode 100644 arch/arm/mach-dove/cm-a510.c
>>
>> diff --git a/arch/arm/mach-dove/Kconfig b/arch/arm/mach-dove/Kconfig
>> index 3b9a32a..a4ed390 100644
>> --- a/arch/arm/mach-dove/Kconfig
>> +++ b/arch/arm/mach-dove/Kconfig
>> @@ -9,6 +9,12 @@ config MACH_DOVE_DB
>>          Say 'Y' here if you want your kernel to support the
>>          Marvell DB-MV88AP510 Development Board.
>>
>> + config MACH_CM_A510
>> +       bool "CompuLab CM-A510 Board"
>> +       help
>> +         Say 'Y' here if you want your kernel to support the
>> +         CompuLab CM-A510 Board.
>> +
>>  endmenu
>>
>>  endif
>> diff --git a/arch/arm/mach-dove/Makefile b/arch/arm/mach-dove/Makefile
>> index 7ab3be5..f74f549 100644
>> --- a/arch/arm/mach-dove/Makefile
>> +++ b/arch/arm/mach-dove/Makefile
>> @@ -1,3 +1,4 @@
>>  obj-y                          += common.o addr-map.o irq.o pcie.o
>>
>>  obj-$(CONFIG_MACH_DOVE_DB)     += dove-db-setup.o
>> +obj-$(CONFIG_MACH_CM_A510)     += cm-a510.o
>> diff --git a/arch/arm/mach-dove/cm-a510.c b/arch/arm/mach-dove/cm-a510.c
>> new file mode 100644
>> index 0000000..96e0e94
>> --- /dev/null
>> +++ b/arch/arm/mach-dove/cm-a510.c
>> @@ -0,0 +1,95 @@
>> +/*
>> + * arch/arm/mach-dove/cm-a510.c
>> + *
>> + * Copyright (C) 2010 CompuLab, Ltd.
>> + * Konstantin Sinyuk <kostyas@compulab.co.il>
>> + *
>> + * Based on Marvell DB-MV88AP510-BP Development Board Setup
>> + *
>> + * This file is licensed under the terms of the GNU General Public
>> + * License version 2.  This program is licensed "as is" without any
>> + * warranty of any kind, whether express or implied.
>> + */
>> +
>> +#include <linux/kernel.h>
>> +#include <linux/init.h>
>> +#include <linux/platform_device.h>
>> +#include <linux/ata_platform.h>
>> +#include <linux/mv643xx_eth.h>
>> +#include <linux/spi/spi.h>
>> +#include <linux/spi/flash.h>
>> +
>> +#include <asm/mach-types.h>
>> +#include <asm/mach/arch.h>
>> +
>> +#include <mach/dove.h>
>> +
>> +#include "common.h"
>> +
>> +static struct mv643xx_eth_platform_data cm_a510_ge00_data = {
>> +       .phy_addr       = MV643XX_ETH_PHY_ADDR_DEFAULT,
>> +};
>> +
>> +static struct mv_sata_platform_data cm_a510_sata_data = {
>> +       .n_ports        = 1,
>> +};
>> +
>> +/*
>> + * SPI Devices:
>> + * SPI0: 1M Flash Winbond w25q32bv
>> + */
>> +static const struct flash_platform_data cm_a510_spi_flash_data = {
>> +       .type           = "w25q32bv",
>> +};
>> +
>> +static struct spi_board_info __initdata cm_a510_spi_flash_info[] = {
>> +       {
>> +               .modalias       = "m25p80",
>> +               .platform_data  = &cm_a510_spi_flash_data,
>> +               .irq            = -1,
>> +               .max_speed_hz   = 20000000,
>> +               .bus_num        = 0,
>> +               .chip_select    = 0,
>> +       },
>> +};
>> +
>> +static int __init cm_a510_pci_init(void)
>> +{
>> +       if (machine_is_cm_a510())
>> +               dove_pcie_init(1, 1);
>> +
>> +       return 0;
>> +}
>> +
>> +subsys_initcall(cm_a510_pci_init);
>> +
>> +/* Board Init */
>> +static void __init cm_a510_init(void)
>> +{
>> +       /*
>> +        * Basic Dove setup. Needs to be called early.
>> +        */
>> +       dove_init();
>> +
>> +       dove_ge00_init(&cm_a510_ge00_data);
>> +       dove_ehci0_init();
>> +       dove_ehci1_init();
>> +       dove_sata_init(&cm_a510_sata_data);
>> +       dove_sdio0_init();
>> +       dove_sdio1_init();
>> +       dove_spi0_init();
>> +       dove_spi1_init();
>> +       dove_uart0_init();
>> +       dove_uart1_init();
>> +       dove_i2c_init();
>> +       spi_register_board_info(cm_a510_spi_flash_info,
>> +                               ARRAY_SIZE(cm_a510_spi_flash_info));
>> +}
>> +
>> +MACHINE_START(CM_A510, "Compulab CM-A510 Board")
>> +       .boot_params    = 0x00000100,
>> +       .init_machine   = cm_a510_init,
>> +       .map_io         = dove_map_io,
>> +       .init_irq       = dove_init_irq,
>> +       .timer          = &dove_timer,
>> +MACHINE_END
>> --
>> 1.7.3.1
>>
>>
>> _______________________________________________
>> linux-arm-kernel mailing list
>> linux-arm-kernel at lists.infradead.org
>> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
>>


-- 
Sincerely yours,
Mike.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [PATCH v2] [ARM] Dove: add support for CM-A510 machine.
  2010-11-29 12:51       ` Mike Rapoport
@ 2010-11-29 15:50         ` Nicolas Pitre
  0 siblings, 0 replies; 7+ messages in thread
From: Nicolas Pitre @ 2010-11-29 15:50 UTC (permalink / raw)
  To: linux-arm-kernel

On Mon, 29 Nov 2010, Mike Rapoport wrote:

> Hi Nicolas,
> 
> Any updates on this?

Pushed to the orion repo.


Nicolas

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-11-29 15:50 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-15 11:22 [PATCH v2] [ARM] Dove: add support for CM-A510 machine Mike Rapoport
2010-11-15 11:40 ` Catalin Marinas
2010-11-15 17:30 ` Nicolas Pitre
2010-11-16  6:55   ` Mike Rapoport
2010-11-22  7:39     ` saeed bishara
2010-11-29 12:51       ` Mike Rapoport
2010-11-29 15:50         ` Nicolas Pitre

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.