summaryrefslogtreecommitdiff
path: root/arch/arm/mach-uniphier/boards.c
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2015-12-17 17:47:42 +0900
committerMasahiro Yamada <yamada.masahiro@socionext.com>2015-12-23 00:08:40 +0900
commit6ba60fafdabc88f45088881d36cb776484394117 (patch)
tree34696fdf117d02028ef4980985118571bbbe5ba2 /arch/arm/mach-uniphier/boards.c
parent2071f149e5d9376d392281689cf41cd165f7e19c (diff)
downloadu-boot-imx-6ba60fafdabc88f45088881d36cb776484394117.zip
u-boot-imx-6ba60fafdabc88f45088881d36cb776484394117.tar.gz
u-boot-imx-6ba60fafdabc88f45088881d36cb776484394117.tar.bz2
ARM: uniphier: call uniphier_get_board_param() without FDT blob
Move "gd->fdt_blob" from the caller to the callee so that this function can be used more easily. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'arch/arm/mach-uniphier/boards.c')
-rw-r--r--arch/arm/mach-uniphier/boards.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/arch/arm/mach-uniphier/boards.c b/arch/arm/mach-uniphier/boards.c
index 812c58f..f328143 100644
--- a/arch/arm/mach-uniphier/boards.c
+++ b/arch/arm/mach-uniphier/boards.c
@@ -4,10 +4,13 @@
* SPDX-License-Identifier: GPL-2.0+
*/
+#include <common.h>
#include <libfdt.h>
#include <linux/kernel.h>
#include <mach/init.h>
+DECLARE_GLOBAL_DATA_PTR;
+
#if defined(CONFIG_ARCH_UNIPHIER_PH1_SLD3)
static const struct uniphier_board_data ph1_sld3_data = {
.dram_ch0_base = 0x80000000,
@@ -116,12 +119,12 @@ static const struct uniphier_board_id uniphier_boards[] = {
#endif
};
-const struct uniphier_board_data *uniphier_get_board_param(const void *fdt)
+const struct uniphier_board_data *uniphier_get_board_param(void)
{
int i;
for (i = 0; i < ARRAY_SIZE(uniphier_boards); i++) {
- if (!fdt_node_check_compatible(fdt, 0,
+ if (!fdt_node_check_compatible(gd->fdt_blob, 0,
uniphier_boards[i].compatible))
return uniphier_boards[i].param;
}