Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
White Rabbit Switch - Software
Manage
Activity
Members
Labels
Plan
Issues
87
Issue boards
Milestones
Wiki
Code
Merge requests
4
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Projects
White Rabbit Switch - Software
Commits
b0a8add8
Commit
b0a8add8
authored
13 years ago
by
Alessandro Rubini
Browse files
Options
Downloads
Patches
Plain Diff
patches/2.6.35: redone patch 8, added patch 9 (mmc)
parent
71b9c631
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
patches/2.6.35/0008-IRQ-export-handle_bad_irq-for-WR-switch-modules.patch
+12
-1
12 additions, 1 deletion
...008-IRQ-export-handle_bad_irq-for-WR-switch-modules.patch
patches/2.6.35/0009-WR-switch-added-MMC-support.patch
+42
-0
42 additions, 0 deletions
patches/2.6.35/0009-WR-switch-added-MMC-support.patch
with
54 additions
and
1 deletion
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
+
12
−
1
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
This diff is collapsed.
Click to expand it.
patches/2.6.35/0009-WR-switch-added-MMC-support.patch
0 → 100644
+
42
−
0
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
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment