[Milkymist-devel] Capabilities register
Takeshi MATSUYA
macchan at sfc.wide.ad.jp
Sat Mar 20 17:40:52 PDT 2010
Hi, Sébastien
On 2010/03/21, at 8:03, Sébastien Bourdeauducq wrote:
> I saw you were struggling with getting the right peripherals detected by
> Linux.
>
> To do that cleanly, I have added a "capabilities" register to the system.
> Register 0x38 from sysctl is now a bitmask that tells you what is inside the
> currently loaded bitstream. The value of the register is automatically derived
> from setup.v during synthesis. Bits are defined here:
> http://github.com/lekernel/milkymist/blob/master/software/include/hw/capabilities.h
>
> Please use this for probing peripherals in Linux. I also think the "board"
> kernel configuration option should be removed, better probe it at runtime
> using the ID register from sysctl (0x3c).
>
> Sébastien
It is a useful function.
Thanks. :)
Takeshi
More information about the Devel
mailing list