aspeed: Add basic ast2500-specific drivers and configuration
authormaxims@google.com <maxims@google.com>
Wed, 18 Jan 2017 21:44:56 +0000 (13:44 -0800)
committerTom Rini <trini@konsulko.com>
Sat, 28 Jan 2017 19:04:29 +0000 (14:04 -0500)
commit14e4b14979574a6b31f4e3037f81d5c66a8ae7b8
tree5c61ddc9845099e27f168b628d5b9833ceee4ce1
parent4697abea62a3b02c9c346b94d7eae2e4a1c6cfd0
aspeed: Add basic ast2500-specific drivers and configuration

Clock Driver

This driver is ast2500-specific and is not compatible with earlier
versions of this chip. The differences are not that big, but they are
in somewhat random places, so making it compatible with ast2400 is not
worth the effort at the moment.

SDRAM MC driver

The driver is very ast2500-specific and is completely incompatible
with previous versions of the chip.

The memory controller is very poorly documented by Aspeed in the
datasheet, with any mention of the whole range of registers missing. The
initialization procedure has been basically taken from Aspeed SDK, where
it is implemented in assembly. Here it is rewritten in C, with very limited
understanding of what exactly it is doing.
Reviewed-by: Simon Glass <sjg@chromium.org>
14 files changed:
arch/arm/dts/ast2500-u-boot.dtsi [new file with mode: 0644]
arch/arm/dts/ast2500.dtsi [new file with mode: 0644]
arch/arm/include/asm/arch-aspeed/scu_ast2500.h [new file with mode: 0644]
arch/arm/include/asm/arch-aspeed/sdram_ast2500.h [new file with mode: 0644]
arch/arm/mach-aspeed/Kconfig
arch/arm/mach-aspeed/Makefile
arch/arm/mach-aspeed/ast2500/Kconfig [new file with mode: 0644]
arch/arm/mach-aspeed/ast2500/Makefile [new file with mode: 0644]
arch/arm/mach-aspeed/ast2500/clk_ast2500.c [new file with mode: 0644]
arch/arm/mach-aspeed/ast2500/sdram_ast2500.c [new file with mode: 0644]
drivers/clk/Makefile
drivers/clk/aspeed/Makefile [new file with mode: 0644]
drivers/clk/aspeed/clk_ast2500.c [new file with mode: 0644]
include/dt-bindings/clock/ast2500-scu.h [new file with mode: 0644]