ibm440gp.h 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. /*
  2. * PPC440GP definitions
  3. *
  4. * Roland Dreier <roland@digitalvampire.org>
  5. *
  6. * Copyright 2002 Roland Dreier
  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. * This file contains code that was originally in the files ibm44x.h
  14. * and ebony.h, which were written by Matt Porter of MontaVista Software Inc.
  15. */
  16. #ifdef __KERNEL__
  17. #ifndef __PPC_PLATFORMS_IBM440GP_H
  18. #define __PPC_PLATFORMS_IBM440GP_H
  19. /* UART */
  20. #define PPC440GP_UART0_ADDR 0x0000000140000200ULL
  21. #define PPC440GP_UART1_ADDR 0x0000000140000300ULL
  22. #define UART0_INT 0
  23. #define UART1_INT 1
  24. /* Clock and Power Management */
  25. #define IBM_CPM_IIC0 0x80000000 /* IIC interface */
  26. #define IBM_CPM_IIC1 0x40000000 /* IIC interface */
  27. #define IBM_CPM_PCI 0x20000000 /* PCI bridge */
  28. #define IBM_CPM_CPU 0x02000000 /* processor core */
  29. #define IBM_CPM_DMA 0x01000000 /* DMA controller */
  30. #define IBM_CPM_BGO 0x00800000 /* PLB to OPB bus arbiter */
  31. #define IBM_CPM_BGI 0x00400000 /* OPB to PLB bridge */
  32. #define IBM_CPM_EBC 0x00200000 /* External Bux Controller */
  33. #define IBM_CPM_EBM 0x00100000 /* Ext Bus Master Interface */
  34. #define IBM_CPM_DMC 0x00080000 /* SDRAM peripheral controller */
  35. #define IBM_CPM_PLB 0x00040000 /* PLB bus arbiter */
  36. #define IBM_CPM_SRAM 0x00020000 /* SRAM memory controller */
  37. #define IBM_CPM_PPM 0x00002000 /* PLB Performance Monitor */
  38. #define IBM_CPM_UIC1 0x00001000 /* Universal Interrupt Controller */
  39. #define IBM_CPM_GPIO0 0x00000800 /* General Purpose IO (??) */
  40. #define IBM_CPM_GPT 0x00000400 /* General Purpose Timers */
  41. #define IBM_CPM_UART0 0x00000200 /* serial port 0 */
  42. #define IBM_CPM_UART1 0x00000100 /* serial port 1 */
  43. #define IBM_CPM_UIC0 0x00000080 /* Universal Interrupt Controller */
  44. #define IBM_CPM_TMRCLK 0x00000040 /* CPU timers */
  45. #define DFLT_IBM4xx_PM ~(IBM_CPM_UIC | IBM_CPM_UIC1 | IBM_CPM_CPU \
  46. | IBM_CPM_EBC | IBM_CPM_SRAM | IBM_CPM_BGO \
  47. | IBM_CPM_EBM | IBM_CPM_PLB | IBM_CPM_OPB \
  48. | IBM_CPM_TMRCLK | IBM_CPM_DMA | IBM_CPM_PCI)
  49. /*
  50. * Serial port defines
  51. */
  52. #define RS_TABLE_SIZE 2
  53. #include <asm/ibm44x.h>
  54. #include <syslib/ibm440gp_common.h>
  55. #endif /* __PPC_PLATFORMS_IBM440GP_H */
  56. #endif /* __KERNEL__ */