Skip to content
Commit f70de486 authored by Sonic Zhang's avatar Sonic Zhang Committed by Steven Miao
Browse files

Blackfin: bfin_gpio: Use proper mask for comparing pfunc



For BF537_FAMILY, when offset != 1, the mask is 1.
Thus add proper mask for comparing pfunc with function.

Also has small refactor for better readability.
In portmux_setup(), it looks odd having "pmux &= ~(3 << 1);"
while in current code we do pmux |= (function << offset);.

Signed-off-by: default avatarAxel Lin <axel.lin@ingics.com>
Signed-off-by: default avatarSonic Zhang <sonic.zhang@analog.com>
parent 5e01dc7b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment