Menu

#41 Generic configuration mechanism for drivers etc.

0.x
open
UrJTAG (99)
5
2017-02-12
2008-02-12
No

We strongly need some generic mechanism to configure cable, bus and flash drivers.

Just some things to "configure":

- cable details, USB PID/VID, pin mappings and frequency
- bus driver pin mappings etc.
- bus areas with regard to size, width, and endianness
- flash chip details (as available per CFI)

And some ways "how" to configure:

- change values of existing items (e.g. frequency)
- add new values (e.g. bus areas, flash regions)
- delete values (-"-)

There are several possible ways to implement such mechanisms. One way would be to have "add/del/set/get/listoptions" functions in the drivers.

Another way would be to provide a service for drivers to have their configuration maintained by some central instance, to which specifications for values (name and range) can be given, from which option values can be read, and which can trigger callbacks in the driver if values changed.

Discussion

  • Kolja Waschk

    Kolja Waschk - 2008-03-25

    Logged In: YES
    user_id=478715
    Originator: YES

    The rationale behind the idea of builing this into UrJTAG instead of using the existing getenv/setenv is to enable selection of variables by number, not just by name (for more efficient transmission of updates over communication links).

     
  • Kolja Waschk

    Kolja Waschk - 2008-03-30
    • milestone: --> UrJTAG 0.x
    • assigned_to: nobody --> kawk
     

Log in to post a comment.