Red Hat Bugzilla – Bug 23226
Features of generic driver (template)
Last modified: 2007-04-18 12:30:28 EDT
Mutiple parts of same type but with gaps between them in address space.
1: If MMU available, remap so they appear as one big part
2: If no MMU, threat as separate regions - can't program linear code/data
into the parts anyway, so no reason to make the driver clever enough
to handle the gaps.
The driver knows the part size and the number of interleaved parts,
and can from that determine the AND-mask necessary to compute address
zero of the parts (necessary for some commands).
Even parts that do not have software programmable write-protection should
allow for the platform header to specify a macro that handles write-
Some parts need a delay in the relocated program code - where it cannot
rely on the HAL_US_DELAY function (which may be implemented by a function
which is attempted called with a relative branch).
Drivers should support interleaving for various bus widths.
This bug has moved to http://bugs.ecos.sourceware.org/show_bug.cgi?id>23226