Re: [PATCH v4 6/7] clk: spacemit: define new syscons with only resets

From: Alex Elder
Date: Tue Apr 15 2025 - 08:02:03 EST


On 4/15/25 3:22 AM, Philipp Zabel wrote:
+static const struct ccu_reset_data apbc2_reset_data[] = {
+ [RESET_APBC2_UART1] = RESET_DATA(APBC2_UART1_CLK_RST, BIT(2), (0)),
+ [RESET_APBC2_SSP2] = RESET_DATA(APBC2_SSP2_CLK_RST, BIT(2), (0)),
+ [RESET_APBC2_TWSI3] = RESET_DATA(APBC2_TWSI3_CLK_RST, BIT(2), (0)),
+ [RESET_APBC2_RTC] = RESET_DATA(APBC2_RTC_CLK_RST, BIT(2), (0)),
+ [RESET_APBC2_TIMERS0] = RESET_DATA(APBC2_TIMERS0_CLK_RST, BIT(2), (0)),
+ [RESET_APBC2_KPC] = RESET_DATA(APBC2_KPC_CLK_RST, BIT(2), (0)),
+ [RESET_APBC2_GPIO] = RESET_DATA(APBC2_GPIO_CLK_RST, BIT(2), (0)),
Superfluous parentheses.

Wow, this is something I don't normally do. I had to check to see if
I managed to drop "BIT" or something (I did not). Anyway, I'll fix
this in the next revision. Thanks.

-Alex