luan.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. /*
  2. * Luan board definitions
  3. *
  4. * Matt Porter <mporter@kernel.crashing.org>
  5. *
  6. * Copyright 2004-2005 MontaVista Software Inc.
  7. *
  8. * This program is free software; you can redistribute it and/or modify it
  9. * under the terms of the GNU General Public License as published by the
  10. * Free Software Foundation; either version 2 of the License, or (at your
  11. * option) any later version.
  12. *
  13. */
  14. #ifdef __KERNEL__
  15. #ifndef __ASM_LUAN_H__
  16. #define __ASM_LUAN_H__
  17. #include <linux/config.h>
  18. #include <platforms/4xx/ibm440sp.h>
  19. /* F/W TLB mapping used in bootloader glue to reset EMAC */
  20. #define PPC44x_EMAC0_MR0 0xa0000800
  21. /* Location of MAC addresses in PIBS image */
  22. #define PIBS_FLASH_BASE 0xffe00000
  23. #define PIBS_MAC_BASE (PIBS_FLASH_BASE+0x1b0400)
  24. /* External timer clock frequency */
  25. #define LUAN_TMR_CLK 25000000
  26. /* Flash */
  27. #define LUAN_FPGA_REG_0 0x0000000148300000ULL
  28. #define LUAN_BOOT_LARGE_FLASH(x) (x & 0x40)
  29. #define LUAN_SMALL_FLASH_LOW 0x00000001ff900000ULL
  30. #define LUAN_SMALL_FLASH_HIGH 0x00000001ffe00000ULL
  31. #define LUAN_SMALL_FLASH_SIZE 0x100000
  32. #define LUAN_LARGE_FLASH_LOW 0x00000001ff800000ULL
  33. #define LUAN_LARGE_FLASH_HIGH 0x00000001ffc00000ULL
  34. #define LUAN_LARGE_FLASH_SIZE 0x400000
  35. /*
  36. * Serial port defines
  37. */
  38. #define RS_TABLE_SIZE 3
  39. /* PIBS defined UART mappings, used before early_serial_setup */
  40. #define UART0_IO_BASE 0xa0000200
  41. #define UART1_IO_BASE 0xa0000300
  42. #define UART2_IO_BASE 0xa0000600
  43. #define BASE_BAUD 11059200
  44. #define STD_UART_OP(num) \
  45. { 0, BASE_BAUD, 0, UART##num##_INT, \
  46. (ASYNC_BOOT_AUTOCONF | ASYNC_SKIP_TEST), \
  47. iomem_base: (void*)UART##num##_IO_BASE, \
  48. io_type: SERIAL_IO_MEM},
  49. #define SERIAL_PORT_DFNS \
  50. STD_UART_OP(0) \
  51. STD_UART_OP(1) \
  52. STD_UART_OP(2)
  53. /* PCI support */
  54. #define LUAN_PCIX_LOWER_IO 0x00000000
  55. #define LUAN_PCIX_UPPER_IO 0x0000ffff
  56. #define LUAN_PCIX0_LOWER_MEM 0x80000000
  57. #define LUAN_PCIX0_UPPER_MEM 0x9fffffff
  58. #define LUAN_PCIX1_LOWER_MEM 0xa0000000
  59. #define LUAN_PCIX1_UPPER_MEM 0xbfffffff
  60. #define LUAN_PCIX2_LOWER_MEM 0xc0000000
  61. #define LUAN_PCIX2_UPPER_MEM 0xdfffffff
  62. #define LUAN_PCIX_MEM_SIZE 0x20000000
  63. #define LUAN_PCIX_MEM_OFFSET 0x00000000
  64. #endif /* __ASM_LUAN_H__ */
  65. #endif /* __KERNEL__ */