mpc5200.c 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /*
  2. * arch/ppc/platforms/mpc5200.c
  3. *
  4. * OCP Definitions for the boards based on MPC5200 processor. Contains
  5. * definitions for every common peripherals. (Mostly all but PSCs)
  6. *
  7. * Maintainer : Sylvain Munaut <tnt@246tNt.com>
  8. *
  9. * Copyright 2004 Sylvain Munaut <tnt@246tNt.com>
  10. *
  11. * This file is licensed under the terms of the GNU General Public License
  12. * version 2. This program is licensed "as is" without any warranty of any
  13. * kind, whether express or implied.
  14. */
  15. #include <asm/ocp.h>
  16. #include <asm/mpc52xx.h>
  17. static struct ocp_fs_i2c_data mpc5200_i2c_def = {
  18. .flags = FS_I2C_CLOCK_5200,
  19. };
  20. /* Here is the core_ocp struct.
  21. * With all the devices common to all board. Even if port multiplexing is
  22. * not setup for them (if the user don't want them, just don't select the
  23. * config option). The potentially conflicting devices (like PSCs) goes in
  24. * board specific file.
  25. */
  26. struct ocp_def core_ocp[] = {
  27. {
  28. .vendor = OCP_VENDOR_FREESCALE,
  29. .function = OCP_FUNC_IIC,
  30. .index = 0,
  31. .paddr = MPC52xx_I2C1,
  32. .irq = OCP_IRQ_NA, /* MPC52xx_IRQ_I2C1 - Buggy */
  33. .pm = OCP_CPM_NA,
  34. .additions = &mpc5200_i2c_def,
  35. },
  36. {
  37. .vendor = OCP_VENDOR_FREESCALE,
  38. .function = OCP_FUNC_IIC,
  39. .index = 1,
  40. .paddr = MPC52xx_I2C2,
  41. .irq = OCP_IRQ_NA, /* MPC52xx_IRQ_I2C2 - Buggy */
  42. .pm = OCP_CPM_NA,
  43. .additions = &mpc5200_i2c_def,
  44. },
  45. { /* Terminating entry */
  46. .vendor = OCP_VENDOR_INVALID
  47. }
  48. };