diff -drupN a/include/linux/hwspinlock.h b/include/linux/hwspinlock.h --- a/include/linux/hwspinlock.h 2018-08-06 17:23:04.000000000 +0300 +++ b/include/linux/hwspinlock.h 2022-06-12 05:28:14.000000000 +0300 @@ -25,6 +25,15 @@ #define HWLOCK_IRQSTATE 0x01 /* Disable interrupts, save state */ #define HWLOCK_IRQ 0x02 /* Disable interrupts, don't save state */ +#define SUNXI_MSG_HWSPINLOCK (0) /* message */ + +/* rtc reg */ +#define SUNXI_RTC_HWSPINLOCK (2) +/* cpuidle */ +#define SUNXI_IDL_HWSPINLCOK (3) +/* intc */ +#define SUNXI_INTC_HWSPINLOCK (4) + struct device; struct device_node; struct hwspinlock;