source: tt-loader/2nd/config.h @ 15

Last change on this file since 15 was 12, checked in by guillaume, 14 years ago

Publication tt-loader v0.2

File size: 1.8 KB
Line 
1/*
2 * 2nd - OMAP "second stage" tt-Loader
3 *
4 * Copyright (C) 2008 Guillaume Bougard <gbougard@pkg.fr>
5 * Copyright (C) 2005 Luis Recuerda <lrec@helios.homeip.net>
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation; either version 2
10 * of the License, or (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
20 *
21 */
22
23#include "types.h"
24
25#ifndef _CONFIG_H_
26#define _CONFIG_H_
27
28// Default Linux commandline
29#define KERNEL_CMDLINE "mem=64M console=ttyS0,115200 noinitrd root=/dev/mtdblock_bbs5"
30
31// Default address in SRAM & RAM
32#define RAM_SIZE                                0x04000000      // 64M
33#define CFG_BASESDRAM                   0x10000000
34#define CFG_LOADADDR                    0x20000400
35#define CFG_PARAMADDR                   CFG_BASESDRAM+0x100
36#define INITRD_LOAD_ADDR                0x00800000
37#define INITRD_SIZE                             0x00000000
38
39// Address to find jtag id, to check on which target we are running
40#define OMAP_PRODUCTION_ID_1    0xfffe2004
41#define OMAP32_ID_1                             0xfffed404
42
43// Extracted & adapted from linux sources: linux-2.6.24.3/include/asm-arm/arch-omap/io.h
44#define omap_readb(a)           (*(volatile u8    *)(a))
45#define omap_readw(a)           (*(volatile u16   *)(a))
46#define omap_readl(a)           (*(volatile u32   *)(a))
47
48#define omap_writeb(v,a)        (*(volatile u8    *)(a) = (v))
49#define omap_writew(v,a)        (*(volatile u16   *)(a) = (v))
50#define omap_writel(v,a)        (*(volatile u32   *)(a) = (v))
51
52#endif
Note: See TracBrowser for help on using the repository browser.