Path: blob/master/arch/mips/pmc-sierra/msp71xx/msp_elb.c
15118 views
/*1* Sets up the proper Chip Select configuration registers. It is assumed that2* PMON sets up the ADDR and MASK registers properly.3*4* Copyright 2005-2006 PMC-Sierra, Inc.5* Author: Marc St-Jean, [email protected]6*7* This program is free software; you can redistribute it and/or modify it8* under the terms of the GNU General Public License as published by the9* Free Software Foundation; either version 2 of the License, or (at your10* option) any later version.11*12* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED13* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF14* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN15* NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,16* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT17* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF18* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON19* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT20* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF21* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.22*23* You should have received a copy of the GNU General Public License along24* with this program; if not, write to the Free Software Foundation, Inc.,25* 675 Mass Ave, Cambridge, MA 02139, USA.26*/2728#include <linux/kernel.h>29#include <linux/init.h>30#include <msp_regs.h>3132static int __init msp_elb_setup(void)33{34#if defined(CONFIG_PMC_MSP7120_GW) \35|| defined(CONFIG_PMC_MSP7120_EVAL)36/*37* Force all CNFG to be identical and equal to CS0,38* according to OPS doc39*/40*CS1_CNFG_REG = *CS2_CNFG_REG = *CS3_CNFG_REG = *CS0_CNFG_REG;41#endif42return 0;43}4445subsys_initcall(msp_elb_setup);464748