linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] dove: support v7 mode
@ 2010-05-06 13:12 Saeed Bishara
  2010-05-06 13:12 ` [PATCH] [ARM] Dove: platform device registration for the sdio interfaces Saeed Bishara
  2010-05-06 15:12 ` [PATCH] dove: support v7 mode Eric Miao
  0 siblings, 2 replies; 6+ messages in thread
From: Saeed Bishara @ 2010-05-06 13:12 UTC (permalink / raw)
  To: linux-arm-kernel

The CPU of dove can be configured to boot in v7 mode, this patch will enable building the kernel for that mode.

Signed-off-by: Saeed Bishara <saeed@marvell.com>
---
 arch/arm/mm/Kconfig |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/arm/mm/Kconfig b/arch/arm/mm/Kconfig
index 5bd7c89..e40a35a 100644
--- a/arch/arm/mm/Kconfig
+++ b/arch/arm/mm/Kconfig
@@ -409,7 +409,7 @@ config CPU_32v6K
 
 # ARMv7
 config CPU_V7
-	bool "Support ARM V7 processor" if ARCH_INTEGRATOR || MACH_REALVIEW_EB || MACH_REALVIEW_PBX
+	bool "Support ARM V7 processor" if ARCH_INTEGRATOR || MACH_REALVIEW_EB || MACH_REALVIEW_PBX || ARCH_DOVE
 	select CPU_32v6K if !ARCH_OMAP2
 	select CPU_32v7
 	select CPU_ABRT_EV7
-- 
1.6.0.4

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

* [PATCH] [ARM] Dove: platform device registration for the sdio interfaces
  2010-05-06 13:12 [PATCH] dove: support v7 mode Saeed Bishara
