2010-02-17 17:39:10 +08:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2010 Renesas Solutions Corp.
|
|
|
|
*
|
|
|
|
* Kuninori Morimoto <morimoto.kuninori@renesas.com>
|
|
|
|
*
|
|
|
|
* This file is subject to the terms and conditions of the GNU General Public
|
|
|
|
* License. See the file "COPYING" in the main directory of this archive
|
|
|
|
* for more details.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __ASM_SH7372_H__
|
|
|
|
#define __ASM_SH7372_H__
|
|
|
|
|
2010-05-04 22:07:15 +08:00
|
|
|
/* DMA slave IDs */
|
|
|
|
enum {
|
2011-05-24 18:24:03 +08:00
|
|
|
SHDMA_SLAVE_INVALID,
|
2010-05-24 00:39:24 +08:00
|
|
|
SHDMA_SLAVE_SCIF0_TX,
|
|
|
|
SHDMA_SLAVE_SCIF0_RX,
|
|
|
|
SHDMA_SLAVE_SCIF1_TX,
|
|
|
|
SHDMA_SLAVE_SCIF1_RX,
|
|
|
|
SHDMA_SLAVE_SCIF2_TX,
|
|
|
|
SHDMA_SLAVE_SCIF2_RX,
|
|
|
|
SHDMA_SLAVE_SCIF3_TX,
|
|
|
|
SHDMA_SLAVE_SCIF3_RX,
|
|
|
|
SHDMA_SLAVE_SCIF4_TX,
|
|
|
|
SHDMA_SLAVE_SCIF4_RX,
|
|
|
|
SHDMA_SLAVE_SCIF5_TX,
|
|
|
|
SHDMA_SLAVE_SCIF5_RX,
|
|
|
|
SHDMA_SLAVE_SCIF6_TX,
|
|
|
|
SHDMA_SLAVE_SCIF6_RX,
|
2012-09-22 20:06:38 +08:00
|
|
|
SHDMA_SLAVE_FLCTL0_TX,
|
|
|
|
SHDMA_SLAVE_FLCTL0_RX,
|
|
|
|
SHDMA_SLAVE_FLCTL1_TX,
|
|
|
|
SHDMA_SLAVE_FLCTL1_RX,
|
2010-05-04 22:07:15 +08:00
|
|
|
SHDMA_SLAVE_SDHI0_RX,
|
|
|
|
SHDMA_SLAVE_SDHI0_TX,
|
|
|
|
SHDMA_SLAVE_SDHI1_RX,
|
|
|
|
SHDMA_SLAVE_SDHI1_TX,
|
|
|
|
SHDMA_SLAVE_SDHI2_RX,
|
|
|
|
SHDMA_SLAVE_SDHI2_TX,
|
2012-04-02 09:40:01 +08:00
|
|
|
SHDMA_SLAVE_FSIA_RX,
|
|
|
|
SHDMA_SLAVE_FSIA_TX,
|
2010-11-24 18:05:15 +08:00
|
|
|
SHDMA_SLAVE_MMCIF_RX,
|
|
|
|
SHDMA_SLAVE_MMCIF_TX,
|
2011-06-17 16:21:10 +08:00
|
|
|
SHDMA_SLAVE_USB0_TX,
|
|
|
|
SHDMA_SLAVE_USB0_RX,
|
|
|
|
SHDMA_SLAVE_USB1_TX,
|
|
|
|
SHDMA_SLAVE_USB1_RX,
|
2010-05-04 22:07:15 +08:00
|
|
|
};
|
|
|
|
|
2010-10-15 13:14:54 +08:00
|
|
|
extern struct clk sh7372_extal1_clk;
|
|
|
|
extern struct clk sh7372_extal2_clk;
|
|
|
|
extern struct clk sh7372_dv_clki_clk;
|
|
|
|
extern struct clk sh7372_dv_clki_div2_clk;
|
|
|
|
extern struct clk sh7372_pllc2_clk;
|
2010-07-21 18:13:14 +08:00
|
|
|
|
2013-03-28 16:48:19 +08:00
|
|
|
extern void sh7372_init_irq(void);
|
|
|
|
extern void sh7372_map_io(void);
|
|
|
|
extern void sh7372_earlytimer_init(void);
|
|
|
|
extern void sh7372_add_early_devices(void);
|
|
|
|
extern void sh7372_add_standard_devices(void);
|
|
|
|
extern void sh7372_add_early_devices_dt(void);
|
|
|
|
extern void sh7372_add_standard_devices_dt(void);
|
|
|
|
extern void sh7372_clock_init(void);
|
|
|
|
extern void sh7372_pinmux_init(void);
|
|
|
|
extern void sh7372_pm_init(void);
|
|
|
|
extern void sh7372_resume_core_standby_sysc(void);
|
|
|
|
extern int sh7372_do_idle_sysc(unsigned long sleep_mode);
|
2011-10-20 05:52:50 +08:00
|
|
|
extern void sh7372_intcs_suspend(void);
|
|
|
|
extern void sh7372_intcs_resume(void);
|
2011-12-23 08:23:07 +08:00
|
|
|
extern void sh7372_intca_suspend(void);
|
|
|
|
extern void sh7372_intca_resume(void);
|
2011-10-20 05:52:50 +08:00
|
|
|
|
2013-06-05 15:45:53 +08:00
|
|
|
extern unsigned long sh7372_cpu_resume;
|
|
|
|
|
2012-08-07 07:12:56 +08:00
|
|
|
#ifdef CONFIG_PM
|
|
|
|
extern void __init sh7372_init_pm_domains(void);
|
|
|
|
#else
|
|
|
|
static inline void sh7372_init_pm_domains(void) {}
|
|
|
|
#endif
|
|
|
|
|
2012-08-22 18:27:24 +08:00
|
|
|
extern void __init sh7372_pm_init_late(void);
|
|
|
|
|
2010-02-17 17:39:10 +08:00
|
|
|
#endif /* __ASM_SH7372_H__ */
|