ibmstbx25.c 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. /*
  2. * arch/ppc/platforms/4xx/ibmstbx25.c
  3. *
  4. * Author: Armin Kuster <akuster@mvista.com>
  5. *
  6. * 2000-2002 (c) MontaVista, Software, Inc. This file is licensed under
  7. * the terms of the GNU General Public License version 2. This program
  8. * is licensed "as is" without any warranty of any kind, whether express
  9. * or implied.
  10. */
  11. #include <linux/init.h>
  12. #include <asm/ocp.h>
  13. #include <platforms/4xx/ibmstbx25.h>
  14. #include <asm/ppc4xx_pic.h>
  15. static struct ocp_func_iic_data ibmstbx25_iic0_def = {
  16. .fast_mode = 0, /* Use standad mode (100Khz) */
  17. };
  18. OCP_SYSFS_IIC_DATA()
  19. struct ocp_def core_ocp[] __initdata = {
  20. { .vendor = OCP_VENDOR_IBM,
  21. .function = OCP_FUNC_16550,
  22. .index = 0,
  23. .paddr = UART0_IO_BASE,
  24. .irq = UART0_INT,
  25. .pm = IBM_CPM_UART0,
  26. },
  27. { .vendor = OCP_VENDOR_IBM,
  28. .function = OCP_FUNC_16550,
  29. .index = 1,
  30. .paddr = UART1_IO_BASE,
  31. .irq = UART1_INT,
  32. .pm = IBM_CPM_UART1,
  33. },
  34. { .vendor = OCP_VENDOR_IBM,
  35. .function = OCP_FUNC_16550,
  36. .index = 2,
  37. .paddr = UART2_IO_BASE,
  38. .irq = UART2_INT,
  39. .pm = IBM_CPM_UART2,
  40. },
  41. { .vendor = OCP_VENDOR_IBM,
  42. .function = OCP_FUNC_IIC,
  43. .paddr = IIC0_BASE,
  44. .irq = IIC0_IRQ,
  45. .pm = IBM_CPM_IIC0,
  46. .additions = &ibmstbx25_iic0_def,
  47. .show = &ocp_show_iic_data
  48. },
  49. { .vendor = OCP_VENDOR_IBM,
  50. .function = OCP_FUNC_GPIO,
  51. .paddr = GPIO0_BASE,
  52. .irq = OCP_IRQ_NA,
  53. .pm = IBM_CPM_GPIO0,
  54. },
  55. { .vendor = OCP_VENDOR_INVALID
  56. }
  57. };
  58. /* Polarity and triggering settings for internal interrupt sources */
  59. struct ppc4xx_uic_settings ppc4xx_core_uic_cfg[] __initdata = {
  60. { .polarity = 0xffff8f80,
  61. .triggering = 0x00000000,
  62. .ext_irq_mask = 0x0000707f, /* IRQ7 - IRQ9, IRQ0 - IRQ6 */
  63. }
  64. };