Home | History | Annotate | Line # | Download | only in marvell
marvellreg.h revision 1.3
      1 /*	$NetBSD: marvellreg.h,v 1.3 2010/07/13 14:00:07 kiyohara Exp $	*/
      2 /*
      3  * Copyright (c) 2009 KIYOHARA Takashi
      4  * All rights reserved.
      5  *
      6  * Redistribution and use in source and binary forms, with or without
      7  * modification, are permitted provided that the following conditions
      8  * are met:
      9  * 1. Redistributions of source code must retain the above copyright
     10  *    notice, this list of conditions and the following disclaimer.
     11  * 2. Redistributions in binary form must reproduce the above copyright
     12  *    notice, this list of conditions and the following disclaimer in the
     13  *    documentation and/or other materials provided with the distribution.
     14  *
     15  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
     16  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
     17  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
     18  * DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
     19  * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
     20  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
     21  * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
     22  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
     23  * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
     24  * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
     25  * POSSIBILITY OF SUCH DAMAGE.
     26  */
     27 
     28 #ifndef _DEV_MARVELL_MARVELLREG_H_
     29 #define _DEV_MARVELL_MARVELLREG_H_
     30 
     31 #include <dev/pci/pcidevs.h>
     32 
     33 #define MARVELL_DISCOVERY		PCI_PRODUCT_MARVELL_GT64260
     34 #define MARVELL_DISCOVERY_II		PCI_PRODUCT_MARVELL_MV64360
     35 #define MARVELL_DISCOVERY_III		PCI_PRODUCT_MARVELL_MV64460
     36 #if 0
     37 #define MARVELL_DISCOVERY_LT		/* XXXX */
     38 #define MARVELL_DISCOVERY_V		/* XXXX */
     39 #define MARVELL_DISCOVERY_VI		/* XXXX */
     40 #endif
     41 
     42 #define MARVELL_ORION_1_88F1181		PCI_PRODUCT_MARVELL_88F1181
     43 #define MARVELL_ORION_1_88F5082		PCI_PRODUCT_MARVELL_88F5082
     44 #define MARVELL_ORION_1_88F5180N	PCI_PRODUCT_MARVELL_88F5180N
     45 #define MARVELL_ORION_1_88F5181		PCI_PRODUCT_MARVELL_88F5181
     46 #define MARVELL_ORION_1_88F5182		PCI_PRODUCT_MARVELL_88F5182
     47 #define MARVELL_ORION_1_88F6082		PCI_PRODUCT_MARVELL_88F6082
     48 #define MARVELL_ORION_1_88W8660		PCI_PRODUCT_MARVELL_88W8660
     49 
     50 #define MARVELL_ORION_2_88F1281		PCI_PRODUCT_MARVELL_88F1281
     51 #define MARVELL_ORION_2_88F5281		PCI_PRODUCT_MARVELL_88F5281
     52 
     53 #define MARVELL_KIRKWOOD_88F6180	PCI_PRODUCT_MARVELL_88F6180
     54 #define MARVELL_KIRKWOOD_88F6192	PCI_PRODUCT_MARVELL_88F6192
     55 #define MARVELL_KIRKWOOD_88F6281	PCI_PRODUCT_MARVELL_88F6281
     56 
     57 #define MARVELL_MV78XX0_MV78100		PCI_PRODUCT_MARVELL_MV78100
     58 #define MARVELL_MV78XX0_MV78200		PCI_PRODUCT_MARVELL_MV78200
     59 
     60 #define MARVELL_DISCOVERY_REVA	0x10
     61 #define MARVELL_DISCOVERY_REVB	0x20
     62 
     63 
     64 #define MARVELL_ATTR_MASK		0xff
     65 #define MARVELL_ATTR_SDRAM_CS0		0x0e
     66 #define MARVELL_ATTR_SDRAM_CS1		0x0d
     67 #define MARVELL_ATTR_SDRAM_CS2		0x0b
     68 #define MARVELL_ATTR_SDRAM_CS3		0x07
     69 #define MARVELL_ATTR_PEX_CFG		0x79	/* bug workaround ?? */
     70 #define MARVELL_ATTR_PEX_MEM		0x59
     71 #define MARVELL_ATTR_PEX_IO		0x51
     72 #define MARVELL_ATTR_PCI_MEM		0x59
     73 #define MARVELL_ATTR_PCI_IO		0x51
     74 #define MARVELL_ATTR_DEVICE_CS0		0x1e
     75 #define MARVELL_ATTR_DEVICE_CS1		0x1d
     76 #define MARVELL_ATTR_DEVICE_CS2		0x1b
     77 #define MARVELL_ATTR_FLASH_CS		0x1b
     78 #define MARVELL_ATTR_BOOT_CS		0x0f
     79 #define MARVELL_ATTR_CRYPT		0x00
     80 
     81 #endif	/* _DEV_MARVELL_MARVELLREG_H_ */
     82