* [patch 1/2] kirkwood: allow machines to register RnB line with mtd driver
[not found] <20100429231136.086930268@fluff.org.uk>
@ 2010-04-29 23:11 ` Ben Dooks
0 siblings, 0 replies; 8+ messages in thread
From: Ben Dooks @ 2010-04-29 23:11 UTC (permalink / raw)
To: linux-arm-kernel; +Cc: Linux MTD
[-- Attachment #1: slinux/arm/kirkwood/allow-mtd-ready-not-busy-registration.patch --]
[-- Type: text/plain, Size: 1855 bytes --]
Add a kirkwood_nand_init_rnb() call to allow boards which
have RnB line detection to register this instead of a
static delay.
Signed-off-by: Ben Dooks <ben@simtec.co.uk>
Cc: Linux MTD <linux-mtd@lists.infradead.org>
Index: linux-2.6-2.6.32.9/arch/arm/mach-kirkwood/common.c
===================================================================
--- linux-2.6-2.6.32.9.orig/arch/arm/mach-kirkwood/common.c 2010-02-23 15:38:51.%N +0000
+++ linux-2.6-2.6.32.9/arch/arm/mach-kirkwood/common.c 2010-03-11 13:25:01.%N +0000
@@ -305,6 +305,15 @@
platform_device_register(&kirkwood_nand_flash);
}
+void __init kirkwood_nand_init_rnb(struct mtd_partition *parts, int nr_parts,
+ int (*dev_ready)(struct mtd_info *))
+{
+ kirkwood_clk_ctrl |= CGC_RUNIT;
+ kirkwood_nand_data.parts = parts;
+ kirkwood_nand_data.nr_parts = nr_parts;
+ kirkwood_nand_data.dev_ready = dev_ready;
+ platform_device_register(&kirkwood_nand_flash);
+}
/*****************************************************************************
* SoC RTC
Index: linux-2.6-2.6.32.9/arch/arm/mach-kirkwood/common.h
===================================================================
--- linux-2.6-2.6.32.9.orig/arch/arm/mach-kirkwood/common.h 2010-02-23 15:38:51.%N +0000
+++ linux-2.6-2.6.32.9/arch/arm/mach-kirkwood/common.h 2010-03-11 13:25:01.%N +0000
@@ -16,6 +16,7 @@
struct mv_sata_platform_data;
struct mvsdio_platform_data;
struct mtd_partition;
+struct mtd_info;
/*
* Basic Kirkwood init functions used early by machine-setup.
@@ -41,6 +42,7 @@
void kirkwood_uart0_init(void);
void kirkwood_uart1_init(void);
void kirkwood_nand_init(struct mtd_partition *parts, int nr_parts, int delay);
+void kirkwood_nand_init_rnb(struct mtd_partition *parts, int nr_parts, int (*dev_ready)(struct mtd_info *));
extern int kirkwood_tclk;
extern struct sys_timer kirkwood_timer;
^ permalink raw reply [flat|nested] 8+ messages in thread
* [patch 0/2] Simtec kirkwood patches [resend]
@ 2010-04-29 23:12 Ben Dooks
2010-04-29 23:12 ` Ben Dooks
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: Ben Dooks @ 2010-04-29 23:12 UTC (permalink / raw)
To: linux-arm-kernel
Simtec kirkwood patches, to the right list this time.
--
Ben (ben at fluff.org, http://www.fluff.org/)
'a smiley only costs 4 bytes'
^ permalink raw reply [flat|nested] 8+ messages in thread
* [patch 1/2] kirkwood: allow machines to register RnB line with mtd driver
2010-04-29 23:12 [patch 0/2] Simtec kirkwood patches [resend] Ben Dooks
@ 2010-04-29 23:12 ` Ben Dooks
2010-04-29 23:12 ` [patch 2/2] kirkwood: Add the machine definition for the Datong DTCOMMOD Ben Dooks
2010-05-03 20:23 ` [patch 0/2] Simtec kirkwood patches [resend] Nicolas Pitre
2 siblings, 0 replies; 8+ messages in thread
From: Ben Dooks @ 2010-04-29 23:12 UTC (permalink / raw)
To: linux-arm-kernel; +Cc: nico, Linux MTD, buytenh
[-- Attachment #1: slinux/arm/kirkwood/allow-mtd-ready-not-busy-registration.patch --]
[-- Type: text/plain, Size: 1855 bytes --]
Add a kirkwood_nand_init_rnb() call to allow boards which
have RnB line detection to register this instead of a
static delay.
Signed-off-by: Ben Dooks <ben@simtec.co.uk>
Cc: Linux MTD <linux-mtd@lists.infradead.org>
Index: linux-2.6-2.6.32.9/arch/arm/mach-kirkwood/common.c
===================================================================
--- linux-2.6-2.6.32.9.orig/arch/arm/mach-kirkwood/common.c 2010-02-23 15:38:51.%N +0000
+++ linux-2.6-2.6.32.9/arch/arm/mach-kirkwood/common.c 2010-03-11 13:25:01.%N +0000
@@ -305,6 +305,15 @@
platform_device_register(&kirkwood_nand_flash);
}
+void __init kirkwood_nand_init_rnb(struct mtd_partition *parts, int nr_parts,
+ int (*dev_ready)(struct mtd_info *))
+{
+ kirkwood_clk_ctrl |= CGC_RUNIT;
+ kirkwood_nand_data.parts = parts;
+ kirkwood_nand_data.nr_parts = nr_parts;
+ kirkwood_nand_data.dev_ready = dev_ready;
+ platform_device_register(&kirkwood_nand_flash);
+}
/*****************************************************************************
* SoC RTC
Index: linux-2.6-2.6.32.9/arch/arm/mach-kirkwood/common.h
===================================================================
--- linux-2.6-2.6.32.9.orig/arch/arm/mach-kirkwood/common.h 2010-02-23 15:38:51.%N +0000
+++ linux-2.6-2.6.32.9/arch/arm/mach-kirkwood/common.h 2010-03-11 13:25:01.%N +0000
@@ -16,6 +16,7 @@
struct mv_sata_platform_data;
struct mvsdio_platform_data;
struct mtd_partition;
+struct mtd_info;
/*
* Basic Kirkwood init functions used early by machine-setup.
@@ -41,6 +42,7 @@
void kirkwood_uart0_init(void);
void kirkwood_uart1_init(void);
void kirkwood_nand_init(struct mtd_partition *parts, int nr_parts, int delay);
+void kirkwood_nand_init_rnb(struct mtd_partition *parts, int nr_parts, int (*dev_ready)(struct mtd_info *));
extern int kirkwood_tclk;
extern struct sys_timer kirkwood_timer;
^ permalink raw reply [flat|nested] 8+ messages in thread
* [patch 1/2] kirkwood: allow machines to register RnB line with mtd driver
@ 2010-04-29 23:12 ` Ben Dooks
0 siblings, 0 replies; 8+ messages in thread
From: Ben Dooks @ 2010-04-29 23:12 UTC (permalink / raw)
To: linux-arm-kernel
An embedded and charset-unspecified text was scrubbed...
Name: slinux/arm/kirkwood/allow-mtd-ready-not-busy-registration.patch
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20100430/d69f15ae/attachment.el>
^ permalink raw reply [flat|nested] 8+ messages in thread
* [patch 2/2] kirkwood: Add the machine definition for the Datong DTCOMMOD
2010-04-29 23:12 [patch 0/2] Simtec kirkwood patches [resend] Ben Dooks
2010-04-29 23:12 ` Ben Dooks
@ 2010-04-29 23:12 ` Ben Dooks
2010-05-03 20:23 ` [patch 0/2] Simtec kirkwood patches [resend] Nicolas Pitre
2 siblings, 0 replies; 8+ messages in thread
From: Ben Dooks @ 2010-04-29 23:12 UTC (permalink / raw)
To: linux-arm-kernel
An embedded and charset-unspecified text was scrubbed...
Name: slinux/arm/kirkwood/dtcommod-board-support.patch
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20100430/fd85784c/attachment.el>
^ permalink raw reply [flat|nested] 8+ messages in thread
* [patch 0/2] Simtec kirkwood patches [resend]
2010-04-29 23:12 [patch 0/2] Simtec kirkwood patches [resend] Ben Dooks
2010-04-29 23:12 ` Ben Dooks
2010-04-29 23:12 ` [patch 2/2] kirkwood: Add the machine definition for the Datong DTCOMMOD Ben Dooks
@ 2010-05-03 20:23 ` Nicolas Pitre
2 siblings, 0 replies; 8+ messages in thread
From: Nicolas Pitre @ 2010-05-03 20:23 UTC (permalink / raw)
To: linux-arm-kernel
On Thu, 29 Apr 2010, Ben Dooks wrote:
> Simtec kirkwood patches, to the right list this time.
Could you change the order of your patches so that the
kirkwood_nand_init_rnb is introduced last?
This way your new machine support could be merged without depending on a
feature that is not yet merged through the MTD tree.
Nicolas
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [patch 1/2] kirkwood: allow machines to register RnB line with mtd driver
2010-04-29 23:12 ` Ben Dooks
@ 2010-05-05 5:55 ` Artem Bityutskiy
-1 siblings, 0 replies; 8+ messages in thread
From: Artem Bityutskiy @ 2010-05-05 5:55 UTC (permalink / raw)
To: Ben Dooks; +Cc: nico, Linux MTD, buytenh, linux-arm-kernel
On Fri, 2010-04-30 at 00:12 +0100, Ben Dooks wrote:
> plain text document attachment (slinux)
> Add a kirkwood_nand_init_rnb() call to allow boards which
> have RnB line detection to register this instead of a
> static delay.
>
> Signed-off-by: Ben Dooks <ben@simtec.co.uk>
> Cc: Linux MTD <linux-mtd@lists.infradead.org>
I have this patch in l2-mtd-2.6 / dunno
--
Best Regards,
Artem Bityutskiy (Артём Битюцкий)
^ permalink raw reply [flat|nested] 8+ messages in thread
* [patch 1/2] kirkwood: allow machines to register RnB line with mtd driver
@ 2010-05-05 5:55 ` Artem Bityutskiy
0 siblings, 0 replies; 8+ messages in thread
From: Artem Bityutskiy @ 2010-05-05 5:55 UTC (permalink / raw)
To: linux-arm-kernel
On Fri, 2010-04-30 at 00:12 +0100, Ben Dooks wrote:
> plain text document attachment (slinux)
> Add a kirkwood_nand_init_rnb() call to allow boards which
> have RnB line detection to register this instead of a
> static delay.
>
> Signed-off-by: Ben Dooks <ben@simtec.co.uk>
> Cc: Linux MTD <linux-mtd@lists.infradead.org>
I have this patch in l2-mtd-2.6 / dunno
--
Best Regards,
Artem Bityutskiy (????? ????????)
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2010-05-05 5:55 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-29 23:12 [patch 0/2] Simtec kirkwood patches [resend] Ben Dooks
2010-04-29 23:12 ` [patch 1/2] kirkwood: allow machines to register RnB line with mtd driver Ben Dooks
2010-04-29 23:12 ` Ben Dooks
2010-05-05 5:55 ` Artem Bityutskiy
2010-05-05 5:55 ` Artem Bityutskiy
2010-04-29 23:12 ` [patch 2/2] kirkwood: Add the machine definition for the Datong DTCOMMOD Ben Dooks
2010-05-03 20:23 ` [patch 0/2] Simtec kirkwood patches [resend] Nicolas Pitre
[not found] <20100429231136.086930268@fluff.org.uk>
2010-04-29 23:11 ` [patch 1/2] kirkwood: allow machines to register RnB line with mtd driver Ben Dooks
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.