]> git.baikalelectronics.ru Git - uboot.git/commit
serial: uniphier: use register macros instead of structure
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Thu, 9 Jul 2020 16:12:06 +0000 (01:12 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Sat, 11 Jul 2020 12:30:21 +0000 (21:30 +0900)
commitc5687665128f639737b153422c99d9e1a35ff592
treec14ec520fcdb5d89e38a91256f195b9b11a7d40b
parent4debb31c298f5de6f657cebd83a276862890e46f
serial: uniphier: use register macros instead of structure

After all, I am not a big fan of using a structure to represent the
hardware register map.

You do not need to know the entire register map.

Add only necessary register macros.

Use FIELD_PREP() instead of maintaining a pair of shift and mask.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
drivers/serial/serial_uniphier.c