summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Nikolaus Schaller <hns@goldelico.com>2012-12-03 17:10:18 +0100
committerH. Nikolaus Schaller <hns@goldelico.com>2012-12-03 17:10:18 +0100
commitbd3bb8ef3d42137306fb74f5feafcba8f1859514 (patch)
treef0fd25b0aea047ad47be9ba0de51e037a6a757a3
parentbe4355beaced36b28499e00ec84e006ca74c45a1 (diff)
downloadbootable_bootloader_goldelico_gta04-bd3bb8ef3d42137306fb74f5feafcba8f1859514.zip
bootable_bootloader_goldelico_gta04-bd3bb8ef3d42137306fb74f5feafcba8f1859514.tar.gz
bootable_bootloader_goldelico_gta04-bd3bb8ef3d42137306fb74f5feafcba8f1859514.tar.bz2
removed enabling display power from GPS driver; reset to I1C2 when programming the TPS
-rw-r--r--u-boot/board/goldelico/gta04/gps.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/u-boot/board/goldelico/gta04/gps.c b/u-boot/board/goldelico/gta04/gps.c
index 3ac5424..9db3e31 100644
--- a/u-boot/board/goldelico/gta04/gps.c
+++ b/u-boot/board/goldelico/gta04/gps.c
@@ -46,19 +46,12 @@
#endif
+#define TWL4030_I2C_BUS (1-1) // I2C1
+
int gps_init(void)
{
- extern int get_board_revision(void);
-#define REVISION_XM 0
- if(get_board_revision() == REVISION_XM) {
- /* Set VAUX1 to 3.3V for GTA04E display board */
- twl4030_pmrecv_vsel_cfg(TWL4030_PM_RECEIVER_VAUX1_DEDICATED,
- /*TWL4030_PM_RECEIVER_VAUX1_VSEL_33*/ 0x07,
- TWL4030_PM_RECEIVER_VAUX1_DEV_GRP,
- TWL4030_PM_RECEIVER_DEV_GRP_P1);
- udelay(5000);
- }
#ifdef CONFIG_OMAP3_GTA04
+ i2c_set_bus_num(TWL4030_I2C_BUS);
/* ext. GPS Ant VSIM = 2.8 V (3.0V) */
twl4030_pmrecv_vsel_cfg(TWL4030_PM_RECEIVER_VSIM_DEDICATED,
/*TWL4030_PM_RECEIVER_VSIM_VSEL_28*/ 0x04 /* 0x05 */,