[Milkymist-devel] Capabilities register
Sébastien Bourdeauducq
sebastien.bourdeauducq at lekernel.net
Sat Mar 20 16:03:47 PDT 2010
Hi Takeshi,
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
More information about the Devel
mailing list