On Wed, Apr 12, 2017 at 08:30:31AM +0000, Olivier MOYSAN wrote:
On 04/11/2017 11:10 PM, Mark Brown wrote:
That sounds wrong, I'd expect this wiring to be done statically as part of the .dtsi for the SoC (or just grabbed as needed at runtime if things are flexbile enough) rather than being a configuration thing done per board... I had thought that this was configuration reflecting different ways of taping out the IP with different feature sets, is that not the case?
This configuration is board dependent. The IP may be used as rx, tx or fd depending on board. So I think it can make sense to have a DMA configuration linked to board, and to set IP mode accordingly.
It is totally normal to just not use one direction in a given system, we don't normally need to do anything special to handle things. I'm a bit confused as to what's different here and needs configuring?