From d91cf2b09bb7cd9c2d9d96fea4dbb00cc0946e4f Mon Sep 17 00:00:00 2001 From: Seung-Woo Kim Date: Wed, 26 Jul 2017 10:53:06 +0900 Subject: [PATCH] exynos4-dt: fix build error caused by rebase There are build errors, caused by rebase, with not defiend macro and not matched function definition with specific config options. Replace with proper macro and add proper build macro check for pmic fuinctions to fix the build errors. Change-Id: Id5e2cf5b87681af22cc362c67262545457130280 Signed-off-by: Seung-Woo Kim --- board/samsung/common/exynos4-dt.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/board/samsung/common/exynos4-dt.c b/board/samsung/common/exynos4-dt.c index 84f7fa8..bb4cdd7 100644 --- a/board/samsung/common/exynos4-dt.c +++ b/board/samsung/common/exynos4-dt.c @@ -875,11 +875,12 @@ struct dwc2_plat_otg_data s5pc210_otg_data = { int board_usb_init(int index, enum usb_init_type init) { #ifdef CONFIG_CMD_USB +#ifndef CONFIG_DM_I2C /* TODO(maintainer): Convert to driver model */ struct pmic *p_pmic; /* Set Ref freq 0 => 24MHz, 1 => 26MHz*/ /* Odroid Us have it at 24MHz, Odroid Xs at 26MHz */ - if (gd->board_type == ODROID_TYPE_U3) + if (gd->board_type == BOARD_TYPE_ODROID_U3) gpio_direction_output(EXYNOS4X12_GPIO_X30, 0); else gpio_direction_output(EXYNOS4X12_GPIO_X30, 1); @@ -898,7 +899,7 @@ int board_usb_init(int index, enum usb_init_type init) max77686_set_buck_voltage(p_pmic, 8, 750000); max77686_set_buck_voltage(p_pmic, 8, 3300000); } - +#endif /* !CONFIG_DM_I2C */ #endif debug("USB_udc_probe\n"); -- 2.7.4