stx_gp3.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. /*
  2. * STx GP3 board definitions
  3. *
  4. * Dan Malek (dan@embeddededge.com)
  5. * Copyright 2004 Embedded Edge, LLC
  6. *
  7. * Ported to 2.6, Matt Porter <mporter@kernel.crashing.org>
  8. * Copyright 2004-2005 MontaVista Software, Inc.
  9. *
  10. * This program is free software; you can redistribute it and/or modify it
  11. * under the terms of the GNU General Public License as published by the
  12. * Free Software Foundation; either version 2 of the License, or (at your
  13. * option) any later version.
  14. *
  15. */
  16. #ifndef __MACH_STX_GP3_H
  17. #define __MACH_STX_GP3_H
  18. #include <linux/init.h>
  19. #include <asm/ppcboot.h>
  20. #define BOARD_CCSRBAR ((uint)0xe0000000)
  21. #define CCSRBAR_SIZE ((uint)1024*1024)
  22. #define CPM_MAP_ADDR (CCSRBAR + MPC85xx_CPM_OFFSET)
  23. #define BCSR_ADDR ((uint)0xfc000000)
  24. #define BCSR_SIZE ((uint)(16 * 1024))
  25. #define BCSR_TSEC1_RESET 0x00000080
  26. #define BCSR_TSEC2_RESET 0x00000040
  27. #define BCSR_LED1 0x00000008
  28. #define BCSR_LED2 0x00000004
  29. #define BCSR_LED3 0x00000002
  30. #define BCSR_LED4 0x00000001
  31. extern void mpc85xx_setup_hose(void) __init;
  32. extern void mpc85xx_restart(char *cmd);
  33. extern void mpc85xx_power_off(void);
  34. extern void mpc85xx_halt(void);
  35. extern void mpc85xx_init_IRQ(void) __init;
  36. extern unsigned long mpc85xx_find_end_of_memory(void) __init;
  37. extern void mpc85xx_calibrate_decr(void) __init;
  38. #define PCI_CFG_ADDR_OFFSET (0x8000)
  39. #define PCI_CFG_DATA_OFFSET (0x8004)
  40. /* PCI interrupt controller */
  41. #define PIRQA MPC85xx_IRQ_EXT1
  42. #define PIRQB MPC85xx_IRQ_EXT2
  43. #define PIRQC MPC85xx_IRQ_EXT3
  44. #define PIRQD MPC85xx_IRQ_EXT4
  45. #define PCI_MIN_IDSEL 16
  46. #define PCI_MAX_IDSEL 19
  47. #define PCI_IRQ_SLOT 4
  48. #define MPC85XX_PCI1_LOWER_IO 0x00000000
  49. #define MPC85XX_PCI1_UPPER_IO 0x00ffffff
  50. #define MPC85XX_PCI1_LOWER_MEM 0x80000000
  51. #define MPC85XX_PCI1_UPPER_MEM 0x9fffffff
  52. #define MPC85XX_PCI1_IO_BASE 0xe2000000
  53. #define MPC85XX_PCI1_MEM_OFFSET 0x00000000
  54. #define MPC85XX_PCI1_IO_SIZE 0x01000000
  55. #endif /* __MACH_STX_GP3_H */