summaryrefslogtreecommitdiff
path: root/include/stdio_dev.h
diff options
context:
space:
mode:
authorTim James <[email protected]>2015-03-25 11:55:15 +0000
committerJoe Hershberger <[email protected]>2015-04-20 17:57:12 -0500
commita095f047ebf3ee098e7b84197d765029e0797dd3 (patch)
treea1e09c4991b65ba57a52a2b3ff8ca2560a4df9f3 /include/stdio_dev.h
parenta60de1ee7fc49480b90996eef7bbeb66e67a7808 (diff)
mii: add read-modify-write option to mii command
When accessing PHY registers it is often desirable to only update selected bits, so it is necessary to first read the current value before writing back an modified value with the relevant bits updated. To simplify this and to allow such operations to be incorporated into simple shell scripts propose adding a 'modify' option to the existing mii command, which takes a mask indicating the bits to be updated in addition to a data value containing the new bits, ie, <updated> = (<data> & <mask>) | (<current> & ~<mask>). Signed-off-by: Tim <[email protected]> Cc: Nobuhiro Iwamatsu <[email protected]> Cc: Joe Hershberger <[email protected]> Cc: Jeroen Hofstee <[email protected]> Cc: Tom Rini <[email protected]> Cc: Tim <[email protected]>
Diffstat (limited to 'include/stdio_dev.h')
0 files changed, 0 insertions, 0 deletions