]> git.sur5r.net Git - u-boot/blobdiff - board/overo/common.c
timer: cadence: Use live-tree functions
[u-boot] / board / overo / common.c
index bdfa5caf50b66a91a0d84a114deb6c2ff41d4adb..fc02d66d531fbc93b5dd02e23bcc403e8a6a7157 100644 (file)
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * Maintainer : Steve Sakoman <steve@sakoman.com>
  *
@@ -9,8 +10,6 @@
  *
  * (C) Copyright 2004-2008
  * Texas Instruments, <www.ti.com>
- *
- * SPDX-License-Identifier:     GPL-2.0+
  */
 #include <twl4030.h>
 #include <common.h>
@@ -18,6 +17,7 @@
 #include <asm/arch/mux.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/gpio.h>
+#include <asm/mach-types.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
@@ -310,20 +310,6 @@ int get_board_revision(void)
 {
        int revision;
 
-#ifdef CONFIG_SYS_I2C_OMAP34XX
-       unsigned char data;
-
-       /* board revisions <= R2410 connect 4030 irq_1 to gpio112             */
-       /* these boards should return a revision number of 0                  */
-       /* the code below forces a 4030 RTC irq to ensure that gpio112 is low */
-       i2c_set_bus_num(TWL4030_I2C_BUS);
-       data = 0x01;
-       i2c_write(0x4B, 0x29, 1, &data, 1);
-       data = 0x0c;
-       i2c_write(0x4B, 0x2b, 1, &data, 1);
-       i2c_read(0x4B, 0x2a, 1, &data, 1);
-#endif
-
        if (!gpio_request(112, "") &&
            !gpio_request(113, "") &&
            !gpio_request(115, "")) {