r8a7740.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /*
  2. * Copyright (C) 2011 Renesas Solutions Corp.
  3. * Copyright (C) 2011 Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
  4. *
  5. * This program is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published by
  7. * the Free Software Foundation; version 2 of the License.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. */
  14. #ifndef __ASM_R8A7740_H__
  15. #define __ASM_R8A7740_H__
  16. /*
  17. * MD_CKx pin
  18. */
  19. #define MD_CK2 (1 << 2)
  20. #define MD_CK1 (1 << 1)
  21. #define MD_CK0 (1 << 0)
  22. /* DMA slave IDs */
  23. enum {
  24. SHDMA_SLAVE_INVALID,
  25. SHDMA_SLAVE_SDHI0_RX,
  26. SHDMA_SLAVE_SDHI0_TX,
  27. SHDMA_SLAVE_SDHI1_RX,
  28. SHDMA_SLAVE_SDHI1_TX,
  29. SHDMA_SLAVE_SDHI2_RX,
  30. SHDMA_SLAVE_SDHI2_TX,
  31. SHDMA_SLAVE_FSIA_RX,
  32. SHDMA_SLAVE_FSIA_TX,
  33. SHDMA_SLAVE_FSIB_TX,
  34. SHDMA_SLAVE_USBHS_TX,
  35. SHDMA_SLAVE_USBHS_RX,
  36. SHDMA_SLAVE_MMCIF_TX,
  37. SHDMA_SLAVE_MMCIF_RX,
  38. };
  39. extern void r8a7740_meram_workaround(void);
  40. extern void r8a7740_init_irq_of(void);
  41. extern void r8a7740_map_io(void);
  42. extern void r8a7740_add_early_devices(void);
  43. extern void r8a7740_add_standard_devices(void);
  44. extern void r8a7740_clock_init(u8 md_ck);
  45. extern void r8a7740_pinmux_init(void);
  46. extern void r8a7740_pm_init(void);
  47. #if defined(CONFIG_PM) && !defined(CONFIG_ARCH_MULTIPLATFORM)
  48. extern void __init r8a7740_init_pm_domains(void);
  49. #else
  50. static inline void r8a7740_init_pm_domains(void) {}
  51. #endif /* CONFIG_PM && !CONFIG_ARCH_MULTIPLATFORM */
  52. #endif /* __ASM_R8A7740_H__ */