cedar.h 1.99 KB
Newer Older
1
/*
2
 * arch/ppc/platforms/4xx/cedar.h
3
 *
4 5
 * Macros, definitions, and data structures specific to the IBM PowerPC
 * Cedar eval board.
6
 *
7
 * Author: Armin Kuster <akuster@mvista.com>
8
 *
9
 * 2000 (c) MontaVista, Software, Inc.  This file is licensed under
10
 * the terms of the GNU General Public License version 2.  This program
11 12
 * is licensed "as is" without any warranty of any kind, whether express
 * or implied.
13 14 15
 */

#ifdef __KERNEL__
16 17
#ifndef __ASM_CEDAR_H__
#define __ASM_CEDAR_H__
18
#include <platforms/4xx/ibmnp405l.h>
19 20 21 22

#ifndef __ASSEMBLY__
/*
 * Data structure defining board information maintained by the boot
23
 * ROM on IBM's "Cedar" evaluation board. An effort has been made to
24 25 26 27 28 29 30 31
 * keep the field names consistent with the 8xx 'bd_t' board info
 * structures.
 */

typedef struct board_info {
	unsigned char	 bi_s_version[4];	/* Version of this structure */
	unsigned char	 bi_r_version[30];	/* Version of the IBM ROM */
	unsigned int	 bi_memsize;		/* DRAM installed, in bytes */
32
	unsigned char	 bi_enetaddr[2][6];	/* Local Ethernet MAC address */
33 34 35 36 37 38 39 40 41 42
	unsigned char	 bi_pci_mac[6];
	unsigned int	 bi_intfreq;		/* Processor speed, in Hz */
	unsigned int	 bi_busfreq;		/* PLB Bus speed, in Hz */
	unsigned int	 bi_pci_busfreq;	/* PCI speed in Hz */
} bd_t;

/* Some 4xx parts use a different timebase frequency from the internal clock.
*/
#define bi_tbfreq bi_intfreq

43
/* Memory map for the IBM "Cedar" NP405 evaluation board.
44 45
 */

46 47 48 49
extern  void *cedar_rtc_base;
#define CEDAR_RTC_PADDR		((uint)0xf0000000)
#define CEDAR_RTC_VADDR		CEDAR_RTC_PADDR
#define CEDAR_RTC_SIZE		((uint)8*1024)
50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65


/* Early initialization address mapping for block_io.
 * Standard 405GP map.
 */
#define PPC4xx_ONB_IO_PADDR	((uint)0xef600000)
#define PPC4xx_ONB_IO_VADDR	PPC4xx_ONB_IO_PADDR
#define PPC4xx_ONB_IO_SIZE	((uint)4*1024)


#ifdef CONFIG_PPC405GP_INTERNAL_CLOCK
#define BASE_BAUD		201600
#else
#define BASE_BAUD		691200
#endif

66
#define PPC4xx_MACHINE_NAME "IBM NP405L Cedar"
67

68
 
69 70 71


#endif /* !__ASSEMBLY__ */
72
#endif /* __ASM_CEDAR_H__ */
73
#endif /* __KERNEL__ */