r8a7778.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. /*
  2. * Copyright (C) 2013 Renesas Solutions Corp.
  3. * Copyright (C) 2013 Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
  4. * Copyright (C) 2013 Cogent Embedded, Inc.
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation; version 2 of the License.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. */
  15. #ifndef __ASM_R8A7778_H__
  16. #define __ASM_R8A7778_H__
  17. #include <linux/sh_eth.h>
  18. /* HPB-DMA slave IDs */
  19. enum {
  20. HPBDMA_SLAVE_DUMMY,
  21. HPBDMA_SLAVE_SDHI0_TX,
  22. HPBDMA_SLAVE_SDHI0_RX,
  23. HPBDMA_SLAVE_SSI0_TX,
  24. HPBDMA_SLAVE_SSI0_RX,
  25. HPBDMA_SLAVE_SSI1_TX,
  26. HPBDMA_SLAVE_SSI1_RX,
  27. HPBDMA_SLAVE_SSI2_TX,
  28. HPBDMA_SLAVE_SSI2_RX,
  29. HPBDMA_SLAVE_SSI3_TX,
  30. HPBDMA_SLAVE_SSI3_RX,
  31. HPBDMA_SLAVE_SSI4_TX,
  32. HPBDMA_SLAVE_SSI4_RX,
  33. HPBDMA_SLAVE_SSI5_TX,
  34. HPBDMA_SLAVE_SSI5_RX,
  35. HPBDMA_SLAVE_SSI6_TX,
  36. HPBDMA_SLAVE_SSI6_RX,
  37. HPBDMA_SLAVE_SSI7_TX,
  38. HPBDMA_SLAVE_SSI7_RX,
  39. HPBDMA_SLAVE_SSI8_TX,
  40. HPBDMA_SLAVE_SSI8_RX,
  41. HPBDMA_SLAVE_HPBIF0_TX,
  42. HPBDMA_SLAVE_HPBIF0_RX,
  43. HPBDMA_SLAVE_HPBIF1_TX,
  44. HPBDMA_SLAVE_HPBIF1_RX,
  45. HPBDMA_SLAVE_HPBIF2_TX,
  46. HPBDMA_SLAVE_HPBIF2_RX,
  47. HPBDMA_SLAVE_HPBIF3_TX,
  48. HPBDMA_SLAVE_HPBIF3_RX,
  49. HPBDMA_SLAVE_HPBIF4_TX,
  50. HPBDMA_SLAVE_HPBIF4_RX,
  51. HPBDMA_SLAVE_HPBIF5_TX,
  52. HPBDMA_SLAVE_HPBIF5_RX,
  53. HPBDMA_SLAVE_HPBIF6_TX,
  54. HPBDMA_SLAVE_HPBIF6_RX,
  55. HPBDMA_SLAVE_HPBIF7_TX,
  56. HPBDMA_SLAVE_HPBIF7_RX,
  57. HPBDMA_SLAVE_HPBIF8_TX,
  58. HPBDMA_SLAVE_HPBIF8_RX,
  59. HPBDMA_SLAVE_USBFUNC_TX,
  60. HPBDMA_SLAVE_USBFUNC_RX,
  61. };
  62. extern void r8a7778_add_standard_devices(void);
  63. extern void r8a7778_add_standard_devices_dt(void);
  64. extern void r8a7778_add_dt_devices(void);
  65. extern void r8a7778_init_late(void);
  66. extern void r8a7778_init_irq_dt(void);
  67. extern void r8a7778_clock_init(void);
  68. extern void r8a7778_init_irq_extpin(int irlm);
  69. extern void r8a7778_init_irq_extpin_dt(int irlm);
  70. extern void r8a7778_pinmux_init(void);
  71. extern int r8a7778_usb_phy_power(bool enable);
  72. #endif /* __ASM_R8A7778_H__ */