Skip to content
Commit 6d8abe6a authored by Nishanth Menon's avatar Nishanth Menon Committed by Tom Rini
Browse files

ARM: OMAP: Change set_pl310_ctrl_reg to be generic

set_pl310_ctrl_reg does use the Secure Monitor Call (SMC) to setup
PL310 control register, however, that is something that is generic
enough to be used for OMAP5 generation of processors as well. The only
difference being the service being invoked for the function.

So, convert the service to a macro and use a generic name (same as
that used in Linux for some consistency). While at that, also add a
data barrier which is necessary as per recommendation.

While at this, smc #0 is maintained as handcoded assembly thanks to
various gcc version eccentricities, discussion thread:
http://marc.info/?t=142542166800001&r=1&w=2



Signed-off-by: default avatarNishanth Menon <nm@ti.com>
Tested-by: default avatarMatt Porter <mporter@konsulko.com>
Reviewed-by: default avatarTom Rini <trini@konsulko.com>
parent 9b4d65f9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment