aboutsummaryrefslogtreecommitdiffstats
path: root/patches.at91/0169-AT91-board-dt-add-mci-pinmux-for-9x5.patch
blob: ee7f27824d69fc49cf1a9d1c2e8abdaeaca2386a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
From ee1a2b1fec441a9e821c3c6d0198e4b68545caf8 Mon Sep 17 00:00:00 2001
From: Nicolas Ferre <nicolas.ferre@atmel.com>
Date: Mon, 24 Sep 2012 12:27:10 +0200
Subject: AT91: board-dt add mci pinmux for 9x5

Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
---
 arch/arm/mach-at91/board-dt.c | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/arch/arm/mach-at91/board-dt.c b/arch/arm/mach-at91/board-dt.c
index 9355d77..15830cb 100644
--- a/arch/arm/mach-at91/board-dt.c
+++ b/arch/arm/mach-at91/board-dt.c
@@ -50,6 +50,30 @@ static void __init at91_dt_device_init(void)
 		printk("AT91: i2c pin mux done\n");
 		at91_set_gpio_input(AT91_PIN_PA7, 1);
 		printk("AT91: qt1070 pin mux done\n");
+
+		at91_set_gpio_input(AT91_PIN_PD14, 1);
+		at91_set_deglitch(AT91_PIN_PD14, 1);
+		at91_set_gpio_input(AT91_PIN_PD15, 1);
+		at91_set_deglitch(AT91_PIN_PD15, 1);
+		/* CLK */
+		at91_set_A_periph(AT91_PIN_PA17, 0);
+		/* CMD */
+		at91_set_A_periph(AT91_PIN_PA16, 1);
+		/* DAT0, DAT1..DAT3 */
+		at91_set_A_periph(AT91_PIN_PA15, 1);
+		at91_set_A_periph(AT91_PIN_PA18, 1);
+		at91_set_A_periph(AT91_PIN_PA19, 1);
+		at91_set_A_periph(AT91_PIN_PA20, 1);
+		/* CLK */
+		at91_set_B_periph(AT91_PIN_PA13, 0);
+		/* CMD */
+		at91_set_B_periph(AT91_PIN_PA12, 1);
+		/* DAT0, DAT1..DAT3 */
+		at91_set_B_periph(AT91_PIN_PA11, 1);
+		at91_set_B_periph(AT91_PIN_PA2, 1);
+		at91_set_B_periph(AT91_PIN_PA3, 1);
+		at91_set_B_periph(AT91_PIN_PA4, 1);
+		printk("AT91: mci0/1 pin mux done\n");
 	}
 }
 
-- 
1.8.0.197.g5a90748