mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-28 07:13:34 +00:00
4c7924fb90
R-Car Gen3 SoC series has a realtime processor, the boot address of this processor can be set thanks to CR7BAR register of the reset module. Export this function so that it's possible to set the boot address from a remoteproc driver. Also drop the __initdata qualifier on rcar_rst_base, since we will use this address later than init time. Signed-off-by: Julien Massot <julien.massot@iot.bzh> Link: https://lore.kernel.org/r/20211022122101.66998-1-julien.massot@iot.bzh Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
13 lines
449 B
C
13 lines
449 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef __LINUX_SOC_RENESAS_RCAR_RST_H__
|
|
#define __LINUX_SOC_RENESAS_RCAR_RST_H__
|
|
|
|
#ifdef CONFIG_RST_RCAR
|
|
int rcar_rst_read_mode_pins(u32 *mode);
|
|
int rcar_rst_set_rproc_boot_addr(u64 boot_addr);
|
|
#else
|
|
static inline int rcar_rst_read_mode_pins(u32 *mode) { return -ENODEV; }
|
|
static inline int rcar_rst_set_rproc_boot_addr(u64 boot_addr) { return -ENODEV; }
|
|
#endif
|
|
|
|
#endif /* __LINUX_SOC_RENESAS_RCAR_RST_H__ */
|