[U-Boot] a question about the source of uboot(for armv8).
水中有泪
kasuusyou at qq.com
Wed Feb 15 11:57:04 UTC 2017
Hi Haikun Wang,
I have a question about the source of uboot.
http://lists.denx.de/pipermail/u-boot/2015-June/217446.html
>u32 __iomem *dcfg_ccsr = (u32 __iomem *)DCFG_BASE;
>val = in_le32(dcfg_ccsr + DCFG_RCWSR13 / 4);
The question is this,
why does DCFG_RCWSR13 device by 4.
(1)dcfg_ccsr is the base address of Dcfg_ccsr
(2)DCFG_RCWSR13 is the offset of Dcfg_rcwsr13
So I think the next is right
>val = in_le32(dcfg_ccsr + DCFG_RCWSR13);
Pardon me my clumsiness.
More information about the U-Boot
mailing list