[U-Boot] [PATCH 11/23] ARM: rmobile: salvator-x: Use BIT() macro in board file

Nobuhiro Iwamatsu iwamatsu at nigauri.org
Sat May 13 21:40:30 UTC 2017


Applied to rmobile branch, thanks!

2017-05-13 22:57 GMT+09:00 Marek Vasut <marek.vasut at gmail.com>:
> Cosmetic change, replace (1 << (n)) with BIT(n) .
>
> Signed-off-by: Marek Vasut <marek.vasut+renesas at gmail.com>
> Cc: Hiroyuki Yokoyama <hiroyuki.yokoyama.vx at renesas.com>
> Cc: Nobuhiro Iwamatsu <iwamatsu at nigauri.org>
> ---
>  board/renesas/salvator-x/salvator-x.c | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/board/renesas/salvator-x/salvator-x.c b/board/renesas/salvator-x/salvator-x.c
> index 0164306b52..d0e21ab667 100644
> --- a/board/renesas/salvator-x/salvator-x.c
> +++ b/board/renesas/salvator-x/salvator-x.c
> @@ -44,10 +44,10 @@ void s_init(void)
>         writel(0xFFFFFFFF, CPGWPR);
>  }
>
> -#define GSX_MSTP112    (1 << 12)       /* 3DG */
> -#define TMU0_MSTP125   (1 << 25)       /* secure */
> -#define TMU1_MSTP124   (1 << 24)       /* non-secure */
> -#define SCIF2_MSTP310  (1 << 10)       /* SCIF2 */
> +#define GSX_MSTP112            BIT(12) /* 3DG */
> +#define TMU0_MSTP125           BIT(25) /* secure */
> +#define TMU1_MSTP124           BIT(24) /* non-secure */
> +#define SCIF2_MSTP310          BIT(10) /* SCIF2 */
>
>  int board_early_init_f(void)
>  {
> --
> 2.11.0
>



-- 
Nobuhiro Iwamatsu
   iwamatsu at {nigauri.org / debian.org}
   GPG ID: 40AD1FA6


More information about the U-Boot mailing list