From: =?UTF-8?q?Andreas=20Bie=C3=9Fmann?= Date: Thu, 18 Feb 2016 22:27:18 +0100 Subject: [U-Boot] [U-Boot, v4, 2/5] ARM: at91: clock: add a new file to handle clock In-Reply-To: <1455830855-43683-1-git-send-email-andreas.devel@googlemail.com> References: <1455830855-43683-1-git-send-email-andreas.devel@googlemail.com> Message-ID: <1455830855-43683-2-git-send-email-andreas.devel@googlemail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Wenyou Yang, Wenyou Yang writes: >To reduce the duplicated code, add a new file to accommodate >the peripheral's and system's clock handle code, shared with >the SoCs with different ARM core. > >Signed-off-by: Wenyou Yang >Tested-by: Heiko Schocher >Reviewed-by: Andreas Bie?mann >--- > >Changes in v4: > - due to PMC_PECR1 avaiable when has CPU_HAS_PCR, remove > &pmc->pcer1 and &pmc->pcdr1. > >Changes in v3: > - fix incorrectly used the indicator '&' to achieve the variable > pointer of pmc->pcer and pmc->pcdr. > >Changes in v2: None > > arch/arm/mach-at91/Makefile | 1 + > arch/arm/mach-at91/arm926ejs/clock.c | 7 ---- > arch/arm/mach-at91/armv7/clock.c | 26 ------------- > arch/arm/mach-at91/clock.c | 66 +++++++++++++++++++++++++++++++++ > arch/arm/mach-at91/include/mach/clk.h | 2 + > 5 files changed, 69 insertions(+), 33 deletions(-) > create mode 100644 arch/arm/mach-at91/clock.c applied to u-boot-atmel/master, thanks! Best regards, Andreas Bie?mann