From 48207aef500e177350cb2fa3f9732cb8d553d6b5 Mon Sep 17 00:00:00 2001 From: Nathael Pajani Date: Thu, 24 Apr 2014 18:32:33 +0200 Subject: [PATCH] One more part of multiple SPI busses support (not for LPC1224) --- drivers/ssp.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/ssp.c b/drivers/ssp.c index 98f7c83..37d3f54 100644 --- a/drivers/ssp.c +++ b/drivers/ssp.c @@ -281,7 +281,11 @@ uint32_t ssp_clk_on(uint8_t ssp_num, uint32_t rate) } while ((prescale > 0xFF) || (pclk_div > 0xFF)); /* Activate the SSP clock (maybe divide main clock) */ - sys_ctrl->ssp0_clk_div = pclk_div; + switch (ssp_num) { + case 0 : + sys_ctrl->ssp0_clk_div = pclk_div; + break; + } /* Set the prescaler */ ssp_regs->clk_prescale = prescale; -- 2.43.0