Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* |
Matt Porter | 3e9e7c1 | 2005-11-07 00:58:15 -0800 | [diff] [blame] | 2 | * Walnut board definitions |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3 | * |
Matt Porter | 3e9e7c1 | 2005-11-07 00:58:15 -0800 | [diff] [blame] | 4 | * Copyright (c) 2005 DENX Software Engineering |
| 5 | * Stefan Roese <sr@denx.de> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 6 | * |
Matt Porter | 3e9e7c1 | 2005-11-07 00:58:15 -0800 | [diff] [blame] | 7 | * Based on original work by |
| 8 | * Copyright (c) 1999 Grant Erickson <grant@lcse.umn.edu> |
| 9 | * Frank Rowand <frank_rowand@mvista.com> |
| 10 | * Debbie Chu <debbie_chu@mvista.com> |
| 11 | * 2000 (c) MontaVista, Software, Inc. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 12 | * |
Matt Porter | 3e9e7c1 | 2005-11-07 00:58:15 -0800 | [diff] [blame] | 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 | * |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 18 | */ |
| 19 | |
| 20 | #ifdef __KERNEL__ |
| 21 | #ifndef __ASM_WALNUT_H__ |
| 22 | #define __ASM_WALNUT_H__ |
| 23 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 24 | #include <platforms/4xx/ibm405gp.h> |
Matt Porter | 3e9e7c1 | 2005-11-07 00:58:15 -0800 | [diff] [blame] | 25 | #include <asm/ppcboot.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 26 | |
| 27 | /* Memory map for the IBM "Walnut" 405GP evaluation board. |
| 28 | * Generic 4xx plus RTC. |
| 29 | */ |
| 30 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 31 | #define WALNUT_RTC_PADDR ((uint)0xf0000000) |
| 32 | #define WALNUT_RTC_VADDR WALNUT_RTC_PADDR |
| 33 | #define WALNUT_RTC_SIZE ((uint)8*1024) |
| 34 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 35 | #define BASE_BAUD 691200 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 36 | |
| 37 | #define WALNUT_PS2_BASE 0xF0100000 |
Matt Porter | 3e9e7c1 | 2005-11-07 00:58:15 -0800 | [diff] [blame] | 38 | |
| 39 | /* Flash */ |
| 40 | #define PPC40x_FPGA_BASE 0xF0300000 |
| 41 | #define PPC40x_FPGA_REG_OFFS 5 /* offset to flash map reg */ |
| 42 | #define PPC40x_FLASH_ONBD_N(x) (x & 0x02) |
| 43 | #define PPC40x_FLASH_SRAM_SEL(x) (x & 0x01) |
| 44 | #define PPC40x_FLASH_LOW 0xFFF00000 |
| 45 | #define PPC40x_FLASH_HIGH 0xFFF80000 |
| 46 | #define PPC40x_FLASH_SIZE 0x80000 |
| 47 | #define WALNUT_FPGA_BASE PPC40x_FPGA_BASE |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 48 | |
| 49 | #define PPC4xx_MACHINE_NAME "IBM Walnut" |
| 50 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 51 | #endif /* __ASM_WALNUT_H__ */ |
| 52 | #endif /* __KERNEL__ */ |