Primary Git Repository for the Zephyr Project. Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures.
Go to file
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
.known-issues known-issues: update rule for TCF summary line 2016-09-16 11:31:27 -07:00
arch soc: stm32f1: gpio: Fix unnecessary else statement 2016-11-18 02:03:53 +00:00
boards boards: nucleo_f103rb: define user LED 2016-11-18 09:28:54 -05:00
doc doc: Add descriptions for clock-related helper macros 2016-11-18 02:31:35 +00:00
drivers pinmux: Make default init priority be between GPIO's prio and device prio. 2016-11-18 16:43:45 +00:00
ext tinycrypt: Fix bug in CTR PRNG reseed function 2016-11-16 16:51:53 +00:00
include doc: Minor cosmetic tweaks for kernel API descriptions 2016-11-18 02:31:35 +00:00
kernel doc: Minor cosmetic tweaks for kernel API descriptions 2016-11-18 02:31:35 +00:00
lib libc: atoi() avoid fallthroughs in switch cases 2016-11-16 22:05:53 +00:00
misc kernel/arch: consolidate tTCS and TNANO definitions 2016-11-12 07:04:52 -05:00
net net: ip: fix variable type mismatching issue 2016-11-18 00:21:09 +00:00
samples samples: grove_lcd: stop the app if device binding fails 2016-11-18 02:07:14 +00:00
scripts kernel: remove last instances of tNANO in comments 2016-11-14 10:30:24 -05:00
subsys Bluetooth: Fix left-over usage of TICKS_NONE and TICKS_UNLIMITED 2016-11-12 19:27:34 +02:00
tests test: power states: fix dead code issue 2016-11-18 02:05:00 +00:00
.checkpatch.conf checkpatch: ignore CONST_STRUCT warnings 2016-11-11 22:12:22 +00:00
.gitattributes
.gitignore testcases: instruct git to ignore *log and outdir-* 2016-06-14 22:01:34 +00:00
.gitreview
.mailmap mailmap: update with new emails 2016-10-07 16:15:24 +00:00
Kbuild build: remove old kernel support 2016-11-07 11:34:18 -08:00
Kconfig
Kconfig.zephyr usb: move usb subsystem to subsys/usb and cleanup header inclusion 2016-10-31 19:21:42 +00:00
LICENSE
LICENSING.rst LICENSING: clarify licenses of imported / reused code 2016-11-11 01:36:14 +00:00
MAINTAINERS board_beetle: Add support for ARM V2M Beetle Board 2016-11-11 20:39:54 +00:00
Makefile Revert "build: Handle ALL_LIBS dependencies correctly" 2016-11-18 00:24:03 +00:00
Makefile.inc build: Document outputexports 2016-11-12 02:08:08 +00:00
defaults.tc testcases: catch more fatal kernel error messages 2016-11-11 13:21:16 +00:00
zephyr-env.sh win-build: corrects scripts_path for windows build. 2016-10-15 15:09:54 +00:00