]> git.karo-electronics.de Git - linux-beck.git/commit
[ARM] 5287/2: [AT91] Configuration of Static Memory Controller
authorAndrew Victor <linux@maxim.org.za>
Mon, 13 Oct 2008 19:28:13 +0000 (20:28 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 1 Dec 2008 17:18:08 +0000 (17:18 +0000)
commit6781002bec5237ee8ac1e1daeb0ba976e780a884
tree4072b3d6f46c3f48db973aefec5e21cc724f7d9a
parent37efe6427dd50e889473fb3c7fcec02dbbd098eb
[ARM] 5287/2: [AT91] Configuration of Static Memory Controller

Add a structure 'sam9_smc_config' and function sam9_smc_configure() to
allow the board-specific files to specify the configuration of the
Static Memory Controller per chip-select.  This allows the board file
to specify timings for NAND flash, NOR flash or other external
peripherals.

This functionality can be used for all the SAM9 and CAP9 processors.
(the AT91RM9200 has a different memory-controller)
This patch is based on similar code in the AVR32 architecture.

Signed-off-by: Andrew Victor <linux@maxim.org.za>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mach-at91/Makefile
arch/arm/mach-at91/sam9_smc.c [new file with mode: 0644]
arch/arm/mach-at91/sam9_smc.h [new file with mode: 0644]