From b1347e1de70e63a6e0154e641c65ac909793d2ac Mon Sep 17 00:00:00 2001 From: Andrey Smirnov Date: Thu, 26 Apr 2018 22:49:43 -0700 Subject: ARM: i.MX: Make imx6_reset_reasons global Both i.MX51 and i.MX53 have exactly the same reset source mapping, so rename imx6_reset_reasons to imx_reset_reasons and make it a globally visible constant so it could be shared. Signed-off-by: Andrey Smirnov Signed-off-by: Sascha Hauer --- arch/arm/mach-imx/imx.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'arch/arm/mach-imx/imx.c') diff --git a/arch/arm/mach-imx/imx.c b/arch/arm/mach-imx/imx.c index bf15f0b063..1b4c1b3df1 100644 --- a/arch/arm/mach-imx/imx.c +++ b/arch/arm/mach-imx/imx.c @@ -153,6 +153,15 @@ static int imx_init(void) } postcore_initcall(imx_init); +const struct imx_reset_reason imx_reset_reasons[] = { + { IMX_SRC_SRSR_IPP_RESET, RESET_POR, 0 }, + { IMX_SRC_SRSR_WDOG1_RESET, RESET_WDG, 0 }, + { IMX_SRC_SRSR_JTAG_RESET, RESET_JTAG, 0 }, + { IMX_SRC_SRSR_JTAG_SW_RESET, RESET_JTAG, 0 }, + { IMX_SRC_SRSR_WARM_BOOT, RESET_RST, 0 }, + { /* sentinel */ } +}; + void imx_set_reset_reason(void __iomem *srsr, const struct imx_reset_reason *reasons) { -- cgit v1.2.3