aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlof Johansson2017-03-21 19:33:38 -0500
committerOlof Johansson2017-03-21 19:33:38 -0500
commita618a7349f1947c775200c83ccfaeae681c5dbcb (patch)
treeaea183a3ab8831dc65bfd4900b4d408b7e1bf2dd /include
parent4495c08e84729385774601b5146d51d9e5849f81 (diff)
parent11282a49b735ad7f4cea187de2b8dc5489343e4b (diff)
downloadkernel-a618a7349f1947c775200c83ccfaeae681c5dbcb.tar.gz
kernel-a618a7349f1947c775200c83ccfaeae681c5dbcb.tar.xz
kernel-a618a7349f1947c775200c83ccfaeae681c5dbcb.zip
Merge tag 'reset-for-4.12-1' of git://git.pengutronix.de/git/pza/linux into next/drivers
Reset controller changes for v4.12 - make reset drivers with bool Kconfig options explicitly non-modular - fix uniphier non-static symbol warnings - fix socfpga nr_resets property - new drivers for the Arria10 and i.MX7 system reset controllers - fix sunxi 64-bit compilation * tag 'reset-for-4.12-1' of git://git.pengutronix.de/git/pza/linux: reset: sunxi: fix for 64-bit compilation reset: Add Altera Arria10 SR Reset Controller dt-bindings: reset: a10sr: Add Arria10 SR Reset Controller offsets reset: Add i.MX7 SRC reset driver reset-socfpga: Fix nr_resets property reset: uniphier: fix non static symbol warnings reset: pistachio: make it explicitly non-modular reset: ath79: make it explicitly non-modular reset: oxnas: make it explicitly non-modular reset: meson: make it explicitly non-modular Signed-off-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'include')
-rw-r--r--include/dt-bindings/reset/altr,rst-mgr-a10sr.h33
-rw-r--r--include/dt-bindings/reset/imx7-reset.h62
2 files changed, 95 insertions, 0 deletions
diff --git a/include/dt-bindings/reset/altr,rst-mgr-a10sr.h b/include/dt-bindings/reset/altr,rst-mgr-a10sr.h
new file mode 100644
index 000000000000..9855925e5256
--- /dev/null
+++ b/include/dt-bindings/reset/altr,rst-mgr-a10sr.h
@@ -0,0 +1,33 @@
1/*
2 * Copyright Intel Corporation (C) 2017. All Rights Reserved
3 *
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms and conditions of the GNU General Public License,
6 * version 2, as published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope it will be useful, but WITHOUT
9 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
11 * more details.
12 *
13 * You should have received a copy of the GNU General Public License along with
14 * this program. If not, see <http://www.gnu.org/licenses/>.
15 *
16 * Reset binding definitions for Altera Arria10 MAX5 System Resource Chip
17 *
18 * Adapted from altr,rst-mgr-a10.h
19 */
20
21#ifndef _DT_BINDINGS_RESET_ALTR_RST_MGR_A10SR_H
22#define _DT_BINDINGS_RESET_ALTR_RST_MGR_A10SR_H
23
24/* Peripheral PHY resets */
25#define A10SR_RESET_ENET_HPS 0
26#define A10SR_RESET_PCIE 1
27#define A10SR_RESET_FILE 2
28#define A10SR_RESET_BQSPI 3
29#define A10SR_RESET_USB 4
30
31#define A10SR_RESET_NUM 5
32
33#endif
diff --git a/include/dt-bindings/reset/imx7-reset.h b/include/dt-bindings/reset/imx7-reset.h
new file mode 100644
index 000000000000..63948170c7b2
--- /dev/null
+++ b/include/dt-bindings/reset/imx7-reset.h
@@ -0,0 +1,62 @@
1/*
2 * Copyright (C) 2017 Impinj, Inc.
3 *
4 * Author: Andrey Smirnov <andrew.smirnov@gmail.com>
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms and conditions of the GNU General Public License,
8 * version 2, as published by the Free Software Foundation.
9 *
10 * This program is distributed in the hope it will be useful, but WITHOUT
11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
13 * more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19#ifndef DT_BINDING_RESET_IMX7_H
20#define DT_BINDING_RESET_IMX7_H
21
22#define IMX7_RESET_A7_CORE_POR_RESET0 0
23#define IMX7_RESET_A7_CORE_POR_RESET1 1
24#define IMX7_RESET_A7_CORE_RESET0 2
25#define IMX7_RESET_A7_CORE_RESET1 3
26#define IMX7_RESET_A7_DBG_RESET0 4
27#define IMX7_RESET_A7_DBG_RESET1 5
28#define IMX7_RESET_A7_ETM_RESET0 6
29#define IMX7_RESET_A7_ETM_RESET1 7
30#define IMX7_RESET_A7_SOC_DBG_RESET 8
31#define IMX7_RESET_A7_L2RESET 9
32#define IMX7_RESET_SW_M4C_RST 10
33#define IMX7_RESET_SW_M4P_RST 11
34#define IMX7_RESET_EIM_RST 12
35#define IMX7_RESET_HSICPHY_PORT_RST 13
36#define IMX7_RESET_USBPHY1_POR 14
37#define IMX7_RESET_USBPHY1_PORT_RST 15
38#define IMX7_RESET_USBPHY2_POR 16
39#define IMX7_RESET_USBPHY2_PORT_RST 17
40#define IMX7_RESET_MIPI_PHY_MRST 18
41#define IMX7_RESET_MIPI_PHY_SRST 19
42
43/*
44 * IMX7_RESET_PCIEPHY is a logical reset line combining PCIEPHY_BTN
45 * and PCIEPHY_G_RST
46 */
47#define IMX7_RESET_PCIEPHY 20
48#define IMX7_RESET_PCIEPHY_PERST 21
49
50/*
51 * IMX7_RESET_PCIE_CTRL_APPS_EN is not strictly a reset line, but it
52 * can be used to inhibit PCIe LTTSM, so, in a way, it can be thoguht
53 * of as one
54 */
55#define IMX7_RESET_PCIE_CTRL_APPS_EN 22
56#define IMX7_RESET_DDRC_PRST 23
57#define IMX7_RESET_DDRC_CORE_RST 24
58
59#define IMX7_RESET_NUM 25
60
61#endif
62