blob: f64fedb1f2ccb50db8bd88ec7fb78b18523c01d2 [file] [log] [blame]
Kuninori Morimotoccb7cc72013-03-21 03:01:36 -07001/*
2 * Copyright (C) 2013 Renesas Solutions Corp.
3 * Copyright (C) 2013 Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Max Filippov338c4992013-08-25 01:35:13 +04004 * Copyright (C) 2013 Cogent Embedded, Inc.
Kuninori Morimotoccb7cc72013-03-21 03:01:36 -07005 *
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.
Kuninori Morimotoccb7cc72013-03-21 03:01:36 -070014 */
15#ifndef __ASM_R8A7778_H__
16#define __ASM_R8A7778_H__
17
Sergei Shtylyov52421912013-04-04 18:55:46 +000018#include <linux/sh_eth.h>
19
Max Filippov338c4992013-08-25 01:35:13 +040020/* HPB-DMA slave IDs */
21enum {
22 HPBDMA_SLAVE_DUMMY,
23 HPBDMA_SLAVE_SDHI0_TX,
24 HPBDMA_SLAVE_SDHI0_RX,
Kuninori Morimotoa91be222013-12-03 11:12:24 +090025 HPBDMA_SLAVE_SSI0_TX,
26 HPBDMA_SLAVE_SSI0_RX,
27 HPBDMA_SLAVE_SSI1_TX,
28 HPBDMA_SLAVE_SSI1_RX,
29 HPBDMA_SLAVE_SSI2_TX,
30 HPBDMA_SLAVE_SSI2_RX,
31 HPBDMA_SLAVE_SSI3_TX,
32 HPBDMA_SLAVE_SSI3_RX,
33 HPBDMA_SLAVE_SSI4_TX,
34 HPBDMA_SLAVE_SSI4_RX,
35 HPBDMA_SLAVE_SSI5_TX,
36 HPBDMA_SLAVE_SSI5_RX,
37 HPBDMA_SLAVE_SSI6_TX,
38 HPBDMA_SLAVE_SSI6_RX,
39 HPBDMA_SLAVE_SSI7_TX,
40 HPBDMA_SLAVE_SSI7_RX,
41 HPBDMA_SLAVE_SSI8_TX,
42 HPBDMA_SLAVE_SSI8_RX,
Kuninori Morimotob4283182013-11-20 23:25:32 -080043 HPBDMA_SLAVE_HPBIF0_TX,
44 HPBDMA_SLAVE_HPBIF0_RX,
45 HPBDMA_SLAVE_HPBIF1_TX,
46 HPBDMA_SLAVE_HPBIF1_RX,
47 HPBDMA_SLAVE_HPBIF2_TX,
48 HPBDMA_SLAVE_HPBIF2_RX,
49 HPBDMA_SLAVE_HPBIF3_TX,
50 HPBDMA_SLAVE_HPBIF3_RX,
51 HPBDMA_SLAVE_HPBIF4_TX,
52 HPBDMA_SLAVE_HPBIF4_RX,
53 HPBDMA_SLAVE_HPBIF5_TX,
54 HPBDMA_SLAVE_HPBIF5_RX,
55 HPBDMA_SLAVE_HPBIF6_TX,
56 HPBDMA_SLAVE_HPBIF6_RX,
57 HPBDMA_SLAVE_HPBIF7_TX,
58 HPBDMA_SLAVE_HPBIF7_RX,
59 HPBDMA_SLAVE_HPBIF8_TX,
60 HPBDMA_SLAVE_HPBIF8_RX,
Kuninori Morimotoaa993862013-12-10 16:51:04 -080061 HPBDMA_SLAVE_USBFUNC_TX,
62 HPBDMA_SLAVE_USBFUNC_RX,
Max Filippov338c4992013-08-25 01:35:13 +040063};
64
Kuninori Morimotoccb7cc72013-03-21 03:01:36 -070065extern void r8a7778_add_standard_devices(void);
66extern void r8a7778_add_standard_devices_dt(void);
Kuninori Morimotocfa66a82013-07-24 00:36:51 -070067extern void r8a7778_add_dt_devices(void);
Kuninori Morimoto46b9a092013-06-03 22:11:58 -070068
Sergei Shtylyov02474a42013-06-09 00:36:05 +040069extern void r8a7778_init_late(void);
Kuninori Morimotoccb7cc72013-03-21 03:01:36 -070070extern void r8a7778_init_irq_dt(void);
71extern void r8a7778_clock_init(void);
Kuninori Morimoto3a42fa22013-04-01 21:19:37 -070072extern void r8a7778_init_irq_extpin(int irlm);
Kuninori Morimoto22385772013-10-02 01:31:40 -070073extern void r8a7778_init_irq_extpin_dt(int irlm);
Kuninori Morimoto369b00b2013-04-12 05:37:50 +000074extern void r8a7778_pinmux_init(void);
Kuninori Morimotoccb7cc72013-03-21 03:01:36 -070075
Kuninori Morimotof39d35f2013-08-04 17:43:01 -070076extern int r8a7778_usb_phy_power(bool enable);
77
Kuninori Morimotoccb7cc72013-03-21 03:01:36 -070078#endif /* __ASM_R8A7778_H__ */