On Tue, Apr 09, 2019 at 08:39:39PM +0300, Andy Shevchenko wrote:Reviewed-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@xxxxxxxxxxxxxxx>
On Tue, Apr 09, 2019 at 10:07:35AM -0700, sathyanarayanan kuppuswamy wrote:If you have no further comments, can you provide your tag here?
On 4/9/19 4:25 AM, Andy Shevchenko wrote:Thanks!
Use BIT() and BIT_MASK() macros for definitions.Looks good to me.
--
Yes, to explicitly show that this is a value for NO_REBOOT masked bit(s)/* PMC register bit definitions */Do we need 0 << 4 ?
/* PMC_CFG_REG bit masks */
-#define PMC_CFG_NO_REBOOT_MASK (1 << 4)
+#define PMC_CFG_NO_REBOOT_MASK BIT_MASK(4)
#define PMC_CFG_NO_REBOOT_EN (1 << 4)
#define PMC_CFG_NO_REBOOT_DIS (0 << 4)
(single bit in this case).
--
With Best Regards,
Andy Shevchenko