diff options
Diffstat (limited to 'arch/blackfin/mach-bf533/boards/ip0x.c')
-rw-r--r-- | arch/blackfin/mach-bf533/boards/ip0x.c | 52 |
1 files changed, 8 insertions, 44 deletions
diff --git a/arch/blackfin/mach-bf533/boards/ip0x.c b/arch/blackfin/mach-bf533/boards/ip0x.c index f19b63378b12..8ec42ba35b9e 100644 --- a/arch/blackfin/mach-bf533/boards/ip0x.c +++ b/arch/blackfin/mach-bf533/boards/ip0x.c | |||
@@ -1,34 +1,12 @@ | |||
1 | /* | 1 | /* |
2 | * File: arch/blackfin/mach-bf533/ip0x.c | 2 | * Copyright 2004-2009 Analog Devices Inc. |
3 | * Based on: arch/blackfin/mach-bf533/bf1.c | 3 | * 2007 David Rowe |
4 | * Based on: arch/blackfin/mach-bf533/stamp.c | 4 | * 2006 Intratrade Ltd. |
5 | * Author: Ivan Danov <idanov@gmail.com> | 5 | * Ivan Danov <idanov@gmail.com> |
6 | * Modified for IP0X David Rowe | 6 | * 2005 National ICT Australia (NICTA) |
7 | * Aidan Williams <aidan@nicta.com.au> | ||
7 | * | 8 | * |
8 | * Created: 2007 | 9 | * Licensed under the GPL-2 or later. |
9 | * Description: Board info file for the IP04/IP08 boards, which | ||
10 | * are derived from the BlackfinOne V2.0 boards. | ||
11 | * | ||
12 | * Modified: | ||
13 | * COpyright 2007 David Rowe | ||
14 | * Copyright 2006 Intratrade Ltd. | ||
15 | * Copyright 2005 National ICT Australia (NICTA) | ||
16 | * Copyright 2004-2006 Analog Devices Inc. | ||
17 | * | ||
18 | * This program is free software; you can redistribute it and/or modify | ||
19 | * it under the terms of the GNU General Public License as published by | ||
20 | * the Free Software Foundation; either version 2 of the License, or | ||
21 | * (at your option) any later version. | ||
22 | * | ||
23 | * This program is distributed in the hope that it will be useful, | ||
24 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
25 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
26 | * GNU General Public License for more details. | ||
27 | * | ||
28 | * You should have received a copy of the GNU General Public License | ||
29 | * along with this program; if not, see the file COPYING, or write | ||
30 | * to the Free Software Foundation, Inc., | ||
31 | * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
32 | */ | 10 | */ |
33 | 11 | ||
34 | #include <linux/device.h> | 12 | #include <linux/device.h> |
@@ -42,6 +20,7 @@ | |||
42 | #endif | 20 | #endif |
43 | #include <asm/irq.h> | 21 | #include <asm/irq.h> |
44 | #include <asm/bfin5xx_spi.h> | 22 | #include <asm/bfin5xx_spi.h> |
23 | #include <asm/portmux.h> | ||
45 | 24 | ||
46 | /* | 25 | /* |
47 | * Name the Board for the /proc/cpuinfo | 26 | * Name the Board for the /proc/cpuinfo |
@@ -129,23 +108,8 @@ static struct platform_device dm9000_device2 = { | |||
129 | 108 | ||
130 | #if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE) | 109 | #if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE) |
131 | static struct bfin5xx_spi_chip mmc_spi_chip_info = { | 110 | static struct bfin5xx_spi_chip mmc_spi_chip_info = { |
132 | /* | ||
133 | * CPOL (Clock Polarity) | ||
134 | * 0 - Active high SCK | ||
135 | * 1 - Active low SCK | ||
136 | * CPHA (Clock Phase) Selects transfer format and operation mode | ||
137 | * 0 - SCLK toggles from middle of the first data bit, slave select | ||
138 | * pins controlled by hardware. | ||
139 | * 1 - SCLK toggles from beginning of first data bit, slave select | ||
140 | * pins controller by user software. | ||
141 | * .ctl_reg = 0x1c00, * CPOL=1,CPHA=1,Sandisk 1G work | ||
142 | * NO NO .ctl_reg = 0x1800, * CPOL=1,CPHA=0 | ||
143 | * NO NO .ctl_reg = 0x1400, * CPOL=0,CPHA=1 | ||
144 | */ | ||
145 | .ctl_reg = 0x1000, /* CPOL=0,CPHA=0,Sandisk 1G work */ | ||
146 | .enable_dma = 0, /* if 1 - block!!! */ | 111 | .enable_dma = 0, /* if 1 - block!!! */ |
147 | .bits_per_word = 8, | 112 | .bits_per_word = 8, |
148 | .cs_change_per_word = 0, | ||
149 | }; | 113 | }; |
150 | #endif | 114 | #endif |
151 | 115 | ||