ppc85xx_setup.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /*
  2. * MPC85XX common board definitions
  3. *
  4. * Maintainer: Kumar Gala <galak@kernel.crashing.org>
  5. *
  6. * Copyright 2004 Freescale Semiconductor 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. #ifndef __PPC_SYSLIB_PPC85XX_SETUP_H
  15. #define __PPC_SYSLIB_PPC85XX_SETUP_H
  16. #include <linux/config.h>
  17. #include <linux/init.h>
  18. #include <asm/ppcboot.h>
  19. extern unsigned long mpc85xx_find_end_of_memory(void) __init;
  20. extern void mpc85xx_calibrate_decr(void) __init;
  21. extern void mpc85xx_early_serial_map(void) __init;
  22. extern void mpc85xx_restart(char *cmd);
  23. extern void mpc85xx_power_off(void);
  24. extern void mpc85xx_halt(void);
  25. extern void mpc85xx_setup_hose(void) __init;
  26. /* PCI config */
  27. #define PCI1_CFG_ADDR_OFFSET (0x8000)
  28. #define PCI1_CFG_DATA_OFFSET (0x8004)
  29. #define PCI2_CFG_ADDR_OFFSET (0x9000)
  30. #define PCI2_CFG_DATA_OFFSET (0x9004)
  31. /* Additional register for PCI-X configuration */
  32. #define PCIX_NEXT_CAP 0x60
  33. #define PCIX_CAP_ID 0x61
  34. #define PCIX_COMMAND 0x62
  35. #define PCIX_STATUS 0x64
  36. /* Serial Config */
  37. #ifdef CONFIG_SERIAL_MANY_PORTS
  38. #define RS_TABLE_SIZE 64
  39. #else
  40. #define RS_TABLE_SIZE 2
  41. #endif
  42. #ifndef BASE_BAUD
  43. #define BASE_BAUD 115200
  44. #endif
  45. /* Offset of CPM register space */
  46. #define CPM_MAP_ADDR (CCSRBAR + MPC85xx_CPM_OFFSET)
  47. #endif /* __PPC_SYSLIB_PPC85XX_SETUP_H */