Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=7a5f819187ff827c131721dbba11ad9596ae5e30
Commit:     7a5f819187ff827c131721dbba11ad9596ae5e30
Parent:     2935077e06494638a78a02f7b4cf304e4e70eaca
Author:     Javier Herrero <[EMAIL PROTECTED]>
AuthorDate: Sun Jan 27 19:53:08 2008 +0800
Committer:  Bryan Wu <[EMAIL PROTECTED]>
CommitDate: Sun Jan 27 19:53:08 2008 +0800

    [Blackfin] arch: Added support for OpenCores Keyboard Controller to H8606 
board
    
    Signed-off-by: Javier Herrero <[EMAIL PROTECTED]>
    Signed-off-by: Bryan Wu <[EMAIL PROTECTED]>
---
 arch/blackfin/mach-bf533/boards/H8606.c |   32 +++++++++++++++++++++++++++++++
 1 files changed, 32 insertions(+), 0 deletions(-)

diff --git a/arch/blackfin/mach-bf533/boards/H8606.c 
b/arch/blackfin/mach-bf533/boards/H8606.c
index 675fd1c..a72c7a6 100644
--- a/arch/blackfin/mach-bf533/boards/H8606.c
+++ b/arch/blackfin/mach-bf533/boards/H8606.c
@@ -346,6 +346,34 @@ static struct platform_device serial8250_device = {
 
 #endif
 
+#if defined(CONFIG_KEYBOARD_OPENCORES) || 
defined(CONFIG_KEYBOARD_OPENCORES_MODULE)
+
+/*
+ * Configuration for one OpenCores keyboard controller in FPGA at address 
0x20200030,
+ * interrupt output wired to PF9. Change to suit different FPGA configuration
+ */
+
+static struct resource opencores_kbd_resources[] = {
+       [0] = {
+               .start  = 0x20200030,
+               .end    = 0x20300030 + 2,
+               .flags  = IORESOURCE_MEM,
+       },
+       [1] = {
+               .start  = IRQ_PF9,
+               .end    = IRQ_PF9,
+               .flags  = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHEDGE,
+       },
+};
+
+static struct platform_device opencores_kbd_device = {
+       .id             = -1,
+       .name           = "opencores-kbd",
+       .resource       = opencores_kbd_resources,
+       .num_resources  = ARRAY_SIZE(opencores_kbd_resources),
+};
+#endif
+
 static struct platform_device *h8606_devices[] __initdata = {
 #if defined(CONFIG_RTC_DRV_BFIN) || defined(CONFIG_RTC_DRV_BFIN_MODULE)
        &rtc_device,
@@ -374,6 +402,10 @@ static struct platform_device *h8606_devices[] __initdata 
= {
 #if defined(CONFIG_SERIAL_8250) || defined(CONFIG_SERIAL_8250_MODULE)
        &serial8250_device,
 #endif
+
+#if defined(CONFIG_KEYBOARD_OPENCORES) || 
defined(CONFIG_KEYBOARD_OPENCORES_MODULE)
+       &opencores_kbd_device,
+#endif
 };
 
 static int __init H8606_init(void)
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to