From f60196ad63b11acfde358f7be626b99d9c09a2a9 Mon Sep 17 00:00:00 2001 From: Cyril Jourdan Date: Tue, 29 Jan 2013 09:17:20 +0100 Subject: cleo/uboot/common: minor refactoring, no refs Comments refactoring, warning suppression... --- cleopatre/u-boot-1.1.6/common/cmd_spidboot.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'cleopatre/u-boot-1.1.6/common') diff --git a/cleopatre/u-boot-1.1.6/common/cmd_spidboot.c b/cleopatre/u-boot-1.1.6/common/cmd_spidboot.c index e7e1edac6d..1825cf4dba 100644 --- a/cleopatre/u-boot-1.1.6/common/cmd_spidboot.c +++ b/cleopatre/u-boot-1.1.6/common/cmd_spidboot.c @@ -217,8 +217,6 @@ static void setup_uart (uint32_t speed) */ static void setup_system_pll (uint32_t speed, uint32_t type) { - uint32_t regval = 0; - /* Make sure the value is in the bounds. */ if (speed < 96 || speed > 276) { @@ -231,8 +229,8 @@ static void setup_system_pll (uint32_t speed, uint32_t type) } /* Check image type. If we find a 200 image, we set SPLL to 96MHz. - ** Otherwise we keep the default, which is the value that should work - ** in all cases (MSE500 with ARM CLK at 444 or 492MHz). */ + * Otherwise we keep the default, which is the value that should work + * in all cases (MSE500 with ARM CLK at 444 or 492MHz). */ if (type == SPIDCOM_IMG_DESC_IMAGE_TYPE_200) speed = 96; else @@ -268,7 +266,7 @@ static void setup_system_pll (uint32_t speed, uint32_t type) *((volatile uint32_t *)(MSEPLL_SPLL_BASE + MSEPLL_SPPLL_CTRL_OFFSET)) &= ~MSEPLL_BIT(SPPLL_CTRL_PD); - *((volatile uint32_t *) RB_SPLL_BYPASS) = PLL_CMD_PLL; + *((volatile uint32_t *) RB_SPLL_BYPASS) = PLL_CMD_PLL; while (*((volatile uint32_t *) RB_SPLL_BYPASS_STAT) != PLL_IS_PLL) ; -- cgit v1.2.3