mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
e26f406740
Instead of having a hard coded virt-to-phys address conversion code in sleep-sh7372.S, rework the code to do the conversion in C using virt_to_phys(). This removes the need for PLAT_PHYS_OFFSET which in turn is needed for ARCH_MULTIPLATFORM. Signed-off-by: Magnus Damm <damm@opensource.se> [horms+renesas@verge.net.au: squashed in build fix posted as "ARM: shmobile: sh7372 build fix for SUSPEND=n && CPU_IDLE=n"] Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
89 lines
2.3 KiB
C
89 lines
2.3 KiB
C
/*
|
|
* 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__
|
|
|
|
#include <linux/sh_clk.h>
|
|
#include <linux/pm_domain.h>
|
|
#include <mach/pm-rmobile.h>
|
|
|
|
/* DMA slave IDs */
|
|
enum {
|
|
SHDMA_SLAVE_INVALID,
|
|
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,
|
|
SHDMA_SLAVE_FLCTL0_TX,
|
|
SHDMA_SLAVE_FLCTL0_RX,
|
|
SHDMA_SLAVE_FLCTL1_TX,
|
|
SHDMA_SLAVE_FLCTL1_RX,
|
|
SHDMA_SLAVE_SDHI0_RX,
|
|
SHDMA_SLAVE_SDHI0_TX,
|
|
SHDMA_SLAVE_SDHI1_RX,
|
|
SHDMA_SLAVE_SDHI1_TX,
|
|
SHDMA_SLAVE_SDHI2_RX,
|
|
SHDMA_SLAVE_SDHI2_TX,
|
|
SHDMA_SLAVE_FSIA_RX,
|
|
SHDMA_SLAVE_FSIA_TX,
|
|
SHDMA_SLAVE_MMCIF_RX,
|
|
SHDMA_SLAVE_MMCIF_TX,
|
|
SHDMA_SLAVE_USB0_TX,
|
|
SHDMA_SLAVE_USB0_RX,
|
|
SHDMA_SLAVE_USB1_TX,
|
|
SHDMA_SLAVE_USB1_RX,
|
|
};
|
|
|
|
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;
|
|
|
|
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);
|
|
extern void sh7372_intcs_suspend(void);
|
|
extern void sh7372_intcs_resume(void);
|
|
extern void sh7372_intca_suspend(void);
|
|
extern void sh7372_intca_resume(void);
|
|
|
|
extern unsigned long sh7372_cpu_resume;
|
|
|
|
#ifdef CONFIG_PM
|
|
extern void __init sh7372_init_pm_domains(void);
|
|
#else
|
|
static inline void sh7372_init_pm_domains(void) {}
|
|
#endif
|
|
|
|
extern void __init sh7372_pm_init_late(void);
|
|
|
|
#endif /* __ASM_SH7372_H__ */
|