@ 2010-05-06 13:12 ` Saeed Bishara
  2010-05-06 15:14   ` Eric Miao
  2010-05-06 15:12 ` [PATCH] dove: support v7 mode Eric Miao
  1 sibling, 1 reply; 6+ messages in thread
From: Saeed Bishara @ 2010-05-06 13:12 UTC (permalink / raw)
  To: linux-arm-kernel


Signed-off-by: Saeed Bishara <saeed@marvell.com>
---
 arch/arm/mach-dove/common.c        |   61 ++++++++++++++++++++++++++++++++++++
 arch/arm/mach-dove/common.h        |    2 +
 arch/arm/mach-dove/dove-db-setup.c |    2 +
 3 files changed, 65 insertions(+), 0 deletions(-)

diff --git a/arch/arm/mach-dove/common.c b/arch/arm/mach-dove/common.c
index 5da2cf4..f7a1258 100644
--- a/arch/arm/mach-dove/common.c
+++ b/arch/arm/mach-dove/common.c
@@ -752,6 +752,67 @@ void __init dove_xor1_init(void)
 	platform_device_register(&dove_xor11_channel);
 }
 
+/*****************************************************************************
+ * SDIO
+ ****************************************************************************/
+static u64 sdio_dmamask = DMA_BIT_MASK(32);
+
+static struct resource dove_sdio0_resources[] = {
+	{
+		.start	= DOVE_SDIO0_PHYS_BASE,
+		.end	= DOVE_SDIO0_PHYS_BASE + 0xff,
+		.flags	= IORESOURCE_MEM,
+	}, {
+		.start	= IRQ_DOVE_SDIO0,
+		.end	= IRQ_DOVE_SDIO0,
+		.flags	= IORESOURCE_IRQ,
+	},
+};
+
+static struct platform_device dove_sdio0 = {
+	.name		= "sdhci-mv",
+	.id		= 0,
+	.dev		= {
+		.dma_mask		= &sdio_dmamask,
+		.coherent_dma_mask	= DMA_BIT_MASK(32),
+	},
+	.resource	= dove_sdio0_resources,
+	.num_resources	= ARRAY_SIZE(dove_sdio0_resources),
+};
+
+void __init dove_sdio0_init(void)
+{
+	platform_device_register(&dove_sdio0);
+}
+
+static struct resource dove_sdio1_resources[] = {
+	{
+		.start	= DOVE_SDIO1_PHYS_BASE,
+		.end	= DOVE_SDIO1_PHYS_BASE + 0xff,
+		.flags	= IORESOURCE_MEM,
+	}, {
+		.start	= IRQ_DOVE_SDIO1,
+		.end	= IRQ_DOVE_SDIO1,
+		.flags	= IORESOURCE_IRQ,
+	},
+};
+
+static struct platform_device dove_sdio1 = {
+	.name		= "sdhci-mv",
+	.id		= 1,
+	.dev		= {
+		.dma_mask		= &sdio_dmamask,
+		.coherent_dma_mask	= DMA_BIT_MASK(32),
+	},
+	.resource	= dove_sdio1_resources,
+	.num_resources	= ARRAY_SIZE(dove_sdio1_resources),
+};
+
+void __init dove_sdio1_init(void)
+{
+	platform_device_register(&dove_sdio1);
+}
+
 void __init dove_init(void)
 {
 	int tclk;
diff --git a/arch/arm/mach-dove/common.h b/arch/arm/mach-dove/common.h
index b29e893..a51517c 100644
--- a/arch/arm/mach-dove/common.h
+++ b/arch/arm/mach-dove/common.h
@@ -36,5 +36,7 @@ void dove_uart3_init(void);
 void dove_spi0_init(void);
 void dove_spi1_init(void);
 void dove_i2c_init(void);
+void dove_sdio0_init(void);
+void dove_sdio1_init(void);
 
 #endif
diff --git a/arch/arm/mach-dove/dove-db-setup.c b/arch/arm/mach-dove/dove-db-setup.c
index f2971b7..bef7046 100644
--- a/arch/arm/mach-dove/dove-db-setup.c
+++ b/arch/arm/mach-dove/dove-db-setup.c
@@ -82,6 +82,8 @@ static void __init dove_db_init(void)
 	dove_ehci0_init();
 	dove_ehci1_init();
 	dove_sata_init(&dove_db_sata_data);
+	dove_sdio0_init();
+	dove_sdio1_init();
 	dove_spi0_init();
 	dove_spi1_init();
 	dove_uart0_init();
-- 
1.6.0.4

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

* [PATCH] dove: support v7 mode
  2010-05-06 13:12 [PATCH] dove: support v7 mode Saeed Bishara
  2010-05-06 13:12 ` [PATCH] [ARM] Dove: platform device registration for the sdio interfaces Saeed Bishara
@ 2010-05-06 15:12 ` Eric Miao
  2010-05-06 15:21   ` saeed bishara
  1 sibling, 1 reply; 6+ messages in thread
From: Eric Miao @ 2010-05-06 15:12 UTC (permalink / raw)
  To: linux-arm-kernel

On Thu, May 6, 2010 at 9:12 PM, Saeed Bishara <saeed@marvell.com> wrote:
> The CPU of dove can be configured to boot in v7 mode, this patch will enable building the kernel for that mode.
>
> Signed-off-by: Saeed Bishara <saeed@marvell.com>
> ---
> ?arch/arm/mm/Kconfig | ? ?2 +-
> ?1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/arch/arm/mm/Kconfig b/arch/arm/mm/Kconfig
> index 5bd7c89..e40a35a 100644
> --- a/arch/arm/mm/Kconfig
> +++ b/arch/arm/mm/Kconfig
> @@ -409,7 +409,7 @@ config CPU_32v6K
>
> ?# ARMv7
> ?config CPU_V7
> - ? ? ? bool "Support ARM V7 processor" if ARCH_INTEGRATOR || MACH_REALVIEW_EB || MACH_REALVIEW_PBX
> + ? ? ? bool "Support ARM V7 processor" if ARCH_INTEGRATOR || MACH_REALVIEW_EB || MACH_REALVIEW_PBX || ARCH_DOVE

Saeed,

I'd recommend ARCH_DOVE to select CPU_V7 instead.

> ? ? ? ?select CPU_32v6K if !ARCH_OMAP2
> ? ? ? ?select CPU_32v7
> ? ? ? ?select CPU_ABRT_EV7
> --
> 1.6.0.4
>
>
> _______________________________________________
> 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] 6+ messages in thread

