Skip to content
Commit 96da6f22 authored by Ravik Hasija's avatar Ravik Hasija Committed by Christopher Friedt
Browse files

driver: dw: Use base_addr variable to set dir.



Change Summary:
Update Base addr to set direction to use Aligned IP base address instead
of Port Base Address. Port Base Address + offset to direction register
will set incorrect value for Port B,C & D. For ex: In cases when more than
1 port is configured on the same IP, the DTS node for port B will start
at offset 0xC. Calculating the port using Port Base will yield offset of
PORTB DIR register which is at offset 0x10 from Aligned Base, and as a
result will result in setting DIR register of PORTC instead.

Signed-off-by: default avatarRavik Hasija <ravikh@fb.com>
parent 7ba1925d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment