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

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

Publication tt-loader v0.1

File size: 1.5 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 address in SRAM
29#define CFG_LOADADDR                    0x20000400
30
31// Address to find jtag id, to check on which target we are running
32#define OMAP_PRODUCTION_ID_1    0xfffe2004
33#define OMAP32_ID_1                             0xfffed404
34
35// Extracted & adapted from linux sources: linux-2.6.24.3/include/asm-arm/arch-omap/io.h
36#define omap_readb(a)           (*(volatile u8    *)(a))
37#define omap_readw(a)           (*(volatile u16   *)(a))
38#define omap_readl(a)           (*(volatile u32   *)(a))
39
40#define omap_writeb(v,a)        (*(volatile u8    *)(a) = (v))
41#define omap_writew(v,a)        (*(volatile u16   *)(a) = (v))
42#define omap_writel(v,a)        (*(volatile u32   *)(a) = (v))
43
44#endif
Note: See TracBrowser for help on using the repository browser.