Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Switch - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
86
Issues
86
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
White Rabbit Switch - Software
Commits
b0a8add8
Commit
b0a8add8
authored
Apr 12, 2011
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
patches/2.6.35: redone patch 8, added patch 9 (mmc)
parent
71b9c631
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
54 additions
and
1 deletion
+54
-1
0008-IRQ-export-handle_bad_irq-for-WR-switch-modules.patch
...008-IRQ-export-handle_bad_irq-for-WR-switch-modules.patch
+12
-1
0009-WR-switch-added-MMC-support.patch
patches/2.6.35/0009-WR-switch-added-MMC-support.patch
+42
-0
No files found.
patches/2.6.35/0008-
export-handle-bad-irq
.patch
→
patches/2.6.35/0008-
IRQ-export-handle_bad_irq-for-WR-switch-modules
.patch
View file @
b0a8add8
From c99a8d1f7ee6f925223b3022c6583238023401dd Mon Sep 17 00:00:00 2001
From: Alessandro Rubini <rubini@gnudd.com>
Date: Tue, 12 Apr 2011 14:02:24 +0200
Subject: [PATCH] IRQ: export handle_bad_irq for WR switch modules
---
kernel/irq/handle.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/kernel/irq/handle.c b/kernel/irq/handle.c
index
27e5c69
..3b514a3 100644
index
49e7565
..3b514a3 100644
--- a/kernel/irq/handle.c
+++ b/kernel/irq/handle.c
@@ -42,6 +42,7 @@ void handle_bad_irq(unsigned int irq, struct irq_desc *desc)
...
...
@@ -10,4 +19,6 @@ index 27e5c69..3b514a3 100644
#if defined(CONFIG_SMP) && defined(CONFIG_GENERIC_HARDIRQS)
static void __init init_irq_default_affinity(void)
--
1.5.6.5
patches/2.6.35/0009-WR-switch-added-MMC-support.patch
0 → 100644
View file @
b0a8add8
From 1a730512f5e6bb1dcdaf5d2e57176ab87c61d481 Mon Sep 17 00:00:00 2001
From: Alessandro Rubini <rubini@gnudd.com>
Date: Tue, 12 Apr 2011 14:03:48 +0200
Subject: [PATCH] WR switch: added MMC support
---
arch/arm/mach-at91/board-whiterabbit-mch.c | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/arch/arm/mach-at91/board-whiterabbit-mch.c b/arch/arm/mach-at91/board-whiterabbit-mch.c
index e19ab93..66a6aa7 100644
--- a/arch/arm/mach-at91/board-whiterabbit-mch.c
+++ b/arch/arm/mach-at91/board-whiterabbit-mch.c
@@ -123,6 +123,16 @@ static struct at91_eth_data wr_mch_macb_data __initdata = {
};
/*
+ * MCI (SD/MMC)
+ */
+static struct at91_mmc_data __initdata ek_mmc_data = {
+ .wire4 = 1,
+ .det_pin = AT91_PIN_PE18,
+ .wp_pin = AT91_PIN_PE19,
+// .vcc_pin = ... not connected
+};
+
+/*
* WhiteRabbit NIC (wr-nic) stub
*/
@@ -344,6 +354,8 @@ static void __init wr_mch_board_init(void)
*/
at91_add_device_i2c(NULL, 0);
+ at91_add_device_mmc(1, &ek_mmc_data);
+
/* initialise the NIC */
wr_mch_register_minic_port(0, PORT_UP, 0, FPGA_BASE_MINIC_UP0, WR_MINIC_IRQ_UP0);
wr_mch_register_minic_port(1, PORT_UP, 1, FPGA_BASE_MINIC_UP1, WR_MINIC_IRQ_UP1);
--
1.5.6.5
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment