📄 smdk2500.h
字号:
/* * smdk2500.h: SMDK2500 specific defines * * Copyright (C) 2001 Erik Mouw (J.A.K.Mouw@its.tudelft.nl) * Copyright (C) 2003 Russ Dill <Russ.Dill@asu.edu> * * $Id: smdk2500.h,v 1.2 2003/11/27 03:25:52 russd Exp $ * * 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 * */#ident "$Id: smdk2500.h,v 1.2 2003/11/27 03:25:52 russd Exp $"#ifndef BLOB_ARCH_SMDK2500_H#define BLOB_ARCH_SMDK2500_H/*------------------------------------------------------ * Protection map for the SMDK2500 * * 0xFFFFFFFF +----------------------+ --------------------------------- * ~ ~ * + ASIC(2MB) + region 3 * + I-Cache : OFF + (2 MB) * + D-Cache : OFF + * 0xF0000000 +----------------------+ ------------ * ~ ~ * + EXTIO(256MB) + region 2 region 0 * + I-Cache : OFF + (2 MB) (4 GB) * + D-Cache : OFF + * 0x80000000 +----------------------+ --------------------- * + SDRAM(1MB) I/D : OFF + region 7 (1 MB) * +~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ + ----------- * + SDRAM(32MB) + region 1 * + I-Cache : ON + (32 MB) * + D-Cache : ON + * 0x00000000 +----------------------+ --------------------------------- * */#define REGION0 0x00000000 | (SZ_4GB << 1) | 1 @ All memory#define REGION1 0x00000000 | (SZ_32MB << 1) | 1 @ SDRAM#define REGION2 0x80000000 | (SZ_256MB << 1) | 1 @ EXT IO#define REGION3 0xf0000000 | (SZ_2MB << 1) | 1 @ ASIC#define REGION4 0 @ Disabled#define REGION5 0 @ Disabled#define REGION6 0 @ Disabled#define REGION7 0x01F00000 | (SZ_1MB << 1) | 1 @ Non-cacheable#define REGIONCACHE 0x02#define REGIONWB 0x00#define TERMINAL_SPEED baud_115200#define CPU_SPEED SPEED_166MHz#define BUS_SPEED SPEED_133MHz/* * CFGREG : SDRAM Configuration 0 register * note that ras, rc, rcd, and rp regs are *actual* values, not * the value + 1 */#define CFGREG_VAL (RAS(6) | RC(9) | RCD(3) | RP(3) | \ D1_128M | D0_128M | CL(3) | NO_AP | XW32)//#define REFCYC_VAL (GET_MHz(BUS_SPEED) * 15 + ((GET_MHz(BUS_SPEED) * 6) / 10))#define REFCYC_VAL (0x800)/* Flash speed in ns */#define FLASH_SPEED 90/* GPIO for the LED */#define LED_GPIO 0x00000001 /* GPIO 0 *//* the base address were blob-rest is loaded by the first stage loader */#define BLOB_ABS_BASE_ADDR (0x00200400)/* where do various parts live in RAM */#define BLOB_RAM_BASE (0x00100000)#define PARAM_RAM_BASE (0x00110000)#define KERNEL_RAM_BASE (0x00020000)#define RAMDISK_RAM_BASE (0x00400000)#define RAM_START (0x01000000)/* and where do they live in flash */#define BLOB_FLASH_BASE (0x00000000)#define SMDK2500_ERASE_BLOCK (64 * 1024)#define BLOB_FLASH_LEN (SMDK2500_ERASE_BLOCK)#define PARAM_FLASH_BASE (BLOB_FLASH_BASE + BLOB_FLASH_LEN)#define PARAM_FLASH_LEN (SMDK2500_ERASE_BLOCK)#define KERNEL_FLASH_BASE (PARAM_FLASH_BASE + PARAM_FLASH_LEN)#define KERNEL_FLASH_LEN (SMDK2500_ERASE_BLOCK * (32 - 2))#define PARAM_START PARAM_FLASH_BASE#define PARAM_LEN PARAM_FLASH_LEN/* the position of the kernel boot parameters */#define BOOT_PARAMS (0x00000100)/* the size (in kbytes) to which the compressed ramdisk expands */#define RAMDISK_SIZE (8 * 1024)#define LOAD_RAMDISK 0 /* don't load ramdisk into ram */#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -