Home
last modified time | relevance | path

Searched hist:"9 a28dbc4fc1ac3a923ecbc149236432e86a1d794" (Results 1 – 3 of 3) sorted by relevance

/optee_os/core/arch/arm/plat-sam/
H A Dsama5d2.h9a28dbc4fc1ac3a923ecbc149236432e86a1d794 Mon Dec 19 15:46:20 UTC 2022 Clément Léger <clement.leger@bootlin.com> plat-sam: matrix: add matrix_dt_get_id() to parse matrix id from dt

Rather than using hardcoded values for matrix identifier in drivers
themselves, (which might change in future hardware SoC), add
matrix_dt_get_id() function which allows to retrieve the ID based on a
devite-tree node reg property. This property contains the address of the
peripheral and thus can be used to match the address with an identifier.
This is also useful for peripheral which have multiple instances and thus
id is not the same for all of them.

Signed-off-by: Clément Léger <clement.leger@bootlin.com>
Acked-by: Jerome Forissier <jerome.forissier@linaro.org>
H A Dmatrix.h9a28dbc4fc1ac3a923ecbc149236432e86a1d794 Mon Dec 19 15:46:20 UTC 2022 Clément Léger <clement.leger@bootlin.com> plat-sam: matrix: add matrix_dt_get_id() to parse matrix id from dt

Rather than using hardcoded values for matrix identifier in drivers
themselves, (which might change in future hardware SoC), add
matrix_dt_get_id() function which allows to retrieve the ID based on a
devite-tree node reg property. This property contains the address of the
peripheral and thus can be used to match the address with an identifier.
This is also useful for peripheral which have multiple instances and thus
id is not the same for all of them.

Signed-off-by: Clément Léger <clement.leger@bootlin.com>
Acked-by: Jerome Forissier <jerome.forissier@linaro.org>
H A Dmatrix.c9a28dbc4fc1ac3a923ecbc149236432e86a1d794 Mon Dec 19 15:46:20 UTC 2022 Clément Léger <clement.leger@bootlin.com> plat-sam: matrix: add matrix_dt_get_id() to parse matrix id from dt

Rather than using hardcoded values for matrix identifier in drivers
themselves, (which might change in future hardware SoC), add
matrix_dt_get_id() function which allows to retrieve the ID based on a
devite-tree node reg property. This property contains the address of the
peripheral and thus can be used to match the address with an identifier.
This is also useful for peripheral which have multiple instances and thus
id is not the same for all of them.

Signed-off-by: Clément Léger <clement.leger@bootlin.com>
Acked-by: Jerome Forissier <jerome.forissier@linaro.org>