Home
last modified time | relevance | path

Searched hist:"440147639 ac79f699a4eb9811d0bc39d3cc815f4" (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/drivers/soc/mediatek/
H A Dmtk-mmsys.h440147639ac79f699a4eb9811d0bc39d3cc815f4 Wed Mar 17 13:17:10 CDT 2021 CK Hu <ck.hu@mediatek.com> soc: mediatek: mmsys: Use an array for setting the routing registers

Actually, setting the registers for routing, use multiple 'if-else' for different
routes, but this code would be more and more complicated while we
support more and more SoCs. Change that and use a table per SoC so the
code will be more portable and clear.

Signed-off-by: CK Hu <ck.hu@mediatek.com>
Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Link: https://lore.kernel.org/r/20210317181711.795245-3-enric.balletbo@collabora.com
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
H A Dmtk-mmsys.cdiff 440147639ac79f699a4eb9811d0bc39d3cc815f4 Wed Mar 17 13:17:10 CDT 2021 CK Hu <ck.hu@mediatek.com> soc: mediatek: mmsys: Use an array for setting the routing registers

Actually, setting the registers for routing, use multiple 'if-else' for different
routes, but this code would be more and more complicated while we
support more and more SoCs. Change that and use a table per SoC so the
code will be more portable and clear.

Signed-off-by: CK Hu <ck.hu@mediatek.com>
Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Link: https://lore.kernel.org/r/20210317181711.795245-3-enric.balletbo@collabora.com
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>