mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-11-28 22:21:49 +01:00
ARM: uniphier: make BCU init into void function
These functions never fail, so no need to return a value. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
This commit is contained in:
parent
ef07a99b08
commit
e94842fa2c
@ -1,5 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2011-2015 Masahiro Yamada <yamada.masahiro@socionext.com>
|
* Copyright (C) 2011-2014 Panasonic Corporation
|
||||||
|
* Copyright (C) 2015-2016 Socionext Inc.
|
||||||
|
* Author: Masahiro Yamada <yamada.masahiro@socionext.com>
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: GPL-2.0+
|
* SPDX-License-Identifier: GPL-2.0+
|
||||||
*/
|
*/
|
||||||
@ -11,7 +13,7 @@
|
|||||||
|
|
||||||
#define ch(x) ((x) >= 32 ? 0 : (x) < 0 ? 0x11111111 : 0x11111111 << (x))
|
#define ch(x) ((x) >= 32 ? 0 : (x) < 0 ? 0x11111111 : 0x11111111 << (x))
|
||||||
|
|
||||||
int uniphier_ld4_bcu_init(const struct uniphier_board_data *bd)
|
void uniphier_ld4_bcu_init(const struct uniphier_board_data *bd)
|
||||||
{
|
{
|
||||||
int shift;
|
int shift;
|
||||||
|
|
||||||
@ -30,6 +32,4 @@ int uniphier_ld4_bcu_init(const struct uniphier_board_data *bd)
|
|||||||
|
|
||||||
shift -= 32;
|
shift -= 32;
|
||||||
writel(ch(shift), BCIPPCCHR4); /* 0xc0000000-0xdfffffff */
|
writel(ch(shift), BCIPPCCHR4); /* 0xc0000000-0xdfffffff */
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,5 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2011-2015 Masahiro Yamada <yamada.masahiro@socionext.com>
|
* Copyright (C) 2011-2014 Panasonic Corporation
|
||||||
|
* Copyright (C) 2015-2016 Socionext Inc.
|
||||||
|
* Author: Masahiro Yamada <yamada.masahiro@socionext.com>
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: GPL-2.0+
|
* SPDX-License-Identifier: GPL-2.0+
|
||||||
*/
|
*/
|
||||||
@ -11,7 +13,7 @@
|
|||||||
|
|
||||||
#define ch(x) ((x) >= 32 ? 0 : (x) < 0 ? 0x11111111 : 0x11111111 << (x))
|
#define ch(x) ((x) >= 32 ? 0 : (x) < 0 ? 0x11111111 : 0x11111111 << (x))
|
||||||
|
|
||||||
int uniphier_sld3_bcu_init(const struct uniphier_board_data *bd)
|
void uniphier_sld3_bcu_init(const struct uniphier_board_data *bd)
|
||||||
{
|
{
|
||||||
int shift;
|
int shift;
|
||||||
|
|
||||||
@ -34,6 +36,4 @@ int uniphier_sld3_bcu_init(const struct uniphier_board_data *bd)
|
|||||||
|
|
||||||
shift -= 32;
|
shift -= 32;
|
||||||
writel(ch(shift), BCIPPCCHR4); /* 0xc0000000-0xdfffffff */
|
writel(ch(shift), BCIPPCCHR4); /* 0xc0000000-0xdfffffff */
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -73,8 +73,8 @@ static inline void uniphier_ld11_sbc_init(void)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int uniphier_sld3_bcu_init(const struct uniphier_board_data *bd);
|
void uniphier_sld3_bcu_init(const struct uniphier_board_data *bd);
|
||||||
int uniphier_ld4_bcu_init(const struct uniphier_board_data *bd);
|
void uniphier_ld4_bcu_init(const struct uniphier_board_data *bd);
|
||||||
|
|
||||||
int uniphier_memconf_2ch_init(const struct uniphier_board_data *bd);
|
int uniphier_memconf_2ch_init(const struct uniphier_board_data *bd);
|
||||||
int uniphier_memconf_3ch_no_disbit_init(const struct uniphier_board_data *bd);
|
int uniphier_memconf_3ch_no_disbit_init(const struct uniphier_board_data *bd);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user