diff options
author | Andre Przywara <andre.przywara@arm.com> | 2020-07-06 01:40:36 +0100 |
---|---|---|
committer | Jagan Teki <jagan@amarulasolutions.com> | 2020-10-21 23:43:28 +0530 |
commit | 4fe8641260d005f24b0ecca8b21d7c51e639c647 (patch) | |
tree | cc8b8864ad7a63969aaedaf27cf67ad0d81c4990 /drivers/timer/sandbox_timer.c | |
parent | a5b2a991b388b7f42b0e264dfe2dfefc265f43ca (diff) |
net: sun8i_emac: Name magic bits and simplify read-modify-write calls
The EMAC driver contains a lot of magic bits, although the manuals
and the Linux driver have all names for them.
Define those names and use them when programming the registers.
Also this replaces a lot of readl/mask/writel operations with the much
easier-to-read setbits_le32() macro.
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Acked-by: Maxime Ripard <mripard@kernel.org>
Tested-by: Amit Singh Tomar <amittomer25@gmail.com> # Pine64+
Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
Diffstat (limited to 'drivers/timer/sandbox_timer.c')
0 files changed, 0 insertions, 0 deletions