2013-03-21 10:01:36 +00:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2013 Renesas Solutions Corp.
|
|
|
|
* Copyright (C) 2013 Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
|
2013-08-24 21:35:13 +00:00
|
|
|
* Copyright (C) 2013 Cogent Embedded, Inc.
|
2013-03-21 10:01:36 +00:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; version 2 of the License.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*/
|
|
|
|
#ifndef __ASM_R8A7778_H__
|
|
|
|
#define __ASM_R8A7778_H__
|
|
|
|
|
2013-04-04 18:55:46 +00:00
|
|
|
#include <linux/sh_eth.h>
|
|
|
|
|
2013-08-24 21:35:13 +00:00
|
|
|
/* HPB-DMA slave IDs */
|
|
|
|
enum {
|
|
|
|
HPBDMA_SLAVE_DUMMY,
|
|
|
|
HPBDMA_SLAVE_SDHI0_TX,
|
|
|
|
HPBDMA_SLAVE_SDHI0_RX,
|
2013-12-03 02:12:24 +00:00
|
|
|
HPBDMA_SLAVE_SSI0_TX,
|
|
|
|
HPBDMA_SLAVE_SSI0_RX,
|
|
|
|
HPBDMA_SLAVE_SSI1_TX,
|
|
|
|
HPBDMA_SLAVE_SSI1_RX,
|
|
|
|
HPBDMA_SLAVE_SSI2_TX,
|
|
|
|
HPBDMA_SLAVE_SSI2_RX,
|
|
|
|
HPBDMA_SLAVE_SSI3_TX,
|
|
|
|
HPBDMA_SLAVE_SSI3_RX,
|
|
|
|
HPBDMA_SLAVE_SSI4_TX,
|
|
|
|
HPBDMA_SLAVE_SSI4_RX,
|
|
|
|
HPBDMA_SLAVE_SSI5_TX,
|
|
|
|
HPBDMA_SLAVE_SSI5_RX,
|
|
|
|
HPBDMA_SLAVE_SSI6_TX,
|
|
|
|
HPBDMA_SLAVE_SSI6_RX,
|
|
|
|
HPBDMA_SLAVE_SSI7_TX,
|
|
|
|
HPBDMA_SLAVE_SSI7_RX,
|
|
|
|
HPBDMA_SLAVE_SSI8_TX,
|
|
|
|
HPBDMA_SLAVE_SSI8_RX,
|
2013-11-21 07:25:32 +00:00
|
|
|
HPBDMA_SLAVE_HPBIF0_TX,
|
|
|
|
HPBDMA_SLAVE_HPBIF0_RX,
|
|
|
|
HPBDMA_SLAVE_HPBIF1_TX,
|
|
|
|
HPBDMA_SLAVE_HPBIF1_RX,
|
|
|
|
HPBDMA_SLAVE_HPBIF2_TX,
|
|
|
|
HPBDMA_SLAVE_HPBIF2_RX,
|
|
|
|
HPBDMA_SLAVE_HPBIF3_TX,
|
|
|
|
HPBDMA_SLAVE_HPBIF3_RX,
|
|
|
|
HPBDMA_SLAVE_HPBIF4_TX,
|
|
|
|
HPBDMA_SLAVE_HPBIF4_RX,
|
|
|
|
HPBDMA_SLAVE_HPBIF5_TX,
|
|
|
|
HPBDMA_SLAVE_HPBIF5_RX,
|
|
|
|
HPBDMA_SLAVE_HPBIF6_TX,
|
|
|
|
HPBDMA_SLAVE_HPBIF6_RX,
|
|
|
|
HPBDMA_SLAVE_HPBIF7_TX,
|
|
|
|
HPBDMA_SLAVE_HPBIF7_RX,
|
|
|
|
HPBDMA_SLAVE_HPBIF8_TX,
|
|
|
|
HPBDMA_SLAVE_HPBIF8_RX,
|
2013-12-11 00:51:04 +00:00
|
|
|
HPBDMA_SLAVE_USBFUNC_TX,
|
|
|
|
HPBDMA_SLAVE_USBFUNC_RX,
|
2013-08-24 21:35:13 +00:00
|
|
|
};
|
|
|
|
|
2013-03-21 10:01:36 +00:00
|
|
|
extern void r8a7778_add_standard_devices(void);
|
|
|
|
extern void r8a7778_add_standard_devices_dt(void);
|
2013-07-24 07:36:51 +00:00
|
|
|
extern void r8a7778_add_dt_devices(void);
|
2013-06-04 05:11:58 +00:00
|
|
|
|
2013-06-08 20:36:05 +00:00
|
|
|
extern void r8a7778_init_late(void);
|
2013-03-21 10:01:36 +00:00
|
|
|
extern void r8a7778_init_irq_dt(void);
|
|
|
|
extern void r8a7778_clock_init(void);
|
2013-04-02 04:19:37 +00:00
|
|
|
extern void r8a7778_init_irq_extpin(int irlm);
|
2013-10-02 08:31:40 +00:00
|
|
|
extern void r8a7778_init_irq_extpin_dt(int irlm);
|
2013-04-12 05:37:50 +00:00
|
|
|
extern void r8a7778_pinmux_init(void);
|
2013-03-21 10:01:36 +00:00
|
|
|
|
2013-08-05 00:43:01 +00:00
|
|
|
extern int r8a7778_usb_phy_power(bool enable);
|
|
|
|
|
2013-03-21 10:01:36 +00:00
|
|
|
#endif /* __ASM_R8A7778_H__ */
|