* [PATCH] [ARM] Dove: platform device registration for the sdio interfaces
  2010-05-06 13:12 ` [PATCH] [ARM] Dove: platform device registration for the sdio interfaces Saeed Bishara
@ 2010-05-06 15:14   ` Eric Miao
  0 siblings, 0 replies; 6+ messages in thread
From: Eric Miao @ 2010-05-06 15:14 UTC (permalink / raw)
  To: linux-arm-kernel

On Thu, May 6, 2010 at 9:12 PM, Saeed Bishara <saeed@marvell.com> wrote:
>
> Signed-off-by: Saeed Bishara <saeed@marvell.com>
> ---
> ?arch/arm/mach-dove/common.c ? ? ? ?| ? 61 ++++++++++++++++++++++++++++++++++++
> ?arch/arm/mach-dove/common.h ? ? ? ?| ? ?2 +
> ?arch/arm/mach-dove/dove-db-setup.c | ? ?2 +
> ?3 files changed, 65 insertions(+), 0 deletions(-)
>
> diff --git a/arch/arm/mach-dove/common.c b/arch/arm/mach-dove/common.c
> index 5da2cf4..f7a1258 100644
> --- a/arch/arm/mach-dove/common.c
> +++ b/arch/arm/mach-dove/common.c
> @@ -752,6 +752,67 @@ void __init dove_xor1_init(void)
> ? ? ? ?platform_device_register(&dove_xor11_channel);
> ?}
>
> +/*****************************************************************************
> + * SDIO
> + ****************************************************************************/
> +static u64 sdio_dmamask = DMA_BIT_MASK(32);
> +
> +static struct resource dove_sdio0_resources[] = {
> + ? ? ? {
> + ? ? ? ? ? ? ? .start ?= DOVE_SDIO0_PHYS_BASE,
> + ? ? ? ? ? ? ? .end ? ?= DOVE_SDIO0_PHYS_BASE + 0xff,
> + ? ? ? ? ? ? ? .flags ?= IORESOURCE_MEM,
> + ? ? ? }, {
> + ? ? ? ? ? ? ? .start ?= IRQ_DOVE_SDIO0,
> + ? ? ? ? ? ? ? .end ? ?= IRQ_DOVE_SDIO0,
> + ? ? ? ? ? ? ? .flags ?= IORESOURCE_IRQ,
> + ? ? ? },
> +};
> +
> +static struct platform_device dove_sdio0 = {
> + ? ? ? .name ? ? ? ? ? = "sdhci-mv",
> + ? ? ? .id ? ? ? ? ? ? = 0,
> + ? ? ? .dev ? ? ? ? ? ?= {
> + ? ? ? ? ? ? ? .dma_mask ? ? ? ? ? ? ? = &sdio_dmamask,
> + ? ? ? ? ? ? ? .coherent_dma_mask ? ? ?= DMA_BIT_MASK(32),
> + ? ? ? },
> + ? ? ? .resource ? ? ? = dove_sdio0_resources,
> + ? ? ? .num_resources ?= ARRAY_SIZE(dove_sdio0_resources),
> +};
> +
> +void __init dove_sdio0_init(void)
> +{
> + ? ? ? platform_device_register(&dove_sdio0);
> +}
> +
> +static struct resource dove_sdio1_resources[] = {
> + ? ? ? {
> + ? ? ? ? ? ? ? .start ?= DOVE_SDIO1_PHYS_BASE,
> + ? ? ? ? ? ? ? .end ? ?= DOVE_SDIO1_PHYS_BASE + 0xff,
> + ? ? ? ? ? ? ? .flags ?= IORESOURCE_MEM,
> + ? ? ? }, {
> + ? ? ? ? ? ? ? .start ?= IRQ_DOVE_SDIO1,
> + ? ? ? ? ? ? ? .end ? ?= IRQ_DOVE_SDIO1,
> + ? ? ? ? ? ? ? .flags ?= IORESOURCE_IRQ,
> + ? ? ? },
> +};
> +
> +static struct platform_device dove_sdio1 = {
> + ? ? ? .name ? ? ? ? ? = "sdhci-mv",
> + ? ? ? .id ? ? ? ? ? ? = 1,
> + ? ? ? .dev ? ? ? ? ? ?= {
> + ? ? ? ? ? ? ? .dma_mask ? ? ? ? ? ? ? = &sdio_dmamask,
> + ? ? ? ? ? ? ? .coherent_dma_mask ? ? ?= DMA_BIT_MASK(32),
> + ? ? ? },
> + ? ? ? .resource ? ? ? = dove_sdio1_resources,
> + ? ? ? .num_resources ?= ARRAY_SIZE(dove_sdio1_resources),
> +};
> +
> +void __init dove_sdio1_init(void)
> +{
> + ? ? ? platform_device_register(&dove_sdio1);
> +}
> +
> ?void __init dove_init(void)
> ?{
> ? ? ? ?int tclk;
> diff --git a/arch/arm/mach-dove/common.h b/arch/arm/mach-dove/common.h
> index b29e893..a51517c 100644
> --- a/arch/arm/mach-dove/common.h
> +++ b/arch/arm/mach-dove/common.h
> @@ -36,5 +36,7 @@ void dove_uart3_init(void);
> ?void dove_spi0_init(void);
> ?void dove_spi1_init(void);
> ?void dove_i2c_init(void);
> +void dove_sdio0_init(void);
> +void dove_sdio1_init(void);
>
> ?#endif
> diff --git a/arch/arm/mach-dove/dove-db-setup.c b/arch/arm/mach-dove/dove-db-setup.c
> index f2971b7..bef7046 100644
> --- a/arch/arm/mach-dove/dove-db-setup.c
> +++ b/arch/arm/mach-dove/dove-db-setup.c
> @@ -82,6 +82,8 @@ static void __init dove_db_init(void)
> ? ? ? ?dove_ehci0_init();
> ? ? ? ?dove_ehci1_init();
> ? ? ? ?dove_sata_init(&dove_db_sata_data);
> + ? ? ? dove_sdio0_init();
> + ? ? ? dove_sdio1_init();
> ? ? ? ?dove_spi0_init();
> ? ? ? ?dove_spi1_init();
> ? ? ? ?dove_uart0_init();

Looks fine.

Acked-by: Eric Miao <eric.miao@canonical.com>

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

* [PATCH] dove: support v7 mode
  2010-05-06 15:12 ` [PATCH] dove: support v7 mode Eric Miao
@ 2010-05-06 15:21   ` saeed bishara
  2010-05-06 15:31     ` Eric Miao
  0 siblings, 1 reply; 6+ messages in thread
From: saeed bishara @ 2010-05-06 15:21 UTC (permalink / raw)
  To: linux-arm-kernel

>
> I'd recommend ARCH_DOVE to select CPU_V7 instead.
>
Eric, that will disable the support for v6

saeed

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

* [PATCH] dove: support v7 mode
  2010-05-06 15:21   ` saeed bishara
@ 2010-05-06 15:31     ` Eric Miao
  0 siblings, 0 replies; 6+ messages in thread
From: Eric Miao @ 2010-05-06 15:31 UTC (permalink / raw)
  To: linux-arm-kernel

On Thu, May 6, 2010 at 11:21 PM, saeed bishara <saeed.bishara@gmail.com> wrote:
>>
>> I'd recommend ARCH_DOVE to select CPU_V7 instead.
>>
> Eric, that will disable the support for v6

Ah, that's right. Sorry I overlooked.

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

end of thread, other threads:[~2010-05-06 15:31 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-06 13:12 [PATCH] dove: support v7 mode Saeed Bishara
2010-05-06 13:12 ` [PATCH] [ARM] Dove: platform device registration for the sdio interfaces Saeed Bishara
2010-05-06 15:14   ` Eric Miao
2010-05-06 15:12 ` [PATCH] dove: support v7 mode Eric Miao
2010-05-06 15:21   ` saeed bishara
2010-05-06 15:31     ` Eric Miao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).