@@ -191,26 +191,6 @@ struct rpcif_priv {
191
191
u32 ddr ; /* DRDRENR or SMDRENR */
192
192
};
193
193
194
- static const struct rpcif_info rpcif_info_r8a7796 = {
195
- .type = RPCIF_RCAR_GEN3 ,
196
- .strtim = 6 ,
197
- };
198
-
199
- static const struct rpcif_info rpcif_info_gen3 = {
200
- .type = RPCIF_RCAR_GEN3 ,
201
- .strtim = 7 ,
202
- };
203
-
204
- static const struct rpcif_info rpcif_info_rz_g2l = {
205
- .type = RPCIF_RZ_G2L ,
206
- .strtim = 7 ,
207
- };
208
-
209
- static const struct rpcif_info rpcif_info_gen4 = {
210
- .type = RPCIF_RCAR_GEN4 ,
211
- .strtim = 15 ,
212
- };
213
-
214
194
/*
215
195
* Custom accessor functions to ensure SM[RW]DR[01] are always accessed with
216
196
* proper width. Requires rpcif_priv.xfer_size to be correctly set before!
@@ -784,6 +764,26 @@ static void rpcif_remove(struct platform_device *pdev)
784
764
platform_device_unregister (rpc -> vdev );
785
765
}
786
766
767
+ static const struct rpcif_info rpcif_info_r8a7796 = {
768
+ .type = RPCIF_RCAR_GEN3 ,
769
+ .strtim = 6 ,
770
+ };
771
+
772
+ static const struct rpcif_info rpcif_info_gen3 = {
773
+ .type = RPCIF_RCAR_GEN3 ,
774
+ .strtim = 7 ,
775
+ };
776
+
777
+ static const struct rpcif_info rpcif_info_rz_g2l = {
778
+ .type = RPCIF_RZ_G2L ,
779
+ .strtim = 7 ,
780
+ };
781
+
782
+ static const struct rpcif_info rpcif_info_gen4 = {
783
+ .type = RPCIF_RCAR_GEN4 ,
784
+ .strtim = 15 ,
785
+ };
786
+
787
787
static const struct of_device_id rpcif_of_match [] = {
788
788
{ .compatible = "renesas,r8a7796-rpc-if" , .data = & rpcif_info_r8a7796 },
789
789
{ .compatible = "renesas,rcar-gen3-rpc-if" , .data = & rpcif_info_gen3 },
0 commit comments