OSDN Git Service

interconnect: Allow endpoints translation via DT
authorGeorgi Djakov <georgi.djakov@linaro.org>
Wed, 16 Jan 2019 16:10:58 +0000 (18:10 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 22 Jan 2019 12:37:25 +0000 (13:37 +0100)
commit87e3031b6fbd83ea83adf1bf9602bcce313ee787
treea4c5607d1858e2459239003d3a205fb57d7bf056
parent06b3773b5038a618c578f823d5622481e96c0b56
interconnect: Allow endpoints translation via DT

Currently we support only platform data for specifying the interconnect
endpoints. As now the endpoints are hard-coded into the consumer driver
this may lead to complications when a single driver is used by multiple
SoCs, which may have different interconnect topology.
To avoid cluttering the consumer drivers, introduce a translation function
to help us get the board specific interconnect data from device-tree.

Reviewed-by: Evan Green <evgreen@chromium.org>
Signed-off-by: Georgi Djakov <georgi.djakov@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/interconnect/core.c
include/linux/interconnect-provider.h
include/linux/interconnect.h