From b16723cf5c636f6f9ed8cd6d0287d2f86a8e0ee4 Mon Sep 17 00:00:00 2001 From: samin Date: Tue, 19 Apr 2022 16:01:47 +0800 Subject: [PATCH] reset:starfive:jh7110: Macro definitions are rearranged in order. Macro definitions are rearranged in order, for better coding style. Signed-off-by: samin --- drivers/reset/starfive/reset-starfive-jh7110.c | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/drivers/reset/starfive/reset-starfive-jh7110.c b/drivers/reset/starfive/reset-starfive-jh7110.c index b699e04..7837087 100644 --- a/drivers/reset/starfive/reset-starfive-jh7110.c +++ b/drivers/reset/starfive/reset-starfive-jh7110.c @@ -16,6 +16,15 @@ #include /* register offsets */ +#define AONCRG_RESET_ASSERT 0x38 +#define ISPCRG_RESET_ASSERT 0x38 +#define VOUTCRG_RESET_ASSERT 0x48 +#define STGCRG_RESET_ASSERT 0x74 +#define AONCRG_RESET_STATUS 0x3C +#define ISPCRG_RESET_STATUS 0x3C +#define VOUTCRG_RESET_STATUS 0x4C +#define STGCRG_RESET_STATUS 0x78 + #define SYSCRG_RESET_ASSERT0 0x2F8 #define SYSCRG_RESET_ASSERT1 0x2FC #define SYSCRG_RESET_ASSERT2 0x300 @@ -25,18 +34,6 @@ #define SYSCRG_RESET_STATUS2 0x310 #define SYSCRG_RESET_STATUS3 0x314 -#define STGCRG_RESET_ASSERT 0x74 -#define STGCRG_RESET_STATUS 0x78 - -#define AONCRG_RESET_ASSERT 0x38 -#define AONCRG_RESET_STATUS 0x3C - -#define ISPCRG_RESET_ASSERT 0x38 -#define ISPCRG_RESET_STATUS 0x3C - -#define VOUTCRG_RESET_ASSERT 0x48 -#define VOUTCRG_RESET_STATUS 0x4C - struct reset_assert_t { void *__iomem reg_assert; void *__iomem reg_status; -- 2.7.4