⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bcm91480a.h

📁 一个很好的嵌入式linux平台下的bootloader
💻 H
字号:
/*  *********************************************************************    *  BCM1280/BCM1480 Board Support Package    *      *  BCM91490A  Definitions  		   	File: bcm91480a.h    *    *  This file contains I/O, chip select, and GPIO assignments    *  for the BCM1255/BCM1280/BCM1455/BCM1480 evaluation board.    *      *  Author:  Mitch Lichtenberg    *      *********************************************************************      *    *  Copyright 2000,2001,2002,2003    *  Broadcom Corporation. All rights reserved.    *      *  This software is furnished under license and may be used and     *  copied only in accordance with the following terms and     *  conditions.  Subject to these conditions, you may download,     *  copy, install, use, modify and distribute modified or unmodified     *  copies of this software in source and/or binary form.  No title     *  or ownership is transferred hereby.    *      *  1) Any source code used, modified or distributed must reproduce     *     and retain this copyright notice and list of conditions     *     as they appear in the source file.    *      *  2) No right is granted to use any trade name, trademark, or     *     logo of Broadcom Corporation.  The "Broadcom Corporation"     *     name may not be used to endorse or promote products derived     *     from this software without the prior written permission of     *     Broadcom Corporation.    *      *  3) THIS SOFTWARE IS PROVIDED "AS-IS" AND ANY EXPRESS OR    *     IMPLIED WARRANTIES, INCLUDING BUT NOT LIMITED TO, ANY IMPLIED    *     WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR     *     PURPOSE, OR NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT     *     SHALL BROADCOM BE LIABLE FOR ANY DAMAGES WHATSOEVER, AND IN     *     PARTICULAR, BROADCOM SHALL NOT BE LIABLE FOR DIRECT, INDIRECT,    *     INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES     *     (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE    *     GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR    *     BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY     *     OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR     *     TORT (INCLUDING NEGLIGENCE OR OTHERWISE), EVEN IF ADVISED OF     *     THE POSSIBILITY OF SUCH DAMAGE.    ********************************************************************* *//* * I/O Address assignments for the bcm91480a board * * Summary of address map: * * Address         Size   CSel    Description * --------------- ----   ------  -------------------------------- * 0x1FC00000      4MB     CS0    Boot ROM * 0x1F800000      4MB     CS1    Alternate Boot ROM  *                         CS2    Unused * 0x100A0000      64KB    CS3    LED display * 0x100C0000      64KB    CS4    FPGA Settings *                         CS5    Unused * 0x11000000      64MB    CS6    PCMCIA #0 * 0x15000000      64MB    CS7    PCMCIA #1 * * GPIO assignments * * GPIO#    Direction   Description * -------  ---------   ------------------------------------------ * GPIO0    Output      PCMCIA_MODE0 * GPIO1    Output	PCMCIA_MODE1 * GPIO2    Output	PCMCIA_MODE2 * GPIO3    Output	PCIX_CLKSEL1 * GPIO4    Output	PCIX_CLKSEL0 * GPIO5    Input       Temperature Sensor Alert * GPIO6    N/A         PCMCIA interface * GPIO7    N/A         PCMCIA interface * GPIO8    N/A         PCMCIA interface * GPIO9    N/A         PCMCIA interface * GPIO10   N/A         PCMCIA interface * GPIO11   N/A         PCMCIA interface * GPIO12   N/A         PCMCIA interface * GPIO13   N/A         PCMCIA interface * GPIO14   N/A         PCMCIA interface * GPIO15   N/A         PCMCIA interface *  * SMBus assignments: * * Chan   Dev           Description * ----   ------        ------------------------------------------ *  0     0x50          Microchip 24LC128 SMBus EEPROM *  1     0x51          Microchip 24LC128 SMBus EEPROM *  1     0x4C          AD ADT7461AR Temperature Sensor *  1     0x68          ST Micro M41T81M Real-time clock *//*  *********************************************************************    *  Macros    ********************************************************************* */#define MB (1024*1024)#define K64 65536#define NUM64K(x) (((x)+(K64-1))/K64)/*  *********************************************************************    *  GPIO pins    ********************************************************************* */#define GPIO_PCMCIA_MODE0	0#define GPIO_PCMCIA_MODE1	1#define GPIO_PCMCIA_MODE2	2#define GPIO_PCIX_CLKSEL0	3#define GPIO_PCIX_CLKSEL1	4#define GPIO_TEMP_SENSOR	5#define M_GPIO_PCMCIA_MODE0	_SB_MAKEMASK1(GPIO_PCMCIA_MODE0)#define M_GPIO_PCMCIA_MODE1	_SB_MAKEMASK1(GPIO_PCMCIA_MODE1)#define M_GPIO_PCMCIA_MODE2	_SB_MAKEMASK1(GPIO_PCMCIA_MODE2)#define M_GPIO_PCIX_CLKSEL0	_SB_MAKEMASK1(GPIO_PCIX_CLKSEL0)#define M_GPIO_PCIX_CLKSEL1	_SB_MAKEMASK1(GPIO_PCIX_CLKSEL1)#define M_GPIO_TEMP_SENSOR	_SB_MAKEMASK1(GPIO_TEMP_SENSOR)/* Leave bidirectional pins in "input" state at boot. */#define GPIO_OUTPUT_MASK (M_GPIO_PCIX_CLKSEL0 | \                          M_GPIO_PCIX_CLKSEL1 | \                          M_GPIO_PCMCIA_MODE0 | \                          M_GPIO_PCMCIA_MODE1 | \                          M_GPIO_PCMCIA_MODE2)#define GPIO_INTERRUPT_MASK (0)/* used for resetting */#define M_GPIO_PCIX_FREQALL (M_GPIO_PCIX_CLKSEL0 | \                          M_GPIO_PCIX_CLKSEL1)/*  * Frequency Settings: *   P1 P0   Frequency *    0 0    33MHz *    0 1    66MHz *    1 0    100MHz *    1 1    133MHz */#define M_GPIO_PCIX_FREQ133 (M_GPIO_PCIX_CLKSEL0 | \                          M_GPIO_PCIX_CLKSEL1)#define M_GPIO_PCIX_FREQ100 (M_GPIO_PCIX_CLKSEL1)#define M_GPIO_PCIX_FREQ66 (M_GPIO_PCIX_CLKSEL0)#define M_GPIO_PCIX_FREQ33 (0)/*  *********************************************************************    *  Generic Bus     ********************************************************************* *//* * Boot ROM:  non-multiplexed, byte width, no parity, no ack * XXX: These are the (very slow) default parameters.   This can be sped up! */#define BOOTROM_CS		0#define BOOTROM_PHYS		0x1FC00000	/* address of boot ROM (CS0) */#define BOOTROM_SIZE		NUM64K(4*MB)	/* size of boot ROM */#define BOOTROM_TIMING0		V_IO_ALE_WIDTH(4) | \                                V_IO_ALE_TO_CS(2) | \                                V_IO_CS_WIDTH(24) | \                                V_IO_RDY_SMPLE(1)#define BOOTROM_TIMING1		V_IO_ALE_TO_WRITE(7) | \                                V_IO_WRITE_WIDTH(7) | \                                V_IO_IDLE_CYCLE(6) | \                                V_IO_CS_TO_OE(0) | \                                V_IO_OE_TO_CS(0)#define BOOTROM_CONFIG		V_IO_WIDTH_SEL(K_IO_WIDTH_SEL_1) | M_IO_NONMUX/* * Alternate Boot ROM:  non-multiplexed, byte width, no parity, no ack * XXX: These are the (very slow) default parameters.   This can be sped up! */#define ALT_BOOTROM_CS		1#define ALT_BOOTROM_PHYS	0x1F800000	/* address of alternate boot ROM (CS1) */#define ALT_BOOTROM_SIZE	NUM64K(4*MB)	/* size of alternate boot ROM */#define ALT_BOOTROM_TIMING0	V_IO_ALE_WIDTH(4) | \                                V_IO_ALE_TO_CS(2) | \                                V_IO_CS_WIDTH(24) | \                                V_IO_RDY_SMPLE(1)#define ALT_BOOTROM_TIMING1	V_IO_ALE_TO_WRITE(7) | \                                V_IO_WRITE_WIDTH(7) | \                                V_IO_IDLE_CYCLE(6) | \                                V_IO_CS_TO_OE(0) | \                                V_IO_OE_TO_CS(0)#define ALT_BOOTROM_CONFIG	V_IO_WIDTH_SEL(K_IO_WIDTH_SEL_1) | M_IO_NONMUX/* * LEDs:  non-multiplexed, byte width, no parity, no ack * */#define LEDS_CS			3#define LEDS_PHYS		0x100A0000	/* same address as SWARM */#define LEDS_SIZE		NUM64K(4)#define LEDS_TIMING0		V_IO_ALE_WIDTH(4) | \                                V_IO_ALE_TO_CS(2) | \                                V_IO_CS_WIDTH(13) | \                                V_IO_RDY_SMPLE(1)#define LEDS_TIMING1		V_IO_ALE_TO_WRITE(2) | \                                V_IO_WRITE_WIDTH(8) | \                                V_IO_IDLE_CYCLE(6) | \                                V_IO_CS_TO_OE(0) | \                                V_IO_OE_TO_CS(0)#define LEDS_CONFIG		V_IO_WIDTH_SEL(K_IO_WIDTH_SEL_1) | M_IO_NONMUX/* * FPGA settings: non-multiplexed, byte width, no parity, no ack * */#define FPGA_CS			4#define FPGA_PHYS		0x100C0000	/* same address as SWARM */#define FPGA_SIZE		NUM64K(4)#define FPGA_TIMING0		V_IO_ALE_WIDTH(4) | \                                V_IO_ALE_TO_CS(2) | \                                V_IO_CS_WIDTH(13) | \                                V_IO_RDY_SMPLE(1)#define FPGA_TIMING1		V_IO_ALE_TO_WRITE(2) | \                                V_IO_WRITE_WIDTH(8) | \                                V_IO_IDLE_CYCLE(6) | \                                V_IO_CS_TO_OE(0) | \                                V_IO_OE_TO_CS(0)#define FPGA_CONFIG		V_IO_WIDTH_SEL(K_IO_WIDTH_SEL_1) | M_IO_NONMUX/* * PCMCIA0: this information was derived from section 16 */#define PCMCIA0_CS		6#define PCMCIA0_PHYS		0x11000000#define PCMCIA0_SIZE		NUM64K(64*MB)#define PCMCIA0_TIMING0		V_IO_ALE_WIDTH(3) | \                                V_IO_ALE_TO_CS(1) | \                                V_IO_CS_WIDTH(17) | \                                V_IO_RDY_SMPLE(1)#define PCMCIA0_TIMING1		V_IO_ALE_TO_WRITE(8) | \                                V_IO_WRITE_WIDTH(8) | \                                V_IO_IDLE_CYCLE(2) | \                                V_IO_CS_TO_OE(0) | \                                V_IO_OE_TO_CS(0)#define PCMCIA0_CONFIG		V_IO_WIDTH_SEL(K_IO_WIDTH_SEL_2)/* * PCMCIA1: this information was derived from section 16 */#define PCMCIA1_CS		7#define PCMCIA1_PHYS		0x15000000#define PCMCIA1_SIZE		NUM64K(64*MB)#define PCMCIA1_TIMING0		V_IO_ALE_WIDTH(3) | \                                V_IO_ALE_TO_CS(1) | \                                V_IO_CS_WIDTH(17) | \                                V_IO_RDY_SMPLE(1)#define PCMCIA1_TIMING1		V_IO_ALE_TO_WRITE(8) | \                                V_IO_WRITE_WIDTH(8) | \                                V_IO_IDLE_CYCLE(2) | \                                V_IO_CS_TO_OE(0) | \                                V_IO_OE_TO_CS(0)#define PCMCIA1_CONFIG		V_IO_WIDTH_SEL(K_IO_WIDTH_SEL_2)/*  *********************************************************************    *  SMBus Devices    ********************************************************************* */#define TEMPSENSOR_SMBUS_CHAN	1#define TEMPSENSOR_SMBUS_DEV	0x4C#define BIGEEPROM_SMBUS_CHAN_1	1		/* This one is for CFE */#define BIGEEPROM_SMBUS_DEV_1	0x51#define BIGEEPROM_SMBUS_CHAN	0		/* This one is for customer use */#define BIGEEPROM_SMBUS_DEV	0x50#define M41T81_SMBUS_CHAN	1#define M41T81_SMBUS_DEV	0x68/* * 64-bit memory channel 0,2 -> SMBus devices 0x54, 0x55 * 64-bit memory channel 1,3 -> SMBus devices 0x56, 0x57 */#define DRAM_SMBUS_CHAN		0#define DRAM_SMBUS_DEV		0x54/*  *********************************************************************    *  Board revision numbers    ********************************************************************* *//* Maps from SYSTEM_CFG register to actual board rev #'s */#define BCM91480A_REV_1	0

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -