📄 pxa_idp.h
字号:
/* * pxa_idp.h: Accelent PXA-IDP specific defines * * Copyright (C) 2001 Erik Mouw (J.A.K.Mouw@its.tudelft.nl) * Copyright (C) 2002 Holger Schurig <h.schurig@mn-logistik.de> * Copyright (c) 2002 Jeff Sutherland <jeffs@accelent.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * */#ifndef BLOB_ARCH_PXA_IDP_H#define BLOB_ARCH_PXA_IDP_H/* speed definitions are more complex on Xscale- need core, internal bus, * and memory numbers. Not all combinations are valid. */#undef CPU_SPEED_400/* boot CPU speed */#ifdef CPU_SPEED_100# define CPU_SPEED (0x05)#else# define CPU_SPEED (0x0a)#endif/* serial port */#define USE_SERIAL1#define TERMINAL_SPEED baud_115200/* GPIO for the LED */#define LED_GPIO (0x00000002) /* GPIO 1 *//* the base address were BLOB is loaded by the first stage loader */#define BLOB_ABS_BASE_ADDR (0xa0200400)/* where do various parts live in RAM */#define BLOB_RAM_BASE (0xa0100000)#define KERNEL_RAM_BASE (0xa0008000)#define PARAM_RAM_BASE (0xa0110000)#define RAMDISK_RAM_BASE (0xa0400000)/* and where do they live in flash */#define BLOB_FLASH_BASE (0x00000000)#define BLOB_FLASH_LEN (256 * 1024)#define PARAM_FLASH_BASE (BLOB_FLASH_BASE + BLOB_FLASH_LEN)#define PARAM_FLASH_LEN (256 * 1024)#define KERNEL_FLASH_BASE (PARAM_FLASH_BASE + PARAM_FLASH_LEN)#define KERNEL_FLASH_LEN (1024 * 1024)#define LOAD_RAMDISK 1 /* load ramdisk into ram */#define RAMDISK_FLASH_BASE (KERNEL_FLASH_BASE + KERNEL_FLASH_LEN)#define RAMDISK_FLASH_LEN (4 * 1024 * 1024)/* the position of the kernel boot parameters */#define BOOT_PARAMS (0xa0000100)/* the size (in kbytes) to which the compressed ramdisk expands */#define RAMDISK_SIZE (8 * 1024)/* #ifdef BLOB_NEED_MEMCONFIG */#if 1/* this is full tilt boogie (400MHz cpu, 100Mhz mem, 100MHz clk)#define MDCNFG_VALUE 0x0A000AC9#define MDREFR_VALUE 0x0085C017#define MSC0_VALUE 0x29DCA4D2#define MSC1_VALUE 0x439C493C#define MSC2_VALUE 0x7FD449D1#define MECR_VALUE 0x00000003*//* I took these from the Lubbock setup, they should probably be changed * for actual IDP values, but these are there for now :-) */#define PERIF_BASE_PHYSICAL 0x40000000#define MEMC_BASE_PHYSICAL 0x48000000#define SDRAM_BASE_PHYSICAL 0xA0000000#define OST_OFFSET 0x00A00000#define OSCR_OFFSET 0x10#define OST_BASE_PHYSICAL (PERIF_BASE_PHYSICAL + OST_OFFSET)#define OSCR_BASE_PHYSICAL (OST_BASE_PHYSICAL + OSCR_OFFSET)#define MSC0_VAL 0x23F223F2#define MSC1_VAL 0x3FF1A441#define MSC2_VAL 0x7FF17FF1#define MECR_VAL 0x00000000#define MCMEM0_VAL 0x00010504#define MCMEM1_VAL 0x00010504#define MCATT0_VAL 0x00010504#define MCATT1_VAL 0x00010504#define MCIO0_VAL 0x00004715#define MCIO1_VAL 0x00004715#define MDREFR_VAL 0x00018018#define MDCNFG_VAL 0x00001AC9#define MDMRS_VAL 0x00000000/*#ifndef __ASSEMBLY__memregs->sxlcr = 0x00000000memregs->sxcnfg = 0x00000000memregs->flycnfg = 0x01FE01FEmemregs->sxmrs = 0x00000000memregs->mcmem0 = 0x00014405memregs->mcmem1 = 0x00014405memregs->mcatt0 = 0x00014405memregs->mcatt1 = 0x00014405memregs->mcio0 = 0x00014405memregs->mcio1 = 0x00014405memregs->mdmrs = 0x00320032memregs->boot_def = 0x00000008#endif*/#else// Do a low speed version at some point...#endif/* #endif */// the control-registers in the FPGA#define CONTROL_REG __REG(0x42000000)/* Debugging macros used in accelent code */#define ACCELENT_DEBUG 1#ifdef ACCELENT_DEBUG# define _DBGU32( x ) SerialOutputString( #x"=0x" ); \ SerialOutputHex( (u32)x ); \ serial_write( '\n' );#else# define _DBGU32( x )#endif#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -