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
50c1ddba
Commit
50c1ddba
authored
Sep 16, 2011
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
patches: added kernel base patches for WRS3
parent
3853839c
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1363 additions
and
0 deletions
+1363
-0
0001-.config-for-the-switch.patch
patches/kernel/v2.6.39/0001-.config-for-the-switch.patch
+1304
-0
0002-wrs3-changes-to-g45ek.patch
patches/kernel/v2.6.39/0002-wrs3-changes-to-g45ek.patch
+59
-0
No files found.
patches/kernel/v2.6.39/0001-.config-for-the-switch.patch
0 → 100644
View file @
50c1ddba
This diff is collapsed.
Click to expand it.
patches/kernel/v2.6.39/0002-wrs3-changes-to-g45ek.patch
0 → 100644
View file @
50c1ddba
From 577238fad811f148ddfd3b8e3d83802c6ada3d32 Mon Sep 17 00:00:00 2001
From: Alessandro Rubini <rubini@gnudd.com>
Date: Wed, 14 Sep 2011 11:23:29 +0200
Subject: [PATCH 2/2] wrs3 changes to g45ek
---
arch/arm/mach-at91/board-sam9m10g45ek.c | 36 +++++++++++++++++++++++++++++++
1 files changed, 36 insertions(+), 0 deletions(-)
diff --git a/arch/arm/mach-at91/board-sam9m10g45ek.c b/arch/arm/mach-at91/board-sam9m10g45ek.c
index 6c999db..d0e1e67 100644
--- a/arch/arm/mach-at91/board-sam9m10g45ek.c
+++ b/arch/arm/mach-at91/board-sam9m10g45ek.c
@@ -420,6 +420,42 @@ static void __init ek_board_init(void)
/* LEDs */
at91_gpio_leds(ek_leds, ARRAY_SIZE(ek_leds));
at91_pwm_leds(ek_pwm_led, ARRAY_SIZE(ek_pwm_led));
+
+ { /* Configure the EBI1 pins for the wr switch */
+ int i;
+
+ /* PC16..31: periphA as EBI1_D16..31 */
+ for (i = AT91_PIN_PC16; i <= AT91_PIN_PC31; i++)
+ at91_set_A_periph(i, 0);
+ /* PC2 and PC3 too: EBI1_A19 EBI1_A20 */
+ at91_set_A_periph(AT91_PIN_PC2, 0);
+ at91_set_A_periph(AT91_PIN_PC3, 0);
+
+ /* FIXME: We should pull rst high for when it is programmed */
+
+ /* Then, write the EBI1 configuration (NCS0 == 0x1000.0000) */
+ at91_sys_write(AT91_SMC_SETUP(0),
+ AT91_SMC_NWESETUP_(4) |
+ AT91_SMC_NCS_WRSETUP_(2) |
+ AT91_SMC_NRDSETUP_(4) |
+ AT91_SMC_NCS_RDSETUP_(2));
+ at91_sys_write(AT91_SMC_PULSE(0),
+ AT91_SMC_NWEPULSE_(30) |
+ AT91_SMC_NCS_WRPULSE_(34) |
+ AT91_SMC_NRDPULSE_(30) |
+ AT91_SMC_NCS_RDPULSE_(34));
+ at91_sys_write(AT91_SMC_CYCLE(0),
+ AT91_SMC_NWECYCLE_(40) |
+ AT91_SMC_NRDCYCLE_(40));
+ at91_sys_write(AT91_SMC_MODE(0),
+ AT91_SMC_DBW_32 |
+ AT91_SMC_TDF_(0) |
+ AT91_SMC_READMODE |
+ AT91_SMC_WRITEMODE);
+
+
+ }
+
}
MACHINE_START(AT91SAM9M10G45EK, "Atmel AT91SAM9M10G45-EK")
--
1.7.1
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