]> git.sur5r.net Git - u-boot/blobdiff - board/samsung/universal_c210/universal.c
Fix GCC format-security errors and convert sprintfs.
[u-boot] / board / samsung / universal_c210 / universal.c
index 22b08497cb57c1091b1eb82aeed7b58b73c18857..426ae14af26db0e19da90e0a75201095d802f3b7 100644 (file)
@@ -17,7 +17,7 @@
 #include <ld9040.h>
 #include <power/pmic.h>
 #include <usb.h>
-#include <usb/s3c_udc.h>
+#include <usb/dwc2_udc.h>
 #include <asm/arch/cpu.h>
 #include <power/max8998_pmic.h>
 #include <libtizen.h>
@@ -179,7 +179,7 @@ static int s5pc210_phy_control(int on)
        return 0;
 }
 
-struct s3c_plat_otg_data s5pc210_otg_data = {
+struct dwc2_plat_otg_data s5pc210_otg_data = {
        .phy_control = s5pc210_phy_control,
        .regs_phy = EXYNOS4_USBPHY_BASE,
        .regs_otg = EXYNOS4_USBOTG_BASE,
@@ -191,7 +191,7 @@ struct s3c_plat_otg_data s5pc210_otg_data = {
 int board_usb_init(int index, enum usb_init_type init)
 {
        debug("USB_udc_probe\n");
-       return s3c_udc_probe(&s5pc210_otg_data);
+       return dwc2_udc_probe(&s5pc210_otg_data);
 }
 
 int exynos_early_init_f(void)
@@ -328,6 +328,8 @@ void exynos_enable_ldo(unsigned int onoff)
 
 int exynos_init(void)
 {
+       char buf[16];
+
        gd->bd->bi_arch_number = MACH_TYPE_UNIVERSAL_C210;
 
        switch (get_hwrev()) {
@@ -352,6 +354,13 @@ int exynos_init(void)
                break;
        }
 
+       /* Request soft I2C gpios */
+       strcpy(buf, "soft_i2c_scl");
+       gpio_request(CONFIG_SOFT_I2C_GPIO_SCL, buf);
+
+       strcpy(buf, "soft_i2c_sda");
+       gpio_request(CONFIG_SOFT_I2C_GPIO_SDA, buf);
+
        check_hw_revision();
        printf("HW Revision:\t0x%x\n", board_rev);