aboutsummaryrefslogtreecommitdiffstats
path: root/board/Marvell
diff options
context:
space:
mode:
authorAjay Bhargav <[ajay.bhargav@einfochips.com]>2011-10-03 14:00:57 +0530
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2011-10-27 21:56:32 +0200
commitdaa4b2f7f5e023dffa272e86b0f271b07f9813b8 (patch)
treed360aef6981ae9c8a1059c1e7ff966470085dc9f /board/Marvell
parent51100cfccac710367249515f685f1a33c95cceb4 (diff)
downloadu-boot-midas-daa4b2f7f5e023dffa272e86b0f271b07f9813b8.tar.gz
u-boot-midas-daa4b2f7f5e023dffa272e86b0f271b07f9813b8.tar.bz2
u-boot-midas-daa4b2f7f5e023dffa272e86b0f271b07f9813b8.zip
Armada100: Add SPI support for Marvell gplugD
This patch add SPI driver support for Marvell gplugD Signed-off-by: Ajay Bhargav <ajay.bhargav@einfochips.com>
Diffstat (limited to 'board/Marvell')
-rw-r--r--board/Marvell/gplugd/gplugd.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/board/Marvell/gplugd/gplugd.c b/board/Marvell/gplugd/gplugd.c
index b4f7f81583..42c8389558 100644
--- a/board/Marvell/gplugd/gplugd.c
+++ b/board/Marvell/gplugd/gplugd.c
@@ -72,6 +72,12 @@ int board_early_init_f(void)
MFP101_ETH_MDIO,
MFP103_ETH_RXDV,
+ /* SSP2 */
+ MFP107_SSP2_RXD,
+ MFP108_SSP2_TXD,
+ MFP110_SSP2_CS,
+ MFP111_SSP2_CLK,
+
MFP_EOC /*End of configuration*/
};
/* configure MFP's */
@@ -81,6 +87,9 @@ int board_early_init_f(void)
int board_init(void)
{
+ struct armd1apb2_registers *apb2_regs =
+ (struct armd1apb2_registers *)ARMD1_APBC2_BASE;
+
/* arch number of Board */
gd->bd->bi_arch_number = MACH_TYPE_SHEEVAD;
/* adress of boot parameters */
@@ -90,6 +99,9 @@ int board_init(void)
udelay(10);
/* Deassert PHY_RST# */
gpio_set_value(CONFIG_SYS_GPIO_PHY_RST, GPIO_HIGH);
+
+ /* Enable SSP2 clock */
+ writel(SSP2_APBCLK | SSP2_FNCLK, &apb2_regs->ssp2_clkrst);
return 0;
}