X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=board%2Fsamsung%2Ftrats%2Ftrats.c;h=24bf355ef6ec3fe543dc06737fa2144f184f92d9;hb=dc2d27ae72d4e380b658d8a0ee3c683fca141f75;hp=be5e2e271062323be1d86ec5e933f088c98b01e3;hpb=883c19a7798ec1edf050431e9d2d816163854cfb;p=platform%2Fkernel%2Fu-boot.git diff --git a/board/samsung/trats/trats.c b/board/samsung/trats/trats.c index be5e2e2..24bf355 100644 --- a/board/samsung/trats/trats.c +++ b/board/samsung/trats/trats.c @@ -1,14 +1,15 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * Copyright (C) 2011 Samsung Electronics * Heungjun Kim * Kyungmin Park * Donghwa Lee - * - * SPDX-License-Identifier: GPL-2.0+ */ #include +#include #include +#include #include #include #include @@ -17,6 +18,7 @@ #include #include #include +#include #include #include #include @@ -30,8 +32,6 @@ #include "setup.h" -DECLARE_GLOBAL_DATA_PTR; - unsigned int board_rev; #ifdef CONFIG_REVISION_TAG @@ -52,20 +52,7 @@ int exynos_init(void) return 0; } -void i2c_init_board(void) -{ -#ifndef CONFIG_DM_I2C /* TODO(maintainer): Convert to driver model */ - int err; - - /* I2C_8 -> FG */ - gpio_request(EXYNOS4_GPIO_Y40, "i2c_clk"); - gpio_request(EXYNOS4_GPIO_Y41, "i2c_data"); - gpio_direction_output(EXYNOS4_GPIO_Y40, 1); - gpio_direction_output(EXYNOS4_GPIO_Y41, 1); -#endif -} - -#ifndef CONFIG_DM_I2C /* TODO(maintainer): Convert to driver model */ +#if !CONFIG_IS_ENABLED(DM_I2C) /* TODO(maintainer): Convert to driver model */ static void trats_low_power_mode(void) { struct exynos4_clock *clk = @@ -127,7 +114,7 @@ static void trats_low_power_mode(void) int exynos_power_init(void) { -#ifndef CONFIG_DM_I2C /* TODO(maintainer): Convert to driver model */ +#if !CONFIG_IS_ENABLED(DM_I2C) /* TODO(maintainer): Convert to driver model */ int chrg, ret; struct power_battery *pb; struct pmic *p_fg, *p_chrg, *p_muic, *p_bat; @@ -306,7 +293,7 @@ int board_usb_init(int index, enum usb_init_type init) int g_dnl_board_usb_cable_connected(void) { -#ifndef CONFIG_DM_I2C /* TODO(maintainer): Convert to driver model */ +#if !CONFIG_IS_ENABLED(DM_I2C) /* TODO(maintainer): Convert to driver model */ struct pmic *muic = pmic_get("MAX8997_MUIC"); if (!muic) return 0; @@ -416,19 +403,9 @@ int exynos_early_init_f(void) return 0; } -void exynos_reset_lcd(void) -{ - gpio_request(EXYNOS4_GPIO_Y45, "lcd_reset"); - gpio_direction_output(EXYNOS4_GPIO_Y45, 1); - udelay(10000); - gpio_direction_output(EXYNOS4_GPIO_Y45, 0); - udelay(10000); - gpio_direction_output(EXYNOS4_GPIO_Y45, 1); -} - int lcd_power(void) { -#ifndef CONFIG_DM_I2C /* TODO(maintainer): Convert to driver model */ +#if !CONFIG_IS_ENABLED(DM_I2C) /* TODO(maintainer): Convert to driver model */ int ret = 0; struct pmic *p = pmic_get("MAX8997_PMIC"); if (!p) @@ -452,7 +429,7 @@ int lcd_power(void) int mipi_power(void) { -#ifndef CONFIG_DM_I2C /* TODO(maintainer): Convert to driver model */ +#if !CONFIG_IS_ENABLED(DM_I2C) /* TODO(maintainer): Convert to driver model */ int ret = 0; struct pmic *p = pmic_get("MAX8997_PMIC"); if (!p) @@ -473,16 +450,3 @@ int mipi_power(void) #endif return 0; } - -#ifdef CONFIG_LCD -void exynos_lcd_misc_init(vidinfo_t *vid) -{ -#ifdef CONFIG_TIZEN - get_tizen_logo_info(vid); -#endif -#ifdef CONFIG_S6E8AX0 - s6e8ax0_init(); - setenv("lcdinfo", "lcd=s6e8ax0"); -#endif -} -#endif