zephyr/drivers
Paul Sokolovsky 6b2a1af1cd pinmux: Make default init priority be between GPIO's prio and device prio.
Pinmux driver almost certainly should be initialized before the
rest of hardware devices (which may need specific pins already
configured for them), and usually after generic GPIO drivers.
Thus, its priority should be between KERNEL_INIT_PRIORITY_DEFAULT
(default 40) and KERNEL_INIT_PRIORITY_DEVICE (default 50). Thus,
we set PINMUX_INIT_PRIORITY to 45.

There are exceptions to the rule above for particular boards. For
example, BOARD=galileo has GPIO and pinmuxer on I2C bus and thus
overrides PINMUX_INIT_PRIORITY to be much higher. Note that while
PINMUX_INIT_PRIORITY was defined previously (at 60), it was used
only for galileo, which overrides it anyway.

This fix was prompted by investigation why eth_ksdk driver was
non-functional after kernel priorities re-hashing: both eth_ksdk
and pinmux used the same priority, and eth_ksdk happened to run
before pinmux. While bumping eth_ksdk priority would help in the
particular case, the same would likely reoccur with other drivers
like I2C, SPI, etc.

Change-Id: Ie5ca3135c1ee2fe8d9cf48d5c12e62eac63487f7
Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
2016-11-18 16:43:45 +00:00
..
adc adc: Cleanup ti 108s102 adc driver 2016-11-16 11:26:54 -06:00
aio drivers: aio: update to unified kernel 2016-11-10 23:16:21 +00:00
bluetooth Bluetooth: Fix left-over usage of TICKS_NONE and TICKS_UNLIMITED 2016-11-12 19:27:34 +02:00
clock_control kernel: deprecate old init levels 2016-11-09 17:59:44 +00:00
console console: Fix unreachable code condition 2016-11-16 13:30:11 +00:00
counter drivers: counter: update to unified kernel 2016-11-09 20:27:42 +00:00
dma drivers: dma: update to unified kernel 2016-11-09 18:38:57 -08:00
ethernet kernel: deprecate old init levels 2016-11-09 17:59:44 +00:00
flash drivers: spi_flash: add erase boundary check and correct an error 2016-11-12 01:37:00 +00:00
gpio drivers: gpio_dw: Remove contradictory if statement evaluation 2016-11-18 02:04:36 +00:00
grove kernel: deprecate old init levels 2016-11-09 17:59:44 +00:00
i2c i2c_qmsi_ss: Use qm_ss_i2c_save/restore_context APIs 2016-11-11 23:33:20 +00:00
ieee802154 drivers: cc2520: fix variable type mismatching issue 2016-11-18 00:21:32 +00:00
interrupt_controller kernel/arch: consolidate tTCS and TNANO definitions 2016-11-12 07:04:52 -05:00
ipm kernel: deprecate old init levels 2016-11-09 17:59:44 +00:00
pci drivers: pci: fix incorrect printk() usage 2016-08-28 07:47:28 -04:00
pinmux pinmux: Make default init priority be between GPIO's prio and device prio. 2016-11-18 16:43:45 +00:00
pwm drivers: pwm: Fix uninitialized pointer 2016-11-16 12:37:07 +00:00
random drivers:config: Fix help text format. 2016-10-28 12:35:19 +00:00
rtc drivers: rtc: fix enum type mismatching issue 2016-11-17 23:39:25 +00:00
sensor sensor: Fix Unchecked return value in bma280 driver 2016-11-16 13:30:11 +00:00
serial serial: Add driver for CMSDK (Cortex-M System Design Kit) APB UART 2016-11-11 20:39:54 +00:00
shared_irq kernel: deprecate old init levels 2016-11-09 17:59:44 +00:00
spi drivers spi_ss: Fix setting of wrong config for SPI 1 2016-11-16 14:05:54 +00:00
timer kernel/arch: consolidate tTCS and TNANO definitions 2016-11-12 07:04:52 -05:00
usb drivers: usb: update to unified kernel 2016-11-11 02:48:20 +00:00
watchdog drivers: wdt: update to unified kernel 2016-11-10 05:12:19 +00:00
Kconfig drivers: reverting Kconfig/Makefile changes for slip 2016-07-27 16:26:51 +00:00
Makefile drivers: reverting Kconfig/Makefile changes for slip 2016-07-27 16:26:51 +00:00