blob: 25a6ed1aaa5b1e3e7aa2e774a7beab34f78001f9 [file] [log] [blame]
Pete Popov26a940e2005-09-15 08:03:12 +00001README for MIPS AU1XXX IDE driver - Released 2005-07-15
2
3ABOUT
4-----
5This file describes the 'drivers/ide/mips/au1xxx-ide.c', related files and the
6services they provide.
7
8If you are short in patience and just want to know how to add your hard disc to
9the white or black list, go to the 'ADD NEW HARD DISC TO WHITE OR BLACK LIST'
10section.
11
12
13LICENSE
14-------
15
16Copyright (c) 2003-2005 AMD, Personal Connectivity Solutions
17
18This program is free software; you can redistribute it and/or modify it under
19the terms of the GNU General Public License as published by the Free Software
20Foundation; either version 2 of the License, or (at your option) any later
21version.
22
23THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
24INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
25FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR
26BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
27CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
28SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
29INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
30CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
31ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
32POSSIBILITY OF SUCH DAMAGE.
33
34You should have received a copy of the GNU General Public License along with
35this program; if not, write to the Free Software Foundation, Inc.,
36675 Mass Ave, Cambridge, MA 02139, USA.
37
38Note: for more information, please refer "AMD Alchemy Au1200/Au1550 IDE
39 Interface and Linux Device Driver" Application Note.
40
41
42FILES, CONFIGS AND COMPATABILITY
43--------------------------------
44
45Two files are introduced:
46
47 a) 'include/asm-mips/mach-au1x00/au1xxx_ide.h'
48 containes : struct _auide_hwif
Pete Popov26a940e2005-09-15 08:03:12 +000049 timing parameters for PIO mode 0/1/2/3/4
50 timing parameters for MWDMA 0/1/2
51
52 b) 'drivers/ide/mips/au1xxx-ide.c'
53 contains the functionality of the AU1XXX IDE driver
54
55Four configs variables are introduced:
56
57 CONFIG_BLK_DEV_IDE_AU1XXX_PIO_DBDMA - enable the PIO+DBDMA mode
58 CONFIG_BLK_DEV_IDE_AU1XXX_MDMA2_DBDMA - enable the MWDMA mode
59 CONFIG_BLK_DEV_IDE_AU1XXX_BURSTABLE_ON - set Burstable FIFO in DBDMA
Robert P. J. Day3a4fa0a2007-10-19 23:10:43 +020060 controller
Pete Popov26a940e2005-09-15 08:03:12 +000061 CONFIG_BLK_DEV_IDE_AU1XXX_SEQTS_PER_RQ - maximum transfer size
62 per descriptor
63
Pete Popov26a940e2005-09-15 08:03:12 +000064
65SUPPORTED IDE MODES
66-------------------
67
68The AU1XXX IDE driver supported all PIO modes - PIO mode 0/1/2/3/4 - and all
69MWDMA modes - MWDMA 0/1/2 -. There is no support for SWDMA and UDMA mode.
70
71To change the PIO mode use the program hdparm with option -p, e.g.
72'hdparm -p0 [device]' for PIO mode 0. To enable the MWDMA mode use the option
73-X, e.g. 'hdparm -X32 [device]' for MWDMA mode 0.
74
75
76PERFORMANCE CONFIGURATIONS
77--------------------------
78
79If the used system doesn't need USB support enable the following kernel configs:
80
81CONFIG_IDE=y
82CONFIG_BLK_DEV_IDE=y
83CONFIG_IDE_GENERIC=y
84CONFIG_BLK_DEV_IDEPCI=y
85CONFIG_BLK_DEV_GENERIC=y
86CONFIG_BLK_DEV_IDEDMA_PCI=y
87CONFIG_IDEDMA_PCI_AUTO=y
88CONFIG_BLK_DEV_IDE_AU1XXX=y
89CONFIG_BLK_DEV_IDE_AU1XXX_MDMA2_DBDMA=y
Pete Popov26a940e2005-09-15 08:03:12 +000090CONFIG_BLK_DEV_IDE_AU1XXX_SEQTS_PER_RQ=128
91CONFIG_BLK_DEV_IDEDMA=y
92CONFIG_IDEDMA_AUTO=y
93
Ralf Baechlea3c9dc32006-02-14 19:13:23 +000094Also define 'IDE_AU1XXX_BURSTMODE' in 'drivers/ide/mips/au1xxx-ide.c' to enable
95the burst support on DBDMA controller.
96
Pete Popov26a940e2005-09-15 08:03:12 +000097If the used system need the USB support enable the following kernel configs for
98high IDE to USB throughput.
99
100CONFIG_BLK_DEV_IDEDISK=y
101CONFIG_IDE_GENERIC=y
102CONFIG_BLK_DEV_IDEPCI=y
103CONFIG_BLK_DEV_GENERIC=y
104CONFIG_BLK_DEV_IDEDMA_PCI=y
105CONFIG_IDEDMA_PCI_AUTO=y
106CONFIG_BLK_DEV_IDE_AU1XXX=y
107CONFIG_BLK_DEV_IDE_AU1XXX_MDMA2_DBDMA=y
108CONFIG_BLK_DEV_IDE_AU1XXX_SEQTS_PER_RQ=128
109CONFIG_BLK_DEV_IDEDMA=y
110CONFIG_IDEDMA_AUTO=y
111
Ralf Baechlea3c9dc32006-02-14 19:13:23 +0000112Also undefine 'IDE_AU1XXX_BURSTMODE' in 'drivers/ide/mips/au1xxx-ide.c' to
113disable the burst support on DBDMA controller.
Pete Popov26a940e2005-09-15 08:03:12 +0000114
Pete Popov26a940e2005-09-15 08:03:12 +0000115
116ACKNOWLEDGMENTS
117---------------
118
119These drivers wouldn't have been done without the base of kernel 2.4.x AU1XXX
120IDE driver from AMD.
121
122Additional input also from:
123Matthias Lenk <matthias.lenk@amd.com>
124
125Happy hacking!
126Enrico Walther <enrico.walther@amd.com>