walnut.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /*
  2. * Walnut board definitions
  3. *
  4. * Copyright (c) 2005 DENX Software Engineering
  5. * Stefan Roese <sr@denx.de>
  6. *
  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.
  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. #ifdef __KERNEL__
  20. #ifndef __ASM_WALNUT_H__
  21. #define __ASM_WALNUT_H__
  22. #include <platforms/4xx/ibm405gp.h>
  23. #include <asm/ppcboot.h>
  24. /* Memory map for the IBM "Walnut" 405GP evaluation board.
  25. * Generic 4xx plus RTC.
  26. */
  27. #define WALNUT_RTC_PADDR ((uint)0xf0000000)
  28. #define WALNUT_RTC_VADDR WALNUT_RTC_PADDR
  29. #define WALNUT_RTC_SIZE ((uint)8*1024)
  30. #define BASE_BAUD 691200
  31. #define WALNUT_PS2_BASE 0xF0100000
  32. /* Flash */
  33. #define PPC40x_FPGA_BASE 0xF0300000
  34. #define PPC40x_FPGA_REG_OFFS 5 /* offset to flash map reg */
  35. #define PPC40x_FLASH_ONBD_N(x) (x & 0x02)
  36. #define PPC40x_FLASH_SRAM_SEL(x) (x & 0x01)
  37. #define PPC40x_FLASH_LOW 0xFFF00000
  38. #define PPC40x_FLASH_HIGH 0xFFF80000
  39. #define PPC40x_FLASH_SIZE 0x80000
  40. #define WALNUT_FPGA_BASE PPC40x_FPGA_BASE
  41. #define PPC4xx_MACHINE_NAME "IBM Walnut"
  42. #endif /* __ASM_WALNUT_H__ */
  43. #endif /* __KERNEL__ */