]> git.dujemihanovic.xyz Git - u-boot.git/commit
ARM: sun6i: Add support for the power reset control module found on the A31
authorOliver Schinagl <oliver@schinagl.nl>
Fri, 3 Oct 2014 12:16:24 +0000 (20:16 +0800)
committerHans de Goede <hdegoede@redhat.com>
Fri, 24 Oct 2014 07:35:37 +0000 (09:35 +0200)
commit174deb768c65969a3bcdab4dfbcdcb02abe9f09e
tree4c73883c1ca120fef1f2f26f962d0ada3560f31b
parent93ce1e9dad42e23e5938b601c36172e8baa1b675
ARM: sun6i: Add support for the power reset control module found on the A31

The A31 has a new module called PRCM, or Power, Reset Control Module.
This module controls clocks and resets for RTC block modules, and also
PLL biasing in the main clock module.

This patch adds the register definitions, and also enables the clocks
and resets for the RTC block PIO (pin controller) and P2WI (push-pull
2 wire interface) which is used to talk to the PMIC.

Signed-off-by: Oliver Schinagl <oliver@schinagl.nl>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
[wens@csie.org: spacing fixes reported by checkpatch.pl]
[wens@csie.org: Use setbits helper in PRCM init function]
[wens@csie.org: rephrase commit message to explain what the hardware
supports and what we actually enable]
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Acked-by: Ian Campbell <ijc@hellion.org.uk>
arch/arm/cpu/armv7/sunxi/Makefile
arch/arm/cpu/armv7/sunxi/prcm.c [new file with mode: 0644]
arch/arm/include/asm/arch-sunxi/prcm.h [new file with mode: 0644]