Closed xurtis closed 3 years ago
Given that the devices for the C2 and the C4 are the same, would it be better to put the drivers in a common location where both platforms can access them?
Given that the devices for the C2 and the C4 are the same, would it be better to put the drivers in a common location where both platforms can access them?
The driver implementations are the same, yes, only the headers are different. I could use symlinks for the the .c files for now. I don't think our build system has anything particularly nice for dealing with common devices at the moment.
@nomadeel I've updated this to only introduce new files for address & IRQ differences, everything else is referenced to the odroidc2 using symlinks.
What you could probably do is this: https://github.com/seL4/util_libs/blob/master/libethdrivers/CMakeLists.txt#L66 and https://github.com/seL4/util_libs/blob/master/libplatsupport/CMakeLists.txt#L111. But even then it's no different than the symlink solution here.
Regardless of whatever solution you take, it looks good to me so far.
This adds support for the ODroidC4. The ODroidC4 is just a beefier ODroidC2 with some bits moved around. The devices we care about here are all essentially the same.