diff options
author | Alexandru Gagniuc <mr.nuke.me@gmail.com> | 2013-12-24 16:48:03 -0500 |
---|---|---|
committer | Alexandru Gagniuc <mr.nuke.me@gmail.com> | 2014-01-08 23:03:34 +0100 |
commit | bc30b2b225a31f7fcf4e25014a73739641a8df71 (patch) | |
tree | a0dc179a5392d3432822bbc12642a601f7a8f5f8 /src/drivers/i2c | |
parent | 8226dbbf1d85be662ab6d427ca80c305cf0b719d (diff) |
cpu/allwinner/a10: Refactor API for gating clocks to peripherals
Rather than having to track which bit in which register should be
cleared or set to gate or ungate the clock to a certain peripheral,
provide a simplified enum which encodes the register and bit. This
change comes with a function which decodes the enum and gates/ungates
the clock.
This also removes the register-dependent bitmasks for APB0 and APB1
gating registers.
Change-Id: Ib3ca16e54eb37eadc3ceb88f4ccc497829ac34bc
Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
Reviewed-on: http://review.coreboot.org/4571
Tested-by: build bot (Jenkins)
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'src/drivers/i2c')
0 files changed, 0 insertions, 0 deletions