diff options
author | Kunihiko Hayashi <hayashi.kunihiko@socionext.com> | 2018-07-19 02:18:53 -0400 |
---|---|---|
committer | Philipp Zabel <p.zabel@pengutronix.de> | 2018-07-19 05:19:47 -0400 |
commit | 6b39fd590aebca1a6a4c827f29f14d2b6df3939d (patch) | |
tree | e601aedfbe98422f8adb22bd9453b8544a5c50dd /drivers/reset | |
parent | 499fef09a3237497906084da3eede0185fc9abb8 (diff) |
reset: uniphier: add reset control support for SPI
Add reset control for SPI controller on UniPhier SoCs.
Signed-off-by: Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
Acked-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Diffstat (limited to 'drivers/reset')
-rw-r--r-- | drivers/reset/reset-uniphier.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/reset/reset-uniphier.c b/drivers/reset/reset-uniphier.c index e9030ff1bf2f..5605745663ae 100644 --- a/drivers/reset/reset-uniphier.c +++ b/drivers/reset/reset-uniphier.c | |||
@@ -202,6 +202,12 @@ static const struct uniphier_reset_data uniphier_pro5_sd_reset_data[] = { | |||
202 | #define UNIPHIER_PERI_RESET_FI2C(id, ch) \ | 202 | #define UNIPHIER_PERI_RESET_FI2C(id, ch) \ |
203 | UNIPHIER_RESETX((id), 0x114, 24 + (ch)) | 203 | UNIPHIER_RESETX((id), 0x114, 24 + (ch)) |
204 | 204 | ||
205 | #define UNIPHIER_PERI_RESET_SCSSI(id) \ | ||
206 | UNIPHIER_RESETX((id), 0x110, 17) | ||
207 | |||
208 | #define UNIPHIER_PERI_RESET_MCSSI(id) \ | ||
209 | UNIPHIER_RESETX((id), 0x114, 14) | ||
210 | |||
205 | static const struct uniphier_reset_data uniphier_ld4_peri_reset_data[] = { | 211 | static const struct uniphier_reset_data uniphier_ld4_peri_reset_data[] = { |
206 | UNIPHIER_PERI_RESET_UART(0, 0), | 212 | UNIPHIER_PERI_RESET_UART(0, 0), |
207 | UNIPHIER_PERI_RESET_UART(1, 1), | 213 | UNIPHIER_PERI_RESET_UART(1, 1), |
@@ -212,6 +218,7 @@ static const struct uniphier_reset_data uniphier_ld4_peri_reset_data[] = { | |||
212 | UNIPHIER_PERI_RESET_I2C(6, 2), | 218 | UNIPHIER_PERI_RESET_I2C(6, 2), |
213 | UNIPHIER_PERI_RESET_I2C(7, 3), | 219 | UNIPHIER_PERI_RESET_I2C(7, 3), |
214 | UNIPHIER_PERI_RESET_I2C(8, 4), | 220 | UNIPHIER_PERI_RESET_I2C(8, 4), |
221 | UNIPHIER_PERI_RESET_SCSSI(11), | ||
215 | UNIPHIER_RESET_END, | 222 | UNIPHIER_RESET_END, |
216 | }; | 223 | }; |
217 | 224 | ||
@@ -227,6 +234,8 @@ static const struct uniphier_reset_data uniphier_pro4_peri_reset_data[] = { | |||
227 | UNIPHIER_PERI_RESET_FI2C(8, 4), | 234 | UNIPHIER_PERI_RESET_FI2C(8, 4), |
228 | UNIPHIER_PERI_RESET_FI2C(9, 5), | 235 | UNIPHIER_PERI_RESET_FI2C(9, 5), |
229 | UNIPHIER_PERI_RESET_FI2C(10, 6), | 236 | UNIPHIER_PERI_RESET_FI2C(10, 6), |
237 | UNIPHIER_PERI_RESET_SCSSI(11), | ||
238 | UNIPHIER_PERI_RESET_MCSSI(12), | ||
230 | UNIPHIER_RESET_END, | 239 | UNIPHIER_RESET_END, |
231 | }; | 240 | }; |
232 | 241 | ||