diff options
author | Dirk Eibach <dirk.eibach@gdsys.cc> | 2014-07-03 09:28:17 +0200 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-07-07 19:47:18 -0400 |
commit | edfe9fea7ce0a1cfde67712a67f88b601eb7803f (patch) | |
tree | 7b53af54931d4de8d678153151d961acc8513cba /board/gdsys/405ep | |
parent | 35ecf752305aadd2b048c5942f56bec813d12ad4 (diff) | |
download | u-boot-imx-edfe9fea7ce0a1cfde67712a67f88b601eb7803f.zip u-boot-imx-edfe9fea7ce0a1cfde67712a67f88b601eb7803f.tar.gz u-boot-imx-edfe9fea7ce0a1cfde67712a67f88b601eb7803f.tar.bz2 |
board: iocon: Support DisplayPort hardware
There is a new iocon hardware flavor, supporting DisplayPort finally.
Signed-off-by: Dirk Eibach <dirk.eibach@gdsys.cc>
Diffstat (limited to 'board/gdsys/405ep')
-rw-r--r-- | board/gdsys/405ep/iocon.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/board/gdsys/405ep/iocon.c b/board/gdsys/405ep/iocon.c index 7a98e41..079dfb2 100644 --- a/board/gdsys/405ep/iocon.c +++ b/board/gdsys/405ep/iocon.c @@ -15,6 +15,7 @@ #include "405ep.h" #include <gdsys_fpga.h> +#include "../common/dp501.h" #include "../common/osd.h" #include "../common/mclink.h" @@ -98,6 +99,8 @@ enum { unsigned int mclink_fpgacount; struct ihs_fpga *fpga_ptr[] = CONFIG_SYS_FPGA_PTR; +int dp501_i2c[] = CONFIG_SYS_DP501_I2C; + static int setup_88e1518(const char *bus, unsigned char addr); int fpga_set_reg(u32 fpga, u16 *reg, off_t regoff, u16 data) @@ -371,9 +374,18 @@ int last_stage_init(void) u16 fpga_features; int feature_carrier_speed = fpga_features & (1<<4); bool ch0_rgmii2_present = false; + int old_bus = i2c_get_bus_num(); FPGA_GET_REG(0, fpga_features, &fpga_features); + /* Turn on Parade DP501 */ + pca9698_direction_output(0x20, 9, 1); + udelay(500000); + + i2c_set_bus_num(dp501_i2c[0]); + dp501_powerup(0x08); + i2c_set_bus_num(old_bus); + if (!legacy) ch0_rgmii2_present = !pca9698_get_value(0x20, 30); |