2010-02-17 16:39:10 +07: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 21:07:15 +07:00
|
|
|
/* DMA slave IDs */
|
|
|
|
enum {
|
2011-05-24 17:24:03 +07:00
|
|
|
SHDMA_SLAVE_INVALID,
|
2010-05-23 23:39:24 +07: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 19:06:38 +07:00
|
|
|
SHDMA_SLAVE_FLCTL0_TX,
|
|
|
|
SHDMA_SLAVE_FLCTL0_RX,
|
|
|
|
SHDMA_SLAVE_FLCTL1_TX,
|
|
|
|
SHDMA_SLAVE_FLCTL1_RX,
|
2010-05-04 21:07:15 +07: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 08:40:01 +07:00
|
|
|
SHDMA_SLAVE_FSIA_RX,
|
|
|
|
SHDMA_SLAVE_FSIA_TX,
|
2010-11-24 17:05:15 +07:00
|
|
|
SHDMA_SLAVE_MMCIF_RX,
|
|
|
|
SHDMA_SLAVE_MMCIF_TX,
|
2011-06-17 15:21:10 +07:00
|
|
|
SHDMA_SLAVE_USB0_TX,
|
|
|
|
SHDMA_SLAVE_USB0_RX,
|
|
|
|
SHDMA_SLAVE_USB1_TX,
|
|
|
|
SHDMA_SLAVE_USB1_RX,
|
2010-05-04 21:07:15 +07:00
|
|
|
};
|
|
|
|
|
2010-10-15 12:14:54 +07: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 17:13:14 +07:00
|
|
|
|
2013-03-28 15:48:19 +07: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 04:52:50 +07:00
|
|
|
extern void sh7372_intcs_suspend(void);
|
|
|
|
extern void sh7372_intcs_resume(void);
|
2011-12-23 07:23:07 +07:00
|
|
|
extern void sh7372_intca_suspend(void);
|
|
|
|
extern void sh7372_intca_resume(void);
|
2011-10-20 04:52:50 +07:00
|
|
|
|
2013-06-05 14:45:53 +07:00
|
|
|
extern unsigned long sh7372_cpu_resume;
|
|
|
|
|
2012-08-07 06:12:56 +07: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 17:27:24 +07:00
|
|
|
extern void __init sh7372_pm_init_late(void);
|
|
|
|
|
2010-02-17 16:39:10 +07:00
|
|
|
#endif /* __ASM_SH7372_H__ */
|