]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
arm: socfpga: Add socfpga_spim_enable() to reset_manager.c
authorStefan Roese <sr@denx.de>
Fri, 7 Nov 2014 12:50:30 +0000 (13:50 +0100)
committerMarek Vasut <marex@denx.de>
Fri, 7 Nov 2014 15:09:10 +0000 (16:09 +0100)
commita877bec3ecd7961211a59b2c130e055e0f771976
treeb4a94f10ecdcb027435a470c2c6232d9825ac39e
parentd2bb937db911b19ed38dd4e5a30b5bf4f2e5a951
arm: socfpga: Add socfpga_spim_enable() to reset_manager.c

This function will be needed by the upcoming Designware master SPI
driver. As the SPI master controller is held in reset by the current
Preloader implementation. So we need to release the reset for the
driver to communicate with the controller.

This function is called from arch_early_init_r() if the SPI
driver is enabled.

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Chin Liang See <clsee@altera.com>
Cc: Dinh Nguyen <dinguyen@altera.com>
Cc: Vince Bridgers <vbridger@altera.com>
Cc: Marek Vasut <marex@denx.de>
Cc: Pavel Machek <pavel@denx.de>
arch/arm/cpu/armv7/socfpga/misc.c
arch/arm/cpu/armv7/socfpga/reset_manager.c
arch/arm/include/asm/arch-socfpga/reset_manager.h