system76 / ec

System76 Open Source Embedded Controller
GNU General Public License v3.0
318 stars 72 forks source link

Initialize GPIOs from static config table #475

Open crawfxrd opened 2 months ago

crawfxrd commented 2 months ago

gpio_init is now the same for every board, and only requires an array that defines the init data for GPIOs.

The idea is to be able to support tooling for generating and validating the GPIO configs.