]> git.sur5r.net Git - u-boot/blobdiff - board/samsung/goni/goni.c
arm: remove unneeded symbol offsets and _TEXT_BASE
[u-boot] / board / samsung / goni / goni.c
index 4ddff04f41d62824830119e5f33eb610e3ba4408..61b9ece0387ee3b0916aefaefb4d59890817c689 100644 (file)
 #include <usb/s3c_udc.h>
 #include <asm/arch/cpu.h>
 #include <power/max8998_pmic.h>
+#include <samsung/misc.h>
+
 DECLARE_GLOBAL_DATA_PTR;
 
 static struct s5pc110_gpio *s5pc110_gpio;
 
+u32 get_board_rev(void)
+{
+       return 0;
+}
+
 int board_init(void)
 {
        /* Set Initial global variables */
@@ -32,7 +39,11 @@ int power_init_board(void)
 {
        int ret;
 
-       ret = pmic_init(I2C_5);
+       /*
+        * For PMIC the I2C bus is named as I2C5, but it is connected
+        * to logical I2C adapter 0
+        */
+       ret = pmic_init(I2C_0);
        if (ret)
                return ret;
 
@@ -169,3 +180,13 @@ struct s3c_plat_otg_data s5pc110_otg_data = {
        .usb_phy_ctrl = S5PC110_USB_PHY_CONTROL,
 };
 #endif
+
+#ifdef CONFIG_MISC_INIT_R
+int misc_init_r(void)
+{
+#ifdef CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG
+       set_board_info();
+#endif
+       return 0;
+}
+#endif