2
0

imx.h 674 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * i.MX31 emulation
  3. *
  4. * Copyright (C) 2012 Peter Chubb
  5. * NICTA
  6. *
  7. * This code is released under the GPL, version 2.0 or later
  8. * See the file `../COPYING' for details.
  9. */
  10. #ifndef IMX_H
  11. #define IMX_H
  12. void imx_serial_create(int uart, const hwaddr addr, qemu_irq irq);
  13. typedef enum {
  14. NOCLK,
  15. MCU,
  16. HSP,
  17. IPG,
  18. CLK_32k
  19. } IMXClk;
  20. uint32_t imx_clock_frequency(DeviceState *s, IMXClk clock);
  21. void imx_timerp_create(const hwaddr addr,
  22. qemu_irq irq,
  23. DeviceState *ccm);
  24. void imx_timerg_create(const hwaddr addr,
  25. qemu_irq irq,
  26. DeviceState *ccm);
  27. #endif /* IMX_H */