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

📄 sa1100.h

📁 strongarm的bootloader
💻 H
字号:
/****************************************************************************//* Copyright 2000 Compaq Computer Corporation.                              *//*                                           .                              *//* Copying or modifying this code for any purpose is permitted,             *//* provided that this copyright notice is preserved in its entirety         *//* in all copies or modifications.  COMPAQ COMPUTER CORPORATION             *//* MAKES NO WARRANTIES, EXPRESSED OR IMPLIED, AS TO THE USEFULNESS          *//* OR CORRECTNESS OF THIS CODE OR ITS FITNESS FOR ANY PARTICULAR            *//* PURPOSE.                                                                 *//****************************************************************************/#define USR26_MODE	0x00#define FIQ26_MODE	0x01#define IRQ26_MODE	0x02#define SVC26_MODE	0x03#define USR_MODE	0x10#define FIQ_MODE	0x11#define IRQ_MODE	0x12#define SVC_MODE	0x13#define ABT_MODE	0x17#define UND_MODE	0x1b#define SYSTEM_MODE	0x1f#define MODE_MASK	0x1f#define F_BIT		0x40#define I_BIT		0x80#define CC_V_BIT	(1 << 28)#define CC_C_BIT	(1 << 29)#define CC_Z_BIT	(1 << 30)#define CC_N_BIT	(1 << 31)#define SA1100_UTCR0     0x00#define SA1100_UTCR1     0x04#define SA1100_UTCR2     0x08#define SA1100_UTCR3     0x0C#define SA1100_UTDR      0x14#define SA1100_UTSR0     0x1c#define SA1100_UTSR1     0x20#define SA1100_UTCR0_PE		(1 << 0)   /* parity enable */#define SA1100_UTCR0_OES	(1 << 1)   /* 1 for even parity */#define SA1100_UTCR0_2STOP	(1 << 2)   /* 1 for 2 stop bits */#define SA1100_UTCR0_8BIT	(1 << 3)   /* 1 for 8 bit data */#define SA1100_UTCR0_SCE	(1 << 4)   /* sample clock enable */#define SA1100_UTCR0_RCE	(1 << 5)   /* receive clock edge select */#define SA1100_UTCR0_TCE	(1 << 6)   /* transmit clock edge select */#define SA1100_UTCR1_BRDHIMASK  0xF#define SA1100_UTCR2_BRDLoMASK  0xFF#define SA1100_UTCR3_RXE	(1 << 0)	/* receiver enable */#define SA1100_UTCR3_TXE	(1 << 1)	/* transmit enable */#define SA1100_UTCR3_BRK	(1 << 2)	/* send a BRK */#define SA1100_UTCR3_RIE	(1 << 3)	/* receive FIFO interrupt enable */#define SA1100_UTCR3_TIE	(1 << 4)	/* transmit FIFO interrupt enable */#define SA1100_UTCR3_LBM	(1 << 5)	/* loopback mode *//* [1] 11.11.6 */#define SA1100_UTDR_PRE		(1 << 8)	/* parity error */#define SA1100_UTDR_FRE		(1 << 9)	/* framing error */#define SA1100_UTDR_ROR		(1 << 10)	/* receiver overrun *//* [1] 11.11.7 */#define SA1100_UTSR0_TFS	(1 << 0)	/* transmit FIFO service request *//* [1] 11.11.8 */#define SA1100_UTSR1_TBY	(1 << 0)	/* transmit FIFO busy */#define SA1100_UTSR1_RNE	(1 << 1)        /* receive FIFO not empty */#define SA1100_UTSR1_TNF	(1 << 2)        /* transmit FIFO not full */#define SA1100_UTSR1_PRE	(1 << 3)        /* parity error */          #define SA1100_UTSR1_FRE	(1 << 4)        /* framing error */         #define SA1100_UTSR1_ROR	(1 << 5)        /* receiver overrun */      #define SA1100_UTSR1_ERROR_MASK 0x38#define SA1100_SDLCBASE		0x80020060#define SA1100_UART1BASE	0x80010000 #define SA1100_UART3BASE	0x80050000 #define SA1100_UART3_UTCR0      (SA1100_UART3BASE + SA1100_UTCR0)#define SA1100_UART3_UTCR1      (SA1100_UART3BASE + SA1100_UTCR1)#define SA1100_UART3_UTCR2      (SA1100_UART3BASE + SA1100_UTCR2)#define SA1100_UART3_UTCR3      (SA1100_UART3BASE + SA1100_UTCR3)#define SA1100_UART3_UTDR       (SA1100_UART3BASE + SA1100_UTDR)#define SA1100_UART3_UTSR0      (SA1100_UART3BASE + SA1100_UTSR0)#define SA1100_UART3_UTSR1      (SA1100_UART3BASE + SA1100_UTSR1)/*  * DRAM Configuration values  *//* [1] 10.2 */#define SA1100_DRAM_CONFIGURATION_BASE 0xA0000000#define SA1100_MDCNFG			0x00#define SA1100_MDCAS00			0x04#define SA1100_MDCAS01			0x08#define SA1100_MDCAS02			0x0c#define SA1100_MDREFR			0x1c#define MDCNFG_BANK0_ENABLE (1 << 0)#define MDCNFG_BANK1_ENABLE (1 << 1)#define MDCNFG_DTIM0_SDRAM  (1 << 2)#define MDCNFG_DWID0_32B    (0 << 3)#define MDCNFG_DWID0_16B    (1 << 3)#define MDCNFG_DRAC0(n_)    (((n_) & 7) << 4)#define MDCNFG_TRP0(n_)     (((n_) & 0xF) << 8)#define MDCNFG_TDL0(n_)     (((n_) & 3) << 12)#define MDCNFG_TWR0(n_)     (((n_) & 3) << 14)	/* DRAM Refresh Control Register (MDREFR) [1] 10.2.2 */	#define MDREFR_TRASR(n_)    (((n_) & 0xF) << 0)	#define MDREFR_DRI(n_)    (((n_) & 0xFFF) << 4)#define MDREFR_E0PIN		(1 << 16)#define MDREFR_K0RUN		(1 << 17)#define MDREFR_K0DB2		(1 << 18)#define MDREFR_E1PIN		(1 << 20)	/* SDRAM clock enable pin 1 (banks 0-1) */#define MDREFR_K1RUN		(1 << 21)	/* SDRAM clock pin 1 run (banks 0-1) */#define MDREFR_K1DB2		(1 << 22)	/* SDRAM clock pin 1 divide-by-two (banks 0-1) */#define MDREFR_K2RUN		(1 << 25)       /* SDRAM clock enable pin 2 (banks 2-3) */       #define MDREFR_K2DB2		(1 << 26)       /* SDRAM clock pin 2 run (banks 2-3) */          #define MDREFR_EAPD		(1 << 28)       /* SDRAM clock pin 2 divide-by-two (banks 2-3) */#define MDREFR_KAPD		(1 << 29)#define MDREFR_SLFRSH		(1 << 31)	/* SDRAM self refresh */#define SA1100_ICMR_REG         0x90050004#define SA1100_PPCR_REG         0x90020014#define SA1100_PPCR_59MHZ	0#define SA1100_PPCR_73MHZ	1#define SA1100_PPCR_88MHZ	2#define SA1100_PPCR_103MHZ	3#define SA1100_PPCR_118MHZ	4#define SA1100_PPCR_132MHZ	5#define SA1100_PPCR_147MHZ	6#define SA1100_PPCR_162MHZ	7#define SA1100_PPCR_176MHZ	8#define SA1100_PPCR_191MHZ	9#define SA1100_PPCR_206MHZ	10#define SA1100_PPCR_221MHZ	11#ifdef CONFIG_BITSY/* The EGPIO is a write only control register at physical address 0x49000000 * See the hardware spec for more details. */#define BITSY_EGPIO 0x49000000#define EGPIO_BITSY_VPEN        (1 << 0)    /* enables erasing and programming flash.  active high. */#define EGPIO_BITSY_CARD_RESET  (1 << 1)    /* reset the attached pcmcia/compactflash card.  active high. */#define EGPIO_BITSY_OPT_RESET   (1 << 2)    /* reset the attached option pack.  active high. */#define EGPIO_BITSY_CODEC_nRESET (1 << 3)   /* reset the onboard UDA1341.  active low. */#define EGPIO_BITSY_OPT_NVRAM_ON (1 << 4)   /* apply power to optionpack nvram, active high. */#define EGPIO_BITSY_OPT_ON       (1 << 5)   /* full power to option pack.  active high. */#define EGPIO_BITSY_LCD_ON       (1 << 6)   /* enable 3.3V to LCD.  active high. */#define EGPIO_BITSY_RS232_ON     (1 << 7)   /* UART3 transceiver force on.  Active high. */#define EGPIO_BITSY_LCD_PCI      (1 << 8)   /* LCD control IC enable.  active high. */#define EGPIO_BITSY_IR_ON        (1 << 9)   /* apply power to IR module.  active high. */#define EGPIO_BITSY_AUD_AMP_ON   (1 << 10)  /* apply power to audio power amp.  active high. */#define EGPIO_BITSY_AUD_PWR_ON   (1 << 11)  /* apply poewr to reset of audio circuit.  active high. */#define EGPIO_BITSY_QMUTE        (1 << 12)  /* mute control for onboard UDA1341.  active high. */#define EGPIO_BITSY_IR_FSEL      (1 << 13)  /* IR speed select: 1->fast, 0->slow */#define EGPIO_BITSY_LCD_5V_ON    (1 << 14)  /* enable 5V to LCD. active high. */#define EGPIO_BITSY_LVDD_ON      (1 << 15)  /* enable 9V and -6.5V to LCD. */#endif

⌨️ 快捷键说明

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