Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/shaggy...
[sfrench/cifs-2.6.git] / arch / ppc / platforms / 4xx / sycamore.h
1 /*
2  * arch/ppc/platforms/4xx/sycamore.h
3  *
4  * Sycamore board definitions
5  *
6  * Copyright (c) 2005 DENX Software Engineering
7  * Stefan Roese <sr@denx.de>
8  *
9  * Based on original work by
10  *      Armin Kuster <akuster@mvista.com>
11  *      2000 (c) MontaVista, Software, Inc.
12  *
13  * This program is free software; you can redistribute  it and/or modify it
14  * under  the terms of  the GNU General  Public License as published by the
15  * Free Software Foundation;  either version 2 of the  License, or (at your
16  * option) any later version.
17  *
18  */
19
20 #ifdef __KERNEL__
21 #ifndef __ASM_SYCAMORE_H__
22 #define __ASM_SYCAMORE_H__
23
24 #include <linux/config.h>
25 #include <platforms/4xx/ibm405gpr.h>
26 #include <asm/ppcboot.h>
27
28 /* Memory map for the IBM "Sycamore" 405GPr evaluation board.
29  * Generic 4xx plus RTC.
30  */
31
32 #define SYCAMORE_RTC_PADDR      ((uint)0xf0000000)
33 #define SYCAMORE_RTC_VADDR      SYCAMORE_RTC_PADDR
34 #define SYCAMORE_RTC_SIZE       ((uint)8*1024)
35
36 #define BASE_BAUD               691200
37
38 #define SYCAMORE_PS2_BASE       0xF0100000
39
40 /* Flash */
41 #define PPC40x_FPGA_BASE        0xF0300000
42 #define PPC40x_FPGA_REG_OFFS    5       /* offset to flash map reg */
43 #define PPC40x_FLASH_ONBD_N(x)  (x & 0x02)
44 #define PPC40x_FLASH_SRAM_SEL(x) (x & 0x01)
45 #define PPC40x_FLASH_LOW        0xFFF00000
46 #define PPC40x_FLASH_HIGH       0xFFF80000
47 #define PPC40x_FLASH_SIZE       0x80000
48
49 #define PPC4xx_MACHINE_NAME     "IBM Sycamore"
50
51 #endif /* __ASM_SYCAMORE_H__ */
52 #endif /* __KERNEL__ */