Home | History | Annotate | Line # | Download | only in tx
tx39biureg.h revision 1.4
      1  1.4  nakayama /*	$NetBSD: tx39biureg.h,v 1.4 2005/07/30 22:40:34 nakayama Exp $ */
      2  1.1       uch 
      3  1.3       uch /*-
      4  1.3       uch  * Copyright (c) 1999, 2000 The NetBSD Foundation, Inc.
      5  1.1       uch  * All rights reserved.
      6  1.1       uch  *
      7  1.3       uch  * This code is derived from software contributed to The NetBSD Foundation
      8  1.3       uch  * by UCHIYAMA Yasushi.
      9  1.3       uch  *
     10  1.1       uch  * Redistribution and use in source and binary forms, with or without
     11  1.1       uch  * modification, are permitted provided that the following conditions
     12  1.1       uch  * are met:
     13  1.1       uch  * 1. Redistributions of source code must retain the above copyright
     14  1.1       uch  *    notice, this list of conditions and the following disclaimer.
     15  1.3       uch  * 2. Redistributions in binary form must reproduce the above copyright
     16  1.3       uch  *    notice, this list of conditions and the following disclaimer in the
     17  1.3       uch  *    documentation and/or other materials provided with the distribution.
     18  1.3       uch  * 3. All advertising materials mentioning features or use of this software
     19  1.3       uch  *    must display the following acknowledgement:
     20  1.3       uch  *        This product includes software developed by the NetBSD
     21  1.3       uch  *        Foundation, Inc. and its contributors.
     22  1.3       uch  * 4. Neither the name of The NetBSD Foundation nor the names of its
     23  1.3       uch  *    contributors may be used to endorse or promote products derived
     24  1.3       uch  *    from this software without specific prior written permission.
     25  1.1       uch  *
     26  1.3       uch  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
     27  1.3       uch  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
     28  1.3       uch  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
     29  1.3       uch  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
     30  1.3       uch  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
     31  1.3       uch  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
     32  1.3       uch  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
     33  1.3       uch  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
     34  1.3       uch  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
     35  1.3       uch  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
     36  1.3       uch  * POSSIBILITY OF SUCH DAMAGE.
     37  1.1       uch  */
     38  1.1       uch /*
     39  1.1       uch  * Toshiba TX3912/3922 BIU module (Bus Interface Unit)
     40  1.1       uch  */
     41  1.1       uch 
     42  1.1       uch /*
     43  1.1       uch  * System Address Map
     44  1.1       uch  */
     45  1.1       uch #define TX39_SYSADDR_DRAMBANK0CS1	0x00000000
     46  1.1       uch #define TX39_SYSADDR_DRAMBANK1CS1	0x02000000
     47  1.1       uch #define TX39_SYSADDR_DRAMBANK0		0x04000000
     48  1.1       uch #define TX39_SYSADDR_DRAMBANK1		0x06000000
     49  1.1       uch #define TX39_SYSADDR_DRAMBANK_LEN	0x02000000
     50  1.1       uch 
     51  1.1       uch #define TX39_SYSADDR_CARD1		0x08000000
     52  1.1       uch #define TX39_SYSADDR_CARD2		0x0C000000
     53  1.1       uch /* 64MByte */
     54  1.1       uch #define TX39_SYSADDR_CARD_SIZE		0x04000000
     55  1.1       uch 
     56  1.1       uch #define TX39_SYSADDR_CS1		0x10000000
     57  1.1       uch #define TX39_SYSADDR_CS2		0x10400000
     58  1.1       uch #define TX39_SYSADDR_CS3		0x10800000
     59  1.1       uch /* 4MByte */
     60  1.1       uch #define TX39_SYSADDR_CS_SIZE		0x00400000
     61  1.1       uch 
     62  1.1       uch #define TX39_SYSADDR_CONFIG_REG		0x10c00000
     63  1.1       uch #define TX39_SYSADDR_CONFIG_REG_LEN	0x00200000
     64  1.1       uch 
     65  1.1       uch #define TX39_SYSADDR_SDRAMBANK0MODE_REG	0x10e00000
     66  1.1       uch #define TX39_SYSADDR_SDRAMBANK1MODE_REG	0x10f00000
     67  1.1       uch #define TX39_SYSADDR_CS0		0x11000000
     68  1.1       uch #define TX39_SYSADDR_KUSEG_DRAMBANK0CS1	0x40000000
     69  1.1       uch #define TX39_SYSADDR_KUSEG_DRAMBANK1CS1	0x42000000
     70  1.1       uch #define TX39_SYSADDR_KUSEG_DRAMBANK0	0x44000000
     71  1.1       uch #define TX39_SYSADDR_KUSEG_DRAMBANK1	0x46000000
     72  1.1       uch #define TX39_SYSADDR_KUSEG_CS0		0x50000000
     73  1.1       uch #define TX39_SYSADDR_KUSEG_CS1		0x58000000
     74  1.1       uch #define TX39_SYSADDR_KUSEG_CS2		0x5c000000
     75  1.1       uch #define TX39_SYSADDR_KUSEG_CS3		0x60000000
     76  1.4  nakayama /* 64MByte */
     77  1.4  nakayama #define TX39_SYSADDR_KUCS_SIZE		0x04000000
     78  1.4  nakayama 
     79  1.1       uch #define TX39_SYSADDR_CARD1MEM		0x64000000
     80  1.1       uch #define TX39_SYSADDR_CARD2MEM		0x68000000
     81  1.1       uch #define TX39_SYSADDR_MCS0		0x6c000000
     82  1.1       uch #define TX39_SYSADDR_MCS1		0x70000000
     83  1.1       uch #ifdef TX391X
     84  1.1       uch #define TX39_SYSADDR_MCS2		0x74000000
     85  1.2       uch #define TX39_SYSADDR_MCS3		0x78000000
     86  1.1       uch #endif /* TX391X */
     87  1.1       uch /* 64MByte */
     88  1.1       uch #define TX39_SYSADDR_MCS_SIZE		0x04000000
     89  1.1       uch 
     90  1.1       uch /*
     91  1.1       uch  *	BIU module registers.
     92  1.1       uch  */
     93  1.1       uch #define TX39_MEMCONFIG0_REG		0x00
     94  1.1       uch #define TX39_MEMCONFIG1_REG		0x04
     95  1.1       uch #define TX39_MEMCONFIG2_REG		0x08
     96  1.1       uch #define TX39_MEMCONFIG3_REG		0x0C
     97  1.1       uch #define TX39_MEMCONFIG4_REG		0x10
     98  1.1       uch #define TX39_MEMCONFIG5_REG		0x14
     99  1.1       uch #define TX39_MEMCONFIG6_REG		0x18
    100  1.1       uch #define TX39_MEMCONFIG7_REG		0x1C
    101  1.1       uch #define TX39_MEMCONFIG8_REG		0x20
    102  1.1       uch 
    103  1.1       uch /*
    104  1.1       uch  *	Memory Configuration 0 Register
    105  1.1       uch  */
    106  1.1       uch /* R/W */
    107  1.1       uch #define TX39_MEMCONFIG0_ENDCLKOUTTRI	0x40000000
    108  1.1       uch #define TX39_MEMCONFIG0_DISDQMINIT	0x20000000
    109  1.1       uch #define TX39_MEMCONFIG0_ENSDRAMPD	0x10000000
    110  1.1       uch #define TX39_MEMCONFIG0_SHOWDINO	0x08000000
    111  1.1       uch #define TX39_MEMCONFIG0_ENRMAP2		0x04000000
    112  1.1       uch #define TX39_MEMCONFIG0_ENRMAP1		0x02000000
    113  1.1       uch #define TX39_MEMCONFIG0_ENWRINPAGE	0x01000000
    114  1.1       uch #define TX39_MEMCONFIG0_ENCS3USER	0x00800000
    115  1.1       uch #define TX39_MEMCONFIG0_ENCS2USER	0x00400000
    116  1.1       uch #define TX39_MEMCONFIG0_ENCS1USER	0x00200000
    117  1.1       uch #define TX39_MEMCONFIG0_ENCS1DRAM	0x00100000
    118  1.1       uch 
    119  1.1       uch #define TX39_MEMCONFIG0_BANK1CONF_SHIFT 18
    120  1.1       uch #define TX39_MEMCONFIG0_BANK1CONF_MASK	0x3
    121  1.3       uch #define TX39_MEMCONFIG0_BANK1CONF(cr)					\
    122  1.3       uch 	(((cr) >> TX39_MEMCONFIG0_BANK1CONF_SHIFT) &			\
    123  1.1       uch 	TX39_MEMCONFIG0_BANK1CONF_MASK)
    124  1.3       uch #define TX39_MEMCONFIG0_BANK1CONF_SET(cr, val)				\
    125  1.3       uch 	((cr) | (((val) << TX39_MEMCONFIG0_BANK1CONF_SHIFT) &		\
    126  1.1       uch 	(TX39_MEMCONFIG0_BANK1CONF_MASK << TX39_MEMCONFIG0_BANK1CONF_SHIFT)))
    127  1.1       uch #define TX39_MEMCONFIG0_BANK0CONF_SHIFT 16
    128  1.1       uch #define TX39_MEMCONFIG0_BANK0CONF_MASK	0x3
    129  1.3       uch #define TX39_MEMCONFIG0_BANK0CONF(cr)					\
    130  1.3       uch 	(((cr) >> TX39_MEMCONFIG0_BANK0CONF_SHIFT) &			\
    131  1.1       uch 	TX39_MEMCONFIG0_BANK0CONF_MASK)
    132  1.3       uch #define TX39_MEMCONFIG0_BANK0CONF_SET(cr, val)				\
    133  1.3       uch 	((cr) | (((val) << TX39_MEMCONFIG0_BANK0CONF_SHIFT) &		\
    134  1.1       uch 	(TX39_MEMCONFIG0_BANK0CONF_MASK << TX39_MEMCONFIG0_BANK0CONF_SHIFT)))
    135  1.1       uch #define TX39_MEMCONFIG0_BANKCONF_16BITSDRAM	0x3
    136  1.1       uch #define TX39_MEMCONFIG0_BANKCONF_8BITSDRAM	0x2
    137  1.1       uch #define TX39_MEMCONFIG0_BANKCONF_32BITSDHDRAM	0x1
    138  1.1       uch #define TX39_MEMCONFIG0_BANKCONF_16BITSDHDRAM	0x0
    139  1.1       uch 
    140  1.1       uch #define TX39_MEMCONFIG0_ROWSEL1_SHIFT 14
    141  1.1       uch #define TX39_MEMCONFIG0_ROWSEL1_MASK	0x3
    142  1.3       uch #define TX39_MEMCONFIG0_ROWSEL1(cr)					\
    143  1.3       uch 	(((cr) >> TX39_MEMCONFIG0_ROWSEL1_SHIFT) &			\
    144  1.1       uch 	TX39_MEMCONFIG0_ROWSEL1_MASK)
    145  1.3       uch #define TX39_MEMCONFIG0_ROWSEL1_SET(cr, val)				\
    146  1.3       uch 	((cr) | (((val) << TX39_MEMCONFIG0_ROWSEL1_SHIFT) &		\
    147  1.1       uch 	(TX39_MEMCONFIG0_ROWSEL1_MASK << TX39_MEMCONFIG0_ROWSEL1_SHIFT)))
    148  1.1       uch #define TX39_MEMCONFIG0_ROWSEL0_SHIFT 12
    149  1.1       uch #define TX39_MEMCONFIG0_ROWSEL0_MASK	0x3
    150  1.3       uch #define TX39_MEMCONFIG0_ROWSEL0(cr)					\
    151  1.3       uch 	(((cr) >> TX39_MEMCONFIG0_ROWSEL0_SHIFT) &			\
    152  1.1       uch 	TX39_MEMCONFIG0_ROWSEL0_MASK)
    153  1.3       uch #define TX39_MEMCONFIG0_ROWSEL0_SET(cr, val)				\
    154  1.3       uch 	((cr) | (((val) << TX39_MEMCONFIG0_ROWSEL0_SHIFT) &		\
    155  1.1       uch 	(TX39_MEMCONFIG0_ROWSEL0_MASK << TX39_MEMCONFIG0_ROWSEL0_SHIFT)))
    156  1.1       uch 
    157  1.1       uch #define TX39_MEMCONFIG0_COLSEL1_SHIFT 8
    158  1.1       uch #define TX39_MEMCONFIG0_COLSEL1_MASK	0xf
    159  1.3       uch #define TX39_MEMCONFIG0_COLSEL1(cr)					\
    160  1.3       uch 	(((cr) >> TX39_MEMCONFIG0_COLSEL1_SHIFT) &			\
    161  1.1       uch 	TX39_MEMCONFIG0_COLSEL1_MASK)
    162  1.3       uch #define TX39_MEMCONFIG0_COLSEL1_SET(cr, val)				\
    163  1.3       uch 	((cr) | (((val) << TX39_MEMCONFIG0_COLSEL1_SHIFT) &		\
    164  1.1       uch 	(TX39_MEMCONFIG0_COLSEL1_MASK << TX39_MEMCONFIG0_COLSEL1_SHIFT)))
    165  1.1       uch #define TX39_MEMCONFIG0_COLSEL0_SHIFT 4
    166  1.1       uch #define TX39_MEMCONFIG0_COLSEL0_MASK	0xf
    167  1.3       uch #define TX39_MEMCONFIG0_COLSEL0(cr)					\
    168  1.3       uch 	(((cr) >> TX39_MEMCONFIG0_COLSEL0_SHIFT) &			\
    169  1.1       uch 	TX39_MEMCONFIG0_COLSEL0_MASK)
    170  1.3       uch #define TX39_MEMCONFIG0_COLSEL0_SET(cr, val)				\
    171  1.3       uch 	((cr) | (((val) << TX39_MEMCONFIG0_COLSEL0_SHIFT) &		\
    172  1.1       uch 	(TX39_MEMCONFIG0_COLSEL0_MASK << TX39_MEMCONFIG0_COLSEL0_SHIFT)))
    173  1.1       uch 
    174  1.1       uch #define TX39_MEMCONFIG0_CS3SIZE		0x00000008
    175  1.1       uch #define TX39_MEMCONFIG0_CS2SIZE		0x00000004
    176  1.1       uch #define TX39_MEMCONFIG0_CS1SIZE		0x00000002
    177  1.1       uch #define TX39_MEMCONFIG0_CS0SIZE		0x00000001
    178  1.1       uch 
    179  1.1       uch /*
    180  1.1       uch  *	Memory Configuration 1 Register
    181  1.1       uch  */
    182  1.1       uch #ifdef TX391X
    183  1.1       uch #define TX39_MEMCONFIG1_MCS3ACCVAL1_SHIFT	28
    184  1.1       uch #define TX39_MEMCONFIG1_MCS3ACCVAL1_MASK	0xf
    185  1.3       uch #define TX39_MEMCONFIG1_MCS3ACCVAL1(cr)					\
    186  1.3       uch 	(((cr) >> TX39_MEMCONFIG1_MCS3ACCVAL1_SHIFT) &			\
    187  1.1       uch 	TX39_MEMCONFIG1_MCS3ACCVAL1_MASK)
    188  1.3       uch #define TX39_MEMCONFIG1_MCS3ACCVAL1_SET(cr, val)			\
    189  1.3       uch 	((cr) | (((val) << TX39_MEMCONFIG1_MCS3ACCVAL1_SHIFT) &		\
    190  1.3       uch 	(TX39_MEMCONFIG1_MCS3ACCVAL1_MASK <<				\
    191  1.3       uch 	TX39_MEMCONFIG1_MCS3ACCVAL1_SHIFT)))
    192  1.1       uch 
    193  1.1       uch #define TX39_MEMCONFIG1_MCS3ACCVAL2_SHIFT	24
    194  1.1       uch #define TX39_MEMCONFIG1_MCS3ACCVAL2_MASK	0xf
    195  1.3       uch #define TX39_MEMCONFIG1_MCS3ACCVAL2(cr)					\
    196  1.3       uch 	(((cr) >> TX39_MEMCONFIG1_MCS3ACCVAL2_SHIFT) &			\
    197  1.1       uch 	TX39_MEMCONFIG1_MCS3ACCVAL2_MASK)
    198  1.3       uch #define TX39_MEMCONFIG1_MCS3ACCVAL2_SET(cr, val)			\
    199  1.3       uch 	((cr) | (((val) << TX39_MEMCONFIG1_MCS3ACCVAL2_SHIFT) &		\
    200  1.3       uch 	(TX39_MEMCONFIG1_MCS3ACCVAL2_MASK <<				\
    201  1.3       uch 	TX39_MEMCONFIG1_MCS3ACCVAL2_SHIFT)))
    202  1.1       uch 
    203  1.1       uch #define TX39_MEMCONFIG1_MCS2ACCVAL1_SHIFT	20
    204  1.1       uch #define TX39_MEMCONFIG1_MCS2ACCVAL1_MASK	0xf
    205  1.3       uch #define TX39_MEMCONFIG1_MCS2ACCVAL1(cr)					\
    206  1.3       uch 	(((cr) >> TX39_MEMCONFIG1_MCS2ACCVAL1_SHIFT) &			\
    207  1.1       uch 	TX39_MEMCONFIG1_MCS2ACCVAL1_MASK)
    208  1.3       uch #define TX39_MEMCONFIG1_MCS2ACCVAL1_SET(cr, val)			\
    209  1.3       uch 	((cr) | (((val) << TX39_MEMCONFIG1_MCS2ACCVAL1_SHIFT) &		\
    210  1.3       uch 	(TX39_MEMCONFIG1_MCS2ACCVAL1_MASK <<				\
    211  1.3       uch 	TX39_MEMCONFIG1_MCS2ACCVAL1_SHIFT)))
    212  1.1       uch 
    213  1.1       uch #define TX39_MEMCONFIG1_MCS2ACCVAL2_SHIFT	16
    214  1.1       uch #define TX39_MEMCONFIG1_MCS2ACCVAL2_MASK	0xf
    215  1.3       uch #define TX39_MEMCONFIG1_MCS2ACCVAL2(cr)					\
    216  1.3       uch 	(((cr) >> TX39_MEMCONFIG1_MCS2ACCVAL2_SHIFT) &			\
    217  1.1       uch 	TX39_MEMCONFIG1_MCS2ACCVAL2_MASK)
    218  1.3       uch #define TX39_MEMCONFIG1_MCS2ACCVAL2_SET(cr, val)			\
    219  1.3       uch 	((cr) | (((val) << TX39_MEMCONFIG1_MCS2ACCVAL2_SHIFT) &		\
    220  1.3       uch 	(TX39_MEMCONFIG1_MCS2ACCVAL2_MASK <<				\
    221  1.3       uch 	TX39_MEMCONFIG1_MCS2ACCVAL2_SHIFT)))
    222  1.1       uch #endif /* TX391X */
    223  1.1       uch #ifdef TX392X
    224  1.1       uch #define	TX39_MEMCONFIG1_C48MPLLON	0x40000000
    225  1.1       uch #define	TX39_MEMCONFIG1_ENMCS1BE	0x20000000
    226  1.1       uch #define	TX39_MEMCONFIG1_ENMCS0BE	0x10000000
    227  1.1       uch #define	TX39_MEMCONFIG1_ENMCS1ACC	0x08000000
    228  1.1       uch #define	TX39_MEMCONFIG1_ENMCS0ACC	0x04000000
    229  1.1       uch #define TX39_MEMCONFIG1_BCLKDIV_SHIFT	23
    230  1.1       uch #define TX39_MEMCONFIG1_BCLKDIV_MASK	0x7
    231  1.3       uch #define TX39_MEMCONFIG1_BCLKDIV(cr)					\
    232  1.3       uch 	(((cr) >> TX39_MEMCONFIG1_BCLKDIV_SHIFT) &			\
    233  1.1       uch 	TX39_MEMCONFIG1_BCLKDIV_MASK)
    234  1.3       uch #define TX39_MEMCONFIG1_BCLKDIV_SET(cr, val)				\
    235  1.3       uch 	((cr) | (((val) << TX39_MEMCONFIG1_BCLKDIV_SHIFT) &		\
    236  1.1       uch 	(TX39_MEMCONFIG1_BCLKDIV_MASK << TX39_MEMCONFIG1_BCLKDIV_SHIFT)))
    237  1.1       uch #define	TX39_MEMCONFIG1_ENBCLK		0x00400000
    238  1.1       uch #define	TX39_MEMCONFIG1_ENMCS1PAGE	0x00200000
    239  1.1       uch #define	TX39_MEMCONFIG1_ENMCS0PAGE	0x00100000
    240  1.1       uch #define	TX39_MEMCONFIG1_ENMCS1WAIT	0x00080000
    241  1.1       uch #define	TX39_MEMCONFIG1_ENMCS0WAIT	0x00040000
    242  1.1       uch #define	TX39_MEMCONFIG1_MCS1_32		0x00020000
    243  1.1       uch #define	TX39_MEMCONFIG1_MCS0_32		0x00010000
    244  1.1       uch #endif /* TX392X */
    245  1.1       uch 
    246  1.1       uch #define TX39_MEMCONFIG1_MCS1ACCVAL1_SHIFT	12
    247  1.1       uch #define TX39_MEMCONFIG1_MCS1ACCVAL1_MASK	0xf
    248  1.3       uch #define TX39_MEMCONFIG1_MCS1ACCVAL1(cr)					\
    249  1.3       uch 	(((cr) >> TX39_MEMCONFIG1_MCS1ACCVAL1_SHIFT) &			\
    250  1.1       uch 	TX39_MEMCONFIG1_MCS1ACCVAL1_MASK)
    251  1.3       uch #define TX39_MEMCONFIG1_MCS1ACCVAL1_SET(cr, val)			\
    252  1.3       uch 	((cr) | (((val) << TX39_MEMCONFIG1_MCS1ACCVAL1_SHIFT) &		\
    253  1.3       uch 	(TX39_MEMCONFIG1_MCS1ACCVAL1_MASK <<				\
    254  1.3       uch 	TX39_MEMCONFIG1_MCS1ACCVAL1_SHIFT)))
    255  1.1       uch 
    256  1.1       uch #define TX39_MEMCONFIG1_MCS1ACCVAL2_SHIFT	8
    257  1.1       uch #define TX39_MEMCONFIG1_MCS1ACCVAL2_MASK	0xf
    258  1.3       uch #define TX39_MEMCONFIG1_MCS1ACCVAL2(cr)					\
    259  1.3       uch 	(((cr) >> TX39_MEMCONFIG1_MCS1ACCVAL2_SHIFT) &			\
    260  1.1       uch 	TX39_MEMCONFIG1_MCS1ACCVAL2_MASK)
    261  1.3       uch #define TX39_MEMCONFIG1_MCS1ACCVAL2_SET(cr, val)			\
    262  1.3       uch 	((cr) | (((val) << TX39_MEMCONFIG1_MCS1ACCVAL2_SHIFT) &		\
    263  1.3       uch 	(TX39_MEMCONFIG1_MCS1ACCVAL2_MASK <<				\
    264  1.3       uch 	TX39_MEMCONFIG1_MCS1ACCVAL2_SHIFT)))
    265  1.1       uch 
    266  1.1       uch #define TX39_MEMCONFIG1_MCS0ACCVAL1_SHIFT	4
    267  1.1       uch #define TX39_MEMCONFIG1_MCS0ACCVAL1_MASK	0xf
    268  1.3       uch #define TX39_MEMCONFIG1_MCS0ACCVAL1(cr)					\
    269  1.3       uch 	(((cr) >> TX39_MEMCONFIG1_MCS0ACCVAL1_SHIFT) &			\
    270  1.1       uch 	TX39_MEMCONFIG1_MCS0ACCVAL1_MASK)
    271  1.3       uch #define TX39_MEMCONFIG1_MCS0ACCVAL1_SET(cr, val)			\
    272  1.3       uch 	((cr) | (((val) << TX39_MEMCONFIG1_MCS0ACCVAL1_SHIFT) &		\
    273  1.3       uch 	(TX39_MEMCONFIG1_MCS0ACCVAL1_MASK <<				\
    274  1.3       uch 	TX39_MEMCONFIG1_MCS0ACCVAL1_SHIFT)))
    275  1.1       uch 
    276  1.1       uch #define TX39_MEMCONFIG1_MCS0ACCVAL2_SHIFT	0
    277  1.1       uch #define TX39_MEMCONFIG1_MCS0ACCVAL2_MASK	0xf
    278  1.3       uch #define TX39_MEMCONFIG1_MCS0ACCVAL2(cr)					\
    279  1.3       uch 	(((cr) >> TX39_MEMCONFIG1_MCS0ACCVAL2_SHIFT) &			\
    280  1.1       uch 	TX39_MEMCONFIG1_MCS0ACCVAL2_MASK)
    281  1.3       uch #define TX39_MEMCONFIG1_MCS0ACCVAL2_SET(cr, val)			\
    282  1.3       uch 	((cr) | (((val) << TX39_MEMCONFIG1_MCS0ACCVAL2_SHIFT) &		\
    283  1.3       uch 	(TX39_MEMCONFIG1_MCS0ACCVAL2_MASK <<				\
    284  1.3       uch 	TX39_MEMCONFIG1_MCS0ACCVAL2_SHIFT)))
    285  1.1       uch 
    286  1.1       uch /*
    287  1.1       uch  *	Memory Configuration 2 Register
    288  1.1       uch  */
    289  1.1       uch /* Define access timing. not required yet */
    290  1.1       uch #define TX39_MEMCONFIG2_CS3ACCVAL1_SHIFT	28
    291  1.3       uch #define TX39_MEMCONFIG2_CS3ACCVAL1_MASK		0xf
    292  1.3       uch #define TX39_MEMCONFIG2_CS3ACCVAL1(cr)					\
    293  1.3       uch 	(((cr) >> TX39_MEMCONFIG2_CS3ACCVAL1_SHIFT) &			\
    294  1.1       uch 	TX39_MEMCONFIG2_CS3ACCVAL1_MASK)
    295  1.3       uch #define TX39_MEMCONFIG2_CS3ACCVAL1_SET(cr, val)				\
    296  1.3       uch 	((cr) | (((val) << TX39_MEMCONFIG2_CS3ACCVAL1_SHIFT) &		\
    297  1.1       uch 	(TX39_MEMCONFIG2_CS3ACCVAL1_MASK << TX39_MEMCONFIG2_CS3ACCVAL1_SHIFT)))
    298  1.1       uch 
    299  1.1       uch #define TX39_MEMCONFIG2_CS3ACCVAL2_SHIFT	24
    300  1.3       uch #define TX39_MEMCONFIG2_CS3ACCVAL2_MASK		0xf
    301  1.3       uch #define TX39_MEMCONFIG2_CS3ACCVAL2(cr)					\
    302  1.3       uch 	(((cr) >> TX39_MEMCONFIG2_CS3ACCVAL2_SHIFT) &			\
    303  1.1       uch 	TX39_MEMCONFIG2_CS3ACCVAL2_MASK)
    304  1.3       uch #define TX39_MEMCONFIG2_CS3ACCVAL2_SET(cr, val)				\
    305  1.3       uch 	((cr) | (((val) << TX39_MEMCONFIG2_CS3ACCVAL2_SHIFT) &		\
    306  1.1       uch 	(TX39_MEMCONFIG2_CS3ACCVAL2_MASK << TX39_MEMCONFIG2_CS3ACCVAL2_SHIFT)))
    307  1.1       uch 
    308  1.1       uch #define TX39_MEMCONFIG2_CS2ACCVAL1_SHIFT	20
    309  1.3       uch #define TX39_MEMCONFIG2_CS2ACCVAL1_MASK		0xf
    310  1.3       uch #define TX39_MEMCONFIG2_CS2ACCVAL1(cr)					\
    311  1.3       uch 	(((cr) >> TX39_MEMCONFIG2_CS2ACCVAL1_SHIFT) &			\
    312  1.1       uch 	TX39_MEMCONFIG2_CS2ACCVAL1_MASK)
    313  1.3       uch #define TX39_MEMCONFIG2_CS2ACCVAL1_SET(cr, val)				\
    314  1.3       uch 	((cr) | (((val) << TX39_MEMCONFIG2_CS2ACCVAL1_SHIFT) &		\
    315  1.1       uch 	(TX39_MEMCONFIG2_CS2ACCVAL1_MASK << TX39_MEMCONFIG2_CS2ACCVAL1_SHIFT)))
    316  1.1       uch 
    317  1.1       uch #define TX39_MEMCONFIG2_CS2ACCVAL2_SHIFT	16
    318  1.3       uch #define TX39_MEMCONFIG2_CS2ACCVAL2_MASK		0xf
    319  1.3       uch #define TX39_MEMCONFIG2_CS2ACCVAL2(cr)					\
    320  1.3       uch 	(((cr) >> TX39_MEMCONFIG2_CS2ACCVAL2_SHIFT) &			\
    321  1.1       uch 	TX39_MEMCONFIG2_CS2ACCVAL2_MASK)
    322  1.3       uch #define TX39_MEMCONFIG2_CS2ACCVAL2_SET(cr, val)				\
    323  1.3       uch 	((cr) | (((val) << TX39_MEMCONFIG2_CS2ACCVAL2_SHIFT) &		\
    324  1.1       uch 	(TX39_MEMCONFIG2_CS2ACCVAL2_MASK << TX39_MEMCONFIG2_CS2ACCVAL2_SHIFT)))
    325  1.1       uch 
    326  1.1       uch #define TX39_MEMCONFIG2_CS1ACCVAL1_SHIFT	12
    327  1.3       uch #define TX39_MEMCONFIG2_CS1ACCVAL1_MASK		0xf
    328  1.3       uch #define TX39_MEMCONFIG2_CS1ACCVAL1(cr)					\
    329  1.3       uch 	(((cr) >> TX39_MEMCONFIG2_CS1ACCVAL1_SHIFT) &			\
    330  1.1       uch 	TX39_MEMCONFIG2_CS1ACCVAL1_MASK)
    331  1.3       uch #define TX39_MEMCONFIG2_CS1ACCVAL1_SET(cr, val)				\
    332  1.3       uch 	((cr) | (((val) << TX39_MEMCONFIG2_CS1ACCVAL1_SHIFT) &		\
    333  1.1       uch 	(TX39_MEMCONFIG2_CS1ACCVAL1_MASK << TX39_MEMCONFIG2_CS1ACCVAL1_SHIFT)))
    334  1.1       uch 
    335  1.1       uch #define TX39_MEMCONFIG2_CS1ACCVAL2_SHIFT	8
    336  1.3       uch #define TX39_MEMCONFIG2_CS1ACCVAL2_MASK		0xf
    337  1.3       uch #define TX39_MEMCONFIG2_CS1ACCVAL2(cr)					\
    338  1.3       uch 	(((cr) >> TX39_MEMCONFIG2_CS1ACCVAL2_SHIFT) &			\
    339  1.1       uch 	TX39_MEMCONFIG2_CS1ACCVAL2_MASK)
    340  1.3       uch #define TX39_MEMCONFIG2_CS1ACCVAL2_SET(cr, val)				\
    341  1.3       uch 	((cr) | (((val) << TX39_MEMCONFIG2_CS1ACCVAL2_SHIFT) &		\
    342  1.1       uch 	(TX39_MEMCONFIG2_CS1ACCVAL2_MASK << TX39_MEMCONFIG2_CS1ACCVAL2_SHIFT)))
    343  1.1       uch 
    344  1.1       uch #define TX39_MEMCONFIG2_CS0ACCVAL1_SHIFT	4
    345  1.3       uch #define TX39_MEMCONFIG2_CS0ACCVAL1_MASK		0xf
    346  1.3       uch #define TX39_MEMCONFIG2_CS0ACCVAL1(cr)					\
    347  1.3       uch 	(((cr) >> TX39_MEMCONFIG2_CS0ACCVAL1_SHIFT) &			\
    348  1.1       uch 	TX39_MEMCONFIG2_CS0ACCVAL1_MASK)
    349  1.3       uch #define TX39_MEMCONFIG2_CS0ACCVAL1_SET(cr, val)				\
    350  1.3       uch 	((cr) | (((val) << TX39_MEMCONFIG2_CS0ACCVAL1_SHIFT) &		\
    351  1.1       uch 	(TX39_MEMCONFIG2_CS0ACCVAL1_MASK << TX39_MEMCONFIG2_CS0ACCVAL1_SHIFT)))
    352  1.1       uch 
    353  1.1       uch #define TX39_MEMCONFIG2_CS0ACCVAL2_SHIFT	0
    354  1.3       uch #define TX39_MEMCONFIG2_CS0ACCVAL2_MASK		0xf
    355  1.3       uch #define TX39_MEMCONFIG2_CS0ACCVAL2(cr)					\
    356  1.3       uch 	(((cr) >> TX39_MEMCONFIG2_CS0ACCVAL2_SHIFT) &			\
    357  1.1       uch 	TX39_MEMCONFIG2_CS0ACCVAL2_MASK)
    358  1.3       uch #define TX39_MEMCONFIG2_CS0ACCVAL2_SET(cr, val)				\
    359  1.3       uch 	((cr) | (((val) << TX39_MEMCONFIG2_CS0ACCVAL2_SHIFT) &		\
    360  1.1       uch 	(TX39_MEMCONFIG2_CS0ACCVAL2_MASK << TX39_MEMCONFIG2_CS0ACCVAL2_SHIFT)))
    361  1.1       uch 
    362  1.1       uch /*
    363  1.1       uch  *	Memory Configuration 3 Register
    364  1.1       uch  */
    365  1.1       uch /* Define access timing, enable read page mode, PC-Card. */
    366  1.1       uch #define TX39_MEMCONFIG3_CARD2ACCVAL_SHIFT	28
    367  1.1       uch #define TX39_MEMCONFIG3_CARD2ACCVAL_MASK	0xf
    368  1.3       uch #define TX39_MEMCONFIG3_CARD2ACCVAL(cr)					\
    369  1.3       uch 	(((cr) >> TX39_MEMCONFIG3_CARD2ACCVAL_SHIFT) &			\
    370  1.1       uch 	TX39_MEMCONFIG3_CARD2ACCVAL_MASK)
    371  1.3       uch #define TX39_MEMCONFIG3_CARD2ACCVAL_SET(cr, val)			\
    372  1.3       uch 	((cr) | (((val) << TX39_MEMCONFIG3_CARD2ACCVAL_SHIFT) &		\
    373  1.3       uch 	(TX39_MEMCONFIG3_CARD2ACCVAL_MASK <<				\
    374  1.3       uch 	TX39_MEMCONFIG3_CARD2ACCVAL_SHIFT)))
    375  1.1       uch 
    376  1.1       uch #define TX39_MEMCONFIG3_CARD1ACCVAL_SHIFT	24
    377  1.1       uch #define TX39_MEMCONFIG3_CARD1ACCVAL_MASK	0xf
    378  1.3       uch #define TX39_MEMCONFIG3_CARD1ACCVAL(cr)					\
    379  1.3       uch 	(((cr) >> TX39_MEMCONFIG3_CARD1ACCVAL_SHIFT) &			\
    380  1.1       uch 	TX39_MEMCONFIG3_CARD1ACCVAL_MASK)
    381  1.3       uch #define TX39_MEMCONFIG3_CARD1ACCVAL_SET(cr, val)			\
    382  1.3       uch 	((cr) | (((val) << TX39_MEMCONFIG3_CARD1ACCVAL_SHIFT) &		\
    383  1.3       uch 	(TX39_MEMCONFIG3_CARD1ACCVAL_MASK <<				\
    384  1.3       uch 	TX39_MEMCONFIG3_CARD1ACCVAL_SHIFT)))
    385  1.1       uch 
    386  1.1       uch #define TX39_MEMCONFIG3_CARD2IOACCVAL_SHIFT	20
    387  1.1       uch #define TX39_MEMCONFIG3_CARD2IOACCVAL_MASK	0xf
    388  1.3       uch #define TX39_MEMCONFIG3_CARD2IOACCVAL(cr)				\
    389  1.3       uch 	(((cr) >> TX39_MEMCONFIG3_CARD2IOACCVAL_SHIFT) &		\
    390  1.1       uch 	TX39_MEMCONFIG3_CARD2IOACCVAL_MASK)
    391  1.3       uch #define TX39_MEMCONFIG3_CARD2IOACCVAL_SET(cr, val)			\
    392  1.3       uch 	((cr) | (((val) << TX39_MEMCONFIG3_CARD2IOACCVAL_SHIFT) &	\
    393  1.3       uch 	(TX39_MEMCONFIG3_CARD2IOACCVAL_MASK <<				\
    394  1.3       uch 	TX39_MEMCONFIG3_CARD2IOACCVAL_SHIFT)))
    395  1.1       uch 
    396  1.1       uch #define TX39_MEMCONFIG3_CARD1IOACCVAL_SHIFT	16
    397  1.1       uch #define TX39_MEMCONFIG3_CARD1IOACCVAL_MASK	0xf
    398  1.3       uch #define TX39_MEMCONFIG3_CARD1IOACCVAL(cr)				\
    399  1.3       uch 	(((cr) >> TX39_MEMCONFIG3_CARD1IOACCVAL_SHIFT) &		\
    400  1.1       uch 	TX39_MEMCONFIG3_CARD1IOACCVAL_MASK)
    401  1.3       uch #define TX39_MEMCONFIG3_CARD1IOACCVAL_SET(cr, val)			\
    402  1.3       uch 	((cr) | (((val) << TX39_MEMCONFIG3_CARD1IOACCVAL_SHIFT) &	\
    403  1.3       uch 	(TX39_MEMCONFIG3_CARD1IOACCVAL_MASK <<				\
    404  1.3       uch 	TX39_MEMCONFIG3_CARD1IOACCVAL_SHIFT)))
    405  1.1       uch #ifdef TX391X
    406  1.3       uch #define TX39_MEMCONFIG3_ENMCS3PAGE		0x00008000
    407  1.3       uch #define TX39_MEMCONFIG3_ENMCS2PAGE		0x00004000
    408  1.3       uch #define TX39_MEMCONFIG3_ENMCS1PAGE		0x00002000
    409  1.3       uch #define TX39_MEMCONFIG3_ENMCS0PAGE		0x00001000
    410  1.1       uch #endif /* TX391X */
    411  1.3       uch #define TX39_MEMCONFIG3_ENCS3PAGE		0x00000800
    412  1.3       uch #define TX39_MEMCONFIG3_ENCS2PAGE		0x00000400
    413  1.3       uch #define TX39_MEMCONFIG3_ENCS1PAGE		0x00000200
    414  1.3       uch #define TX39_MEMCONFIG3_ENCS0PAGE		0x00000100
    415  1.3       uch #define TX39_MEMCONFIG3_CARD2WAITEN		0x00000080
    416  1.3       uch #define TX39_MEMCONFIG3_CARD1WAITEN		0x00000040
    417  1.3       uch #define TX39_MEMCONFIG3_CARD2IOEN		0x00000020
    418  1.3       uch #define TX39_MEMCONFIG3_CARD1IOEN		0x00000010
    419  1.1       uch #ifdef TX391X
    420  1.3       uch #define TX39_MEMCONFIG3_PORT8SEL		0x00000008
    421  1.1       uch #endif /* TX391X */
    422  1.1       uch #ifdef TX392X
    423  1.3       uch #define TX39_MEMCONFIG3_CARD2_8SEL		0x00000008
    424  1.3       uch #define TX39_MEMCONFIG3_CARD1_8SEL		0x00000004
    425  1.1       uch #endif /* TX392X */
    426  1.1       uch /*
    427  1.1       uch  *	Memory Configuration 4 Register
    428  1.1       uch  */
    429  1.1       uch /* DMA */
    430  1.1       uch #define TX39_MEMCONFIG4_ENBANK1HDRAM		0x80000000
    431  1.1       uch #define TX39_MEMCONFIG4_ENBANK0HDRAM		0x40000000
    432  1.1       uch #define TX39_MEMCONFIG4_ENARB			0x20000000
    433  1.1       uch #define TX39_MEMCONFIG4_DISSNOOP		0x10000000
    434  1.1       uch #define TX39_MEMCONFIG4_CLRWRBUSERRINT		0x08000000
    435  1.1       uch #define TX39_MEMCONFIG4_ENBANK1OPT		0x04000000
    436  1.1       uch #define TX39_MEMCONFIG4_ENBANK0OPT		0x02000000
    437  1.1       uch #define TX39_MEMCONFIG4_ENWATCH			0x01000000
    438  1.1       uch 
    439  1.1       uch /*
    440  1.1       uch  * WatchDogTimerRate = (WATCHTIME[3:0] + 1) * 64 / 36.864MHz
    441  1.1       uch  */
    442  1.1       uch #define TX39_MEMCONFIG4_WATCHTIMEVAL_SHIFT	20
    443  1.1       uch #define TX39_MEMCONFIG4_WATCHTIMEVAL_MASK	0xf
    444  1.3       uch #define TX39_MEMCONFIG4_WATCHTIMEVAL(cr)				\
    445  1.3       uch 	(((cr) >> TX39_MEMCONFIG4_WATCHTIMEVAL_SHIFT) &			\
    446  1.1       uch 	TX39_MEMCONFIG4_WATCHTIMEVAL_MASK)
    447  1.3       uch #define TX39_MEMCONFIG4_WATCHTIMEVAL_SET(cr, val)			\
    448  1.3       uch 	((cr) | (((val) << TX39_MEMCONFIG4_WATCHTIMEVAL_SHIFT) &	\
    449  1.3       uch 	(TX39_MEMCONFIG4_WATCHTIMEVAL_MASK <<				\
    450  1.3       uch 	TX39_MEMCONFIG4_WATCHTIMEVAL_SHIFT)))
    451  1.1       uch 
    452  1.1       uch 
    453  1.1       uch #define TX39_MEMCONFIG4_MEMPOWERDOWN		0x00010000
    454  1.1       uch #define TX39_MEMCONFIG4_ENRFSH1			0x00008000
    455  1.1       uch #define TX39_MEMCONFIG4_ENRFSH0			0x00004000
    456  1.1       uch 
    457  1.1       uch #define TX39_MEMCONFIG4_RFSHVAL1_SHIFT	8
    458  1.1       uch #define TX39_MEMCONFIG4_RFSHVAL1_MASK	0x3f
    459  1.3       uch #define TX39_MEMCONFIG4_RFSHVAL1(cr)					\
    460  1.3       uch 	(((cr) >> TX39_MEMCONFIG4_RFSHVAL1_SHIFT) &			\
    461  1.1       uch 	TX39_MEMCONFIG4_RFSHVAL1_MASK)
    462  1.3       uch #define TX39_MEMCONFIG4_RFSHVAL1_SET(cr, val)				\
    463  1.3       uch 	((cr) | (((val) << TX39_MEMCONFIG4_RFSHVAL1_SHIFT) &		\
    464  1.1       uch 	(TX39_MEMCONFIG4_RFSHVAL1_MASK << TX39_MEMCONFIG4_RFSHVAL1_SHIFT)))
    465  1.1       uch 
    466  1.1       uch #define TX39_MEMCONFIG4_RFSHVAL0_SHIFT	0
    467  1.1       uch #define TX39_MEMCONFIG4_RFSHVAL0_MASK	0x3f
    468  1.3       uch #define TX39_MEMCONFIG4_RFSHVAL0(cr)					\
    469  1.3       uch 	(((cr) >> TX39_MEMCONFIG4_RFSHVAL0_SHIFT) &			\
    470  1.1       uch 	TX39_MEMCONFIG4_RFSHVAL0_MASK)
    471  1.3       uch #define TX39_MEMCONFIG4_RFSHVAL0_SET(cr, val)				\
    472  1.3       uch 	((cr) | (((val) << TX39_MEMCONFIG4_RFSHVAL0_SHIFT) &		\
    473  1.1       uch 	(TX39_MEMCONFIG4_RFSHVAL0_MASK << TX39_MEMCONFIG4_RFSHVAL0_SHIFT)))
    474  1.1       uch 
    475  1.1       uch /*
    476  1.1       uch  *	Memory Configuration 5 Register
    477  1.1       uch  */
    478  1.1       uch /* Address remap region 2 */
    479  1.1       uch #define TX39_MEMCONFIG5_STARTVAL2_SHIFT	9
    480  1.1       uch #define TX39_MEMCONFIG5_STARTVAL2_MASK	0x007fffff
    481  1.3       uch #define TX39_MEMCONFIG5_STARTVAL2(cr)					\
    482  1.3       uch 	(((cr) >> TX39_MEMCONFIG5_STARTVAL2_SHIFT) &			\
    483  1.1       uch 	TX39_MEMCONFIG5_STARTVAL2_MASK)
    484  1.3       uch #define TX39_MEMCONFIG5_STARTVAL2_SET(cr, val)				\
    485  1.3       uch 	((cr) | (((val) << TX39_MEMCONFIG5_STARTVAL2_SHIFT) &		\
    486  1.1       uch 	(TX39_MEMCONFIG5_STARTVAL2_MASK << TX39_MEMCONFIG5_STARTVAL2_SHIFT)))
    487  1.1       uch 
    488  1.1       uch #define TX39_MEMCONFIG5_MASK2_SHIFT	0
    489  1.1       uch #define TX39_MEMCONFIG5_MASK2_MASK	0xf
    490  1.3       uch #define TX39_MEMCONFIG5_MASK2(cr)					\
    491  1.3       uch 	(((cr) >> TX39_MEMCONFIG5_MASK2_SHIFT) &			\
    492  1.1       uch 	TX39_MEMCONFIG5_MASK2_MASK)
    493  1.3       uch #define TX39_MEMCONFIG5_MASK2_SET(cr, val)				\
    494  1.3       uch 	((cr) | (((val) << TX39_MEMCONFIG5_MASK2_SHIFT) &		\
    495  1.1       uch 	(TX39_MEMCONFIG5_MASK2_MASK << TX39_MEMCONFIG5_MASK2_SHIFT)))
    496  1.1       uch 
    497  1.1       uch /*
    498  1.1       uch  *	Memory Configuration 6 Register
    499  1.1       uch  */
    500  1.1       uch /* Address remap region 1 */
    501  1.1       uch #define TX39_MEMCONFIG6_STARTVAL1_SHIFT	9
    502  1.1       uch #define TX39_MEMCONFIG6_STARTVAL1_MASK	0x007fffff
    503  1.3       uch #define TX39_MEMCONFIG6_STARTVAL1(cr)					\
    504  1.3       uch 	(((cr) >> TX39_MEMCONFIG6_STARTVAL1_SHIFT) &			\
    505  1.1       uch 	TX39_MEMCONFIG6_STARTVAL1_MASK)
    506  1.3       uch #define TX39_MEMCONFIG6_STARTVAL1_SET(cr, val)				\
    507  1.3       uch 	((cr) | (((val) << TX39_MEMCONFIG6_STARTVAL1_SHIFT) &		\
    508  1.1       uch 	(TX39_MEMCONFIG6_STARTVAL1_MASK << TX39_MEMCONFIG6_STARTVAL1_SHIFT)))
    509  1.1       uch 
    510  1.1       uch #define TX39_MEMCONFIG6_MASK1_SHIFT	0
    511  1.1       uch #define TX39_MEMCONFIG6_MASK1_MASK	0xf
    512  1.3       uch #define TX39_MEMCONFIG6_MASK1(cr)					\
    513  1.3       uch 	(((cr) >> TX39_MEMCONFIG6_MASK1_SHIFT) &			\
    514  1.1       uch 	TX39_MEMCONFIG6_MASK1_MASK)
    515  1.3       uch #define TX39_MEMCONFIG6_MASK1_SET(cr, val)				\
    516  1.3       uch 	((cr) | (((val) << TX39_MEMCONFIG6_MASK1_SHIFT) &		\
    517  1.1       uch 	(TX39_MEMCONFIG6_MASK1_MASK << TX39_MEMCONFIG6_MASK1_SHIFT)))
    518  1.1       uch 
    519  1.1       uch /*
    520  1.1       uch  *	Memory Configuration 7 Register
    521  1.1       uch  */
    522  1.1       uch /* Address remap region 2 */
    523  1.1       uch #define TX39_MEMCONFIG7_RMAPADD2_SHIFT	9
    524  1.1       uch #define TX39_MEMCONFIG7_RMAPADD2_MASK	0x007fffff
    525  1.3       uch #define TX39_MEMCONFIG7_RMAPADD2(cr)					\
    526  1.3       uch 	(((cr) >> TX39_MEMCONFIG7_RMAPADD2_SHIFT) &			\
    527  1.1       uch 	TX39_MEMCONFIG7_RMAPADD2_MASK)
    528  1.3       uch #define TX39_MEMCONFIG7_RMAPADD2_SET(cr, val)				\
    529  1.3       uch 	((cr) | (((val) << TX39_MEMCONFIG7_RMAPADD2_SHIFT) &		\
    530  1.1       uch 	(TX39_MEMCONFIG7_RMAPADD2_MASK << TX39_MEMCONFIG7_RMAPADD2_SHIFT)))
    531  1.1       uch 
    532  1.1       uch /*
    533  1.1       uch  *	Memory Configuration 8 Register
    534  1.1       uch  */
    535  1.1       uch /* Address remap region 1 */
    536  1.1       uch #define TX39_MEMCONFIG8_RMAPADD1_SHIFT	9
    537  1.1       uch #define TX39_MEMCONFIG8_RMAPADD1_MASK	0x007fffff
    538  1.3       uch #define TX39_MEMCONFIG8_RMAPADD1(cr)					\
    539  1.3       uch 	(((cr) >> TX39_MEMCONFIG8_RMAPADD1_SHIFT) &			\
    540  1.1       uch 	TX39_MEMCONFIG8_RMAPADD1_MASK)
    541  1.3       uch #define TX39_MEMCONFIG8_RMAPADD1_SET(cr, val)				\
    542  1.3       uch 	((cr) | (((val) << TX39_MEMCONFIG8_RMAPADD1_SHIFT) &		\
    543  1.1       uch 	(TX39_MEMCONFIG8_RMAPADD1_MASK << TX39_MEMCONFIG8_RMAPADD1_SHIFT)))
    544