summaryrefslogtreecommitdiff
path: root/arch/arm/mach-uniphier/micro-support-card.c
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2017-01-15 14:59:06 +0900
committerMasahiro Yamada <yamada.masahiro@socionext.com>2017-01-17 09:00:40 +0900
commitef07a99b083378644bcb35e79eebd02b6cb8cd91 (patch)
tree5c56987b97b4493b2e2406f340e1e457245258c5 /arch/arm/mach-uniphier/micro-support-card.c
parent9e3bb84bd880d8be82351d689415d6e142dfab32 (diff)
downloadu-boot-imx-ef07a99b083378644bcb35e79eebd02b6cb8cd91.zip
u-boot-imx-ef07a99b083378644bcb35e79eebd02b6cb8cd91.tar.gz
u-boot-imx-ef07a99b083378644bcb35e79eebd02b6cb8cd91.tar.bz2
ARM: uniphier: refactor Support Card init code
Splitting reset assertion (support_card_reset) and deassertion (support_card_init) is not adding much value any more. Handle all the initialization of Support Card in support_card_init(), then remove support_card_reset(). Also, detect_num_flash_banks() can have a static qualifier. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'arch/arm/mach-uniphier/micro-support-card.c')
-rw-r--r--arch/arm/mach-uniphier/micro-support-card.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/arm/mach-uniphier/micro-support-card.c b/arch/arm/mach-uniphier/micro-support-card.c
index e53bcdf..80c5d97 100644
--- a/arch/arm/mach-uniphier/micro-support-card.c
+++ b/arch/arm/mach-uniphier/micro-support-card.c
@@ -25,12 +25,12 @@
* bit[0]: LAN, I2C, LED
* bit[1]: UART
*/
-void support_card_reset_deassert(void)
+static void support_card_reset_deassert(void)
{
writel(0x00010000, MICRO_SUPPORT_CARD_RESET);
}
-void support_card_reset(void)
+static void support_card_reset(void)
{
writel(0x00020003, MICRO_SUPPORT_CARD_RESET);
}
@@ -57,6 +57,7 @@ int checkboard(void)
void support_card_init(void)
{
+ support_card_reset();
/*
* After power on, we need to keep the LAN controller in reset state
* for a while. (200 usec)
@@ -157,7 +158,7 @@ static void detect_num_flash_banks(void)
debug("number of flash banks: %d\n", cfi_flash_num_flash_banks);
}
#else /* CONFIG_SYS_NO_FLASH */
-void detect_num_flash_banks(void)
+static void detect_num_flash_banks(void)
{
};
#endif /* CONFIG_SYS_NO_FLASH */