1
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
4
// Copyright 2018 Socionext Inc.
5
5
// Author: Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
6
6
15
15
#define MAX_CLKS 2
16
16
#define MAX_RSTS 2
17
17
18
- struct uniphier_usb3_reset_soc_data {
18
+ struct uniphier_glue_reset_soc_data {
19
19
int nclks ;
20
20
const char * const * clock_names ;
21
21
int nrsts ;
22
22
const char * const * reset_names ;
23
23
};
24
24
25
- struct uniphier_usb3_reset_priv {
25
+ struct uniphier_glue_reset_priv {
26
26
struct clk_bulk_data clk [MAX_CLKS ];
27
27
struct reset_control * rst [MAX_RSTS ];
28
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
34
struct device * dev = & pdev -> dev ;
35
- struct uniphier_usb3_reset_priv * priv ;
35
+ struct uniphier_glue_reset_priv * priv ;
36
36
struct resource * res ;
37
37
resource_size_t size ;
38
38
const char * name ;
@@ -100,9 +100,9 @@ static int uniphier_usb3_reset_probe(struct platform_device *pdev)
100
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
106
int i ;
107
107
108
108
for (i = 0 ; i < priv -> data -> nrsts ; i ++ )
@@ -117,7 +117,7 @@ static const char * const uniphier_pro4_clock_reset_names[] = {
117
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
121
.nclks = ARRAY_SIZE (uniphier_pro4_clock_reset_names ),
122
122
.clock_names = uniphier_pro4_clock_reset_names ,
123
123
.nrsts = ARRAY_SIZE (uniphier_pro4_clock_reset_names ),
@@ -128,14 +128,14 @@ static const char * const uniphier_pxs2_clock_reset_names[] = {
128
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
132
.nclks = ARRAY_SIZE (uniphier_pxs2_clock_reset_names ),
133
133
.clock_names = uniphier_pxs2_clock_reset_names ,
134
134
.nrsts = ARRAY_SIZE (uniphier_pxs2_clock_reset_names ),
135
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
140
.compatible = "socionext,uniphier-pro4-usb3-reset" ,
141
141
.data = & uniphier_pro4_data ,
@@ -154,18 +154,18 @@ static const struct of_device_id uniphier_usb3_reset_match[] = {
154
154
},
155
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 = {
160
- .probe = uniphier_usb3_reset_probe ,
161
- .remove = uniphier_usb3_reset_remove ,
159
+ static struct platform_driver uniphier_glue_reset_driver = {
160
+ .probe = uniphier_glue_reset_probe ,
161
+ .remove = uniphier_glue_reset_remove ,
162
162
.driver = {
163
- .name = "uniphier-usb3 -reset" ,
164
- .of_match_table = uniphier_usb3_reset_match ,
163
+ .name = "uniphier-glue -reset" ,
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
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
171
MODULE_LICENSE ("GPL" );
0 commit comments