Hi,
I have an FPGA-based system controller connected over I2C to SoC running Linux.
It currently exposes only one function (besides purely information
things like sw version): selecting the boot source (via a register
that takes effect after reboot). However in the future it will
probably handle more functionalities like peripherals reset controller
and interrupt controller.

I'm wondering how I should approach this?
My initial thought was that I could put the driver in the mfd that
would load sub drivers but since it only has currently one
functionality does it even make sense?

The other thing is - how should I approach handling boot source
selection? The simplest solution is by providing appropriate sysfs
entries (e.g. syscon_bootsrc), allowing me to write the next boot
source, but I'm wondering if there is any similar driver that I could
reuse? I thought about reboot-mode but as the name suggests it's
rather about mode (bootloader, recovery) selection than boot source
selection.

Thanks for guidance,
Patryk

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Reply via email to