#ifdef CONFIG_SYS_I2C_INIT_BOARD
  static void board_init_i2c(void)
  {
-       gpio1 = (struct exynos4x12_gpio_part1 *)EXYNOS4X12_GPIO_PART1_BASE;
-       gpio2 = (struct exynos4x12_gpio_part2 *)EXYNOS4X12_GPIO_PART2_BASE;
 +      int err;
 +
+       gpio1 = (struct exynos4x12_gpio_part1 *)samsung_get_base_gpio_part1();
+       gpio2 = (struct exynos4x12_gpio_part2 *)samsung_get_base_gpio_part2();
  
        /* I2C_7 */
 -      s5p_gpio_direction_output(&gpio1->d0, 2, 1);
 -      s5p_gpio_direction_output(&gpio1->d0, 3, 1);
 +      err = exynos_pinmux_config(PERIPH_ID_I2C7, PINMUX_FLAG_NONE);
 +      if (err) {
 +              debug("I2C%d not configured\n", (I2C_7));
 +              return;
 +      }
  
        /* I2C_8 */
        s5p_gpio_direction_output(&gpio1->f1, 4, 1);