Skip to content
Commit 6c8c0f57 authored by Lukasz Majewski's avatar Lukasz Majewski Committed by Carles Cufí
Browse files

drivers: net: tc6: Add read,modify and write operation on control regs



The OA TC6 driver requires some bits manipulations in control registers.
Up till now - it has been implemented as an explicit set of read and write
registers' operations.
One good example would be the oa_tc6_set_protected_ctrl() implementation,
which used such scheme.

This patch brings dedicated function for this operation; oa_tc6_reg_rmw().
The aforementioned oa_tc6_set_protected_ctrl() function now uses it
internally.

Signed-off-by: default avatarLukasz Majewski <lukma@denx.de>
parent a757c26e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment