diff options
-rw-r--r-- | drivers/reset/Kconfig | 10 | ||||
-rw-r--r-- | drivers/reset/Makefile | 2 | ||||
-rw-r--r-- | drivers/reset/reset-uniphier-glue.c (renamed from drivers/reset/reset-uniphier-usb3.c) | 38 |
3 files changed, 25 insertions, 25 deletions
diff --git a/drivers/reset/Kconfig b/drivers/reset/Kconfig index 7ee64988faac..2e01bd833ffd 100644 --- a/drivers/reset/Kconfig +++ b/drivers/reset/Kconfig | |||
@@ -171,15 +171,15 @@ config RESET_UNIPHIER | |||
171 | Say Y if you want to control reset signals provided by System Control | 171 | Say Y if you want to control reset signals provided by System Control |
172 | block, Media I/O block, Peripheral Block. | 172 | block, Media I/O block, Peripheral Block. |
173 | 173 | ||
174 | config RESET_UNIPHIER_USB3 | 174 | config RESET_UNIPHIER_GLUE |
175 | tristate "USB3 reset driver for UniPhier SoCs" | 175 | tristate "Reset driver in glue layer for UniPhier SoCs" |
176 | depends on (ARCH_UNIPHIER || COMPILE_TEST) && OF | 176 | depends on (ARCH_UNIPHIER || COMPILE_TEST) && OF |
177 | default ARCH_UNIPHIER | 177 | default ARCH_UNIPHIER |
178 | select RESET_SIMPLE | 178 | select RESET_SIMPLE |
179 | help | 179 | help |
180 | Support for the USB3 core reset on UniPhier SoCs. | 180 | Support for peripheral core reset included in its own glue layer |
181 | Say Y if you want to control reset signals provided by | 181 | on UniPhier SoCs. Say Y if you want to control reset signals |
182 | USB3 glue layer. | 182 | provided by the glue layer. |
183 | 183 | ||
184 | config RESET_ZYNQ | 184 | config RESET_ZYNQ |
185 | bool "ZYNQ Reset Driver" if COMPILE_TEST | 185 | bool "ZYNQ Reset Driver" if COMPILE_TEST |
diff --git a/drivers/reset/Makefile b/drivers/reset/Makefile index b14de32eb610..dc7874df78d9 100644 --- a/drivers/reset/Makefile +++ b/drivers/reset/Makefile | |||
@@ -24,6 +24,6 @@ obj-$(CONFIG_RESET_SUNXI) += reset-sunxi.o | |||
24 | obj-$(CONFIG_RESET_TI_SCI) += reset-ti-sci.o | 24 | obj-$(CONFIG_RESET_TI_SCI) += reset-ti-sci.o |
25 | obj-$(CONFIG_RESET_TI_SYSCON) += reset-ti-syscon.o | 25 | obj-$(CONFIG_RESET_TI_SYSCON) += reset-ti-syscon.o |
26 | obj-$(CONFIG_RESET_UNIPHIER) += reset-uniphier.o | 26 | obj-$(CONFIG_RESET_UNIPHIER) += reset-uniphier.o |
27 | obj-$(CONFIG_RESET_UNIPHIER_USB3) += reset-uniphier-usb3.o | 27 | obj-$(CONFIG_RESET_UNIPHIER_GLUE) += reset-uniphier-glue.o |
28 | obj-$(CONFIG_RESET_ZYNQ) += reset-zynq.o | 28 | obj-$(CONFIG_RESET_ZYNQ) += reset-zynq.o |
29 | 29 | ||
diff --git a/drivers/reset/reset-uniphier-usb3.c b/drivers/reset/reset-uniphier-glue.c index ffa1b19b594d..1b8ea03be9a0 100644 --- a/drivers/reset/reset-uniphier-usb3.c +++ b/drivers/reset/reset-uniphier-glue.c | |||
@@ -1,6 +1,6 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0 | 1 | // SPDX-License-Identifier: GPL-2.0 |
2 | // | 2 | // |
3 | // reset-uniphier-usb3.c - USB3 reset driver for UniPhier | 3 | // reset-uniphier-glue.c - Glue layer reset driver for UniPhier |
4 | // Copyright 2018 Socionext Inc. | 4 | // Copyright 2018 Socionext Inc. |
5 | // Author: Kunihiko Hayashi <hayashi.kunihiko@socionext.com> | 5 | // Author: Kunihiko Hayashi <hayashi.kunihiko@socionext.com> |
6 | 6 | ||
@@ -15,24 +15,24 @@ | |||
15 | #define MAX_CLKS 2 | 15 | #define MAX_CLKS 2 |
16 | #define MAX_RSTS 2 | 16 | #define MAX_RSTS 2 |
17 | 17 | ||
18 | struct uniphier_usb3_reset_soc_data { | 18 | struct uniphier_glue_reset_soc_data { |
19 | int nclks; | 19 | int nclks; |
20 | const char * const *clock_names; | 20 | const char * const *clock_names; |
21 | int nrsts; | 21 | int nrsts; |
22 | const char * const *reset_names; | 22 | const char * const *reset_names; |
23 | }; | 23 | }; |
24 | 24 | ||
25 | struct uniphier_usb3_reset_priv { | 25 | struct uniphier_glue_reset_priv { |
26 | struct clk_bulk_data clk[MAX_CLKS]; | 26 | struct clk_bulk_data clk[MAX_CLKS]; |
27 | struct reset_control *rst[MAX_RSTS]; | 27 | struct reset_control *rst[MAX_RSTS]; |
28 | struct reset_simple_data rdata; | 28 | struct reset_simple_data rdata; |
29 | const struct uniphier_usb3_reset_soc_data *data; | 29 | const struct uniphier_glue_reset_soc_data *data; |
30 | }; | 30 | }; |
31 | 31 | ||
32 | static int uniphier_usb3_reset_probe(struct platform_device *pdev) | 32 | static int uniphier_glue_reset_probe(struct platform_device *pdev) |
33 | { | 33 | { |
34 | struct device *dev = &pdev->dev; | 34 | struct device *dev = &pdev->dev; |
35 | struct uniphier_usb3_reset_priv *priv; | 35 | struct uniphier_glue_reset_priv *priv; |
36 | struct resource *res; | 36 | struct resource *res; |
37 | resource_size_t size; | 37 | resource_size_t size; |
38 | const char *name; | 38 | const char *name; |
@@ -100,9 +100,9 @@ out_rst_assert: | |||
100 | return ret; | 100 | return ret; |
101 | } | 101 | } |
102 | 102 | ||
103 | static int uniphier_usb3_reset_remove(struct platform_device *pdev) | 103 | static int uniphier_glue_reset_remove(struct platform_device *pdev) |
104 | { | 104 | { |
105 | struct uniphier_usb3_reset_priv *priv = platform_get_drvdata(pdev); | 105 | struct uniphier_glue_reset_priv *priv = platform_get_drvdata(pdev); |
106 | int i; | 106 | int i; |
107 | 107 | ||
108 | for (i = 0; i < priv->data->nrsts; i++) | 108 | for (i = 0; i < priv->data->nrsts; i++) |
@@ -117,7 +117,7 @@ static const char * const uniphier_pro4_clock_reset_names[] = { | |||
117 | "gio", "link", | 117 | "gio", "link", |
118 | }; | 118 | }; |
119 | 119 | ||
120 | static const struct uniphier_usb3_reset_soc_data uniphier_pro4_data = { | 120 | static const struct uniphier_glue_reset_soc_data uniphier_pro4_data = { |
121 | .nclks = ARRAY_SIZE(uniphier_pro4_clock_reset_names), | 121 | .nclks = ARRAY_SIZE(uniphier_pro4_clock_reset_names), |
122 | .clock_names = uniphier_pro4_clock_reset_names, | 122 | .clock_names = uniphier_pro4_clock_reset_names, |
123 | .nrsts = ARRAY_SIZE(uniphier_pro4_clock_reset_names), | 123 | .nrsts = ARRAY_SIZE(uniphier_pro4_clock_reset_names), |
@@ -128,14 +128,14 @@ static const char * const uniphier_pxs2_clock_reset_names[] = { | |||
128 | "link", | 128 | "link", |
129 | }; | 129 | }; |
130 | 130 | ||
131 | static const struct uniphier_usb3_reset_soc_data uniphier_pxs2_data = { | 131 | static const struct uniphier_glue_reset_soc_data uniphier_pxs2_data = { |
132 | .nclks = ARRAY_SIZE(uniphier_pxs2_clock_reset_names), | 132 | .nclks = ARRAY_SIZE(uniphier_pxs2_clock_reset_names), |
133 | .clock_names = uniphier_pxs2_clock_reset_names, | 133 | .clock_names = uniphier_pxs2_clock_reset_names, |
134 | .nrsts = ARRAY_SIZE(uniphier_pxs2_clock_reset_names), | 134 | .nrsts = ARRAY_SIZE(uniphier_pxs2_clock_reset_names), |
135 | .reset_names = uniphier_pxs2_clock_reset_names, | 135 | .reset_names = uniphier_pxs2_clock_reset_names, |
136 | }; | 136 | }; |
137 | 137 | ||
138 | static const struct of_device_id uniphier_usb3_reset_match[] = { | 138 | static const struct of_device_id uniphier_glue_reset_match[] = { |
139 | { | 139 | { |
140 | .compatible = "socionext,uniphier-pro4-usb3-reset", | 140 | .compatible = "socionext,uniphier-pro4-usb3-reset", |
141 | .data = &uniphier_pro4_data, | 141 | .data = &uniphier_pro4_data, |
@@ -154,18 +154,18 @@ static const struct of_device_id uniphier_usb3_reset_match[] = { | |||
154 | }, | 154 | }, |
155 | { /* Sentinel */ } | 155 | { /* Sentinel */ } |
156 | }; | 156 | }; |
157 | MODULE_DEVICE_TABLE(of, uniphier_usb3_reset_match); | 157 | MODULE_DEVICE_TABLE(of, uniphier_glue_reset_match); |
158 | 158 | ||
159 | static struct platform_driver uniphier_usb3_reset_driver = { | 159 | static struct platform_driver uniphier_glue_reset_driver = { |
160 | .probe = uniphier_usb3_reset_probe, | 160 | .probe = uniphier_glue_reset_probe, |
161 | .remove = uniphier_usb3_reset_remove, | 161 | .remove = uniphier_glue_reset_remove, |
162 | .driver = { | 162 | .driver = { |
163 | .name = "uniphier-usb3-reset", | 163 | .name = "uniphier-glue-reset", |
164 | .of_match_table = uniphier_usb3_reset_match, | 164 | .of_match_table = uniphier_glue_reset_match, |
165 | }, | 165 | }, |
166 | }; | 166 | }; |
167 | module_platform_driver(uniphier_usb3_reset_driver); | 167 | module_platform_driver(uniphier_glue_reset_driver); |
168 | 168 | ||
169 | MODULE_AUTHOR("Kunihiko Hayashi <hayashi.kunihiko@socionext.com>"); | 169 | MODULE_AUTHOR("Kunihiko Hayashi <hayashi.kunihiko@socionext.com>"); |
170 | MODULE_DESCRIPTION("UniPhier USB3 Reset Driver"); | 170 | MODULE_DESCRIPTION("UniPhier Glue layer reset driver"); |
171 | MODULE_LICENSE("GPL"); | 171 | MODULE_LICENSE("GPL"); |