diff options
author | Martin Blumenstingl <martin.blumenstingl@googlemail.com> | 2018-11-18 22:23:59 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-11-18 16:16:20 -0800 |
commit | f2f1a847e74f61fb151e0f6f689a8485345ed1fc (patch) | |
tree | 333df68449a77286cea4686ce56adda261bbcb92 /.clang-format | |
parent | f7e290fbeb336421ba6237548b693c9afb4d75fa (diff) |
net: phy: icplus: allow configuring the interrupt function on IP101GR
The IP101GR is a 32-pin QFN package variant of the IP101G/IP101GA
Ethernet PHY. Due to it's limited amount of pins the RXER (receive
error) and INTR32 (interrupt) functions share pin 21.
By default the PHY is configured to output the "receive error" status on
pin 21. Depending on the board layout and requirements we may want to
re-configure the PHY to output the interrupt signal there.
The mode of pin 21 can be configured in the "Digital I/O Specific
Control Register" (register 29), bit 2:
- 0 = RXER function
- 1 = INTR(32) function
Depending on the devicetree configuration we will now:
- change the mode to either ther RXER or INTR32 function
- keep the SEL_INTR32 value set by the bootloader (default) if no
configuration is provided (to ensure that we're not breaking existing
boards)
- error out if conflicting configuration is given (RXER and INTR32 mode
are enabled at the same time)
Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '.clang-format')
0 files changed, 0 insertions, 0 deletions