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