Jon Medhurst (Tixy) <tixy@...>
On Wed, 2017-01-18 at 23:15 +0000, Liu, Baohong wrote:
[...]From: Jon Medhurst (Tixy) [mailto:tixy(a)linaro.org]
So, when I add DMA support to my uart, everyone project that uses aThe DMA driver should have configuration entries for setting these parameters and
UART, or device attached through a UART, needs know the magic device
specific configuration required and add it their prj.conf?
E.g, to run the Zephyr UART tests I edit tests/drivers/uart/prj.conf
to add the DMA slot, handshaking polarity, etc., that are used for the
UART + DMA driver combination on the device I'm interested in?
Does prj.conf support #includes? That way we could at least provide an
include files per SoC for people to include to get all this config. Then
again, if we did that, why not just add the config direct to the SoC
defconfig? Or even better, just add it to SoC headers files like IRQ
assignments and device addresses? At least that way this SoC specific
knowledge is more together in one place. Currently it's spread between
SoC and board files, and leaking into device drivers, and now starting
to push some of it into project files as well seems like completely the
wrong direction to take.