/* * 2nd - OMAP "second stage" tt-Loader * * Copyright (C) 2008 Guillaume Bougard * Copyright (C) 2005 Luis Recuerda * * 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. * */ #include "types.h" #ifndef _CONFIG_H_ #define _CONFIG_H_ // Default Linux commandline #define KERNEL_CMDLINE "mem=64M console=ttyS0,115200 noinitrd root=/dev/mtdblock_bbs5" // Default address in SRAM & RAM #define RAM_SIZE 0x04000000 // 64M #define CFG_BASESDRAM 0x10000000 #define CFG_LOADADDR 0x20000400 #define CFG_PARAMADDR CFG_BASESDRAM+0x100 #define INITRD_LOAD_ADDR 0x00800000 #define INITRD_SIZE 0x00000000 // Address to find jtag id, to check on which target we are running #define OMAP_PRODUCTION_ID_1 0xfffe2004 #define OMAP32_ID_1 0xfffed404 // Extracted & adapted from linux sources: linux-2.6.24.3/include/asm-arm/arch-omap/io.h #define omap_readb(a) (*(volatile u8 *)(a)) #define omap_readw(a) (*(volatile u16 *)(a)) #define omap_readl(a) (*(volatile u32 *)(a)) #define omap_writeb(v,a) (*(volatile u8 *)(a) = (v)) #define omap_writew(v,a) (*(volatile u16 *)(a) = (v)) #define omap_writel(v,a) (*(volatile u32 *)(a) = (v)) #endif