1*acbca876SKumar Gala /* 2*acbca876SKumar Gala * Copyright 2007 Freescale Semiconductor. 3*acbca876SKumar Gala * 4*acbca876SKumar Gala * See file CREDITS for list of people who contributed to this 5*acbca876SKumar Gala * project. 6*acbca876SKumar Gala * 7*acbca876SKumar Gala * This program is free software; you can redistribute it and/or 8*acbca876SKumar Gala * modify it under the terms of the GNU General Public License as 9*acbca876SKumar Gala * published by the Free Software Foundation; either version 2 of 10*acbca876SKumar Gala * the License, or (at your option) any later version. 11*acbca876SKumar Gala * 12*acbca876SKumar Gala * This program is distributed in the hope that it will be useful, 13*acbca876SKumar Gala * but WITHOUT ANY WARRANTY; without even the implied warranty of 14*acbca876SKumar Gala * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15*acbca876SKumar Gala * GNU General Public License for more details. 16*acbca876SKumar Gala * 17*acbca876SKumar Gala * You should have received a copy of the GNU General Public License 18*acbca876SKumar Gala * along with this program; if not, write to the Free Software 19*acbca876SKumar Gala * Foundation, Inc., 59 Temple Place, Suite 330, Boston, 20*acbca876SKumar Gala * MA 02111-1307 USA 21*acbca876SKumar Gala */ 22*acbca876SKumar Gala 23*acbca876SKumar Gala #ifndef __BCSR_H_ 24*acbca876SKumar Gala #define __BCSR_H_ 25*acbca876SKumar Gala 26*acbca876SKumar Gala #include <common.h> 27*acbca876SKumar Gala 28*acbca876SKumar Gala /* BCSR Bit definitions 29*acbca876SKumar Gala * BCSR 0 * 30*acbca876SKumar Gala 0:3 ccb sys pll 31*acbca876SKumar Gala 4:6 cfg core pll 32*acbca876SKumar Gala 7 cfg boot seq 33*acbca876SKumar Gala 34*acbca876SKumar Gala * BCSR 1 * 35*acbca876SKumar Gala 0:2 cfg rom lock 36*acbca876SKumar Gala 3:5 cfg host agent 37*acbca876SKumar Gala 6 PCI IO 38*acbca876SKumar Gala 7 cfg RIO size 39*acbca876SKumar Gala 40*acbca876SKumar Gala * BCSR 2 * 41*acbca876SKumar Gala 0:4 QE PLL 42*acbca876SKumar Gala 5 QE clock 43*acbca876SKumar Gala 6 cfg PCI arbiter 44*acbca876SKumar Gala 45*acbca876SKumar Gala * BCSR 3 * 46*acbca876SKumar Gala 0 TSEC1 reduce 47*acbca876SKumar Gala 1 TSEC2 reduce 48*acbca876SKumar Gala 2:3 TSEC1 protocol 49*acbca876SKumar Gala 4:5 TSEC2 protocol 50*acbca876SKumar Gala 6 PHY1 slave 51*acbca876SKumar Gala 7 PHY2 slave 52*acbca876SKumar Gala 53*acbca876SKumar Gala * BCSR 4 * 54*acbca876SKumar Gala 4 clock enable 55*acbca876SKumar Gala 5 boot EPROM 56*acbca876SKumar Gala 6 GETH transactive reset 57*acbca876SKumar Gala 7 BRD write potect 58*acbca876SKumar Gala 59*acbca876SKumar Gala * BCSR 5 * 60*acbca876SKumar Gala 1:3 Leds 1-3 61*acbca876SKumar Gala 4 UPC1 enable 62*acbca876SKumar Gala 5 UPC2 enable 63*acbca876SKumar Gala 6 UPC2 pos 64*acbca876SKumar Gala 7 RS232 enable 65*acbca876SKumar Gala 66*acbca876SKumar Gala * BCSR 6 * 67*acbca876SKumar Gala 0 CFG ver 0 68*acbca876SKumar Gala 1 CFG ver 1 69*acbca876SKumar Gala 6 Register config led 70*acbca876SKumar Gala 7 Power on reset 71*acbca876SKumar Gala 72*acbca876SKumar Gala * BCSR 7 * 73*acbca876SKumar Gala 2 board host mode indication 74*acbca876SKumar Gala 5 enable TSEC1 PHY 75*acbca876SKumar Gala 6 enable TSEC2 PHY 76*acbca876SKumar Gala 77*acbca876SKumar Gala * BCSR 8 * 78*acbca876SKumar Gala 0 UCC GETH1 enable 79*acbca876SKumar Gala 1 UCC GMII enable 80*acbca876SKumar Gala 3 UCC TBI enable 81*acbca876SKumar Gala 5 UCC MII enable 82*acbca876SKumar Gala 7 Real time clock reset 83*acbca876SKumar Gala 84*acbca876SKumar Gala * BCSR 9 * 85*acbca876SKumar Gala 0 UCC2 GETH enable 86*acbca876SKumar Gala 1 UCC2 GMII enable 87*acbca876SKumar Gala 3 UCC2 TBI enable 88*acbca876SKumar Gala 5 UCC2 MII enable 89*acbca876SKumar Gala 6 Ready only - indicate flash ready after burning 90*acbca876SKumar Gala 7 Flash write protect 91*acbca876SKumar Gala */ 92*acbca876SKumar Gala 93*acbca876SKumar Gala /*BCSR Utils functions*/ 94*acbca876SKumar Gala 95*acbca876SKumar Gala void enable_8568mds_duart(void); 96*acbca876SKumar Gala void enable_8568mds_flash_write(void); 97*acbca876SKumar Gala void disable_8568mds_flash_write(void); 98*acbca876SKumar Gala void enable_8568mds_qe_mdio(void); 99*acbca876SKumar Gala 100*acbca876SKumar Gala #endif /* __BCSR_H_ */ 101