
1 Oct
2015
1 Oct
'15
10:11 p.m.
Dear Fabio,
In message 1443727970-10347-1-git-send-email-festevam@gmail.com you wrote:
Unlike i.MX, LS1021 uses big-endian ordering for the watchdog controller, which means we cannot use the little endian accessors.
...
- clrsetbits_le16(&wdog->wcr, 0, WCR_WDE);
- writew(WCR_WDE, &wdog->wcr);
I'm sorry, but I fail to understand how writew() can be better than another I/O accessor. Neither of these has the capability to detect the endianess of this specific register interface ?
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
As far as the laws of mathematics refer to reality, they are not cer-
tain, and as far as they are certain, they do not refer to reality.
-- Albert Einstein