Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Revert "HDMI_DDC I2C2 bus uses GPIO based bitbanging"
This reverts commit 98b6c57.

The hardware offers us I2C capabilities directly. Why drive it
as a GPIO and use CPU bit-banging to convert it back to I2C?
http://forum.odroid.com/viewtopic.php?f=8&t=3850
  • Loading branch information
dsd committed Feb 24, 2014
commit f0e64777610641084343874b0a8a1d7f06cc828e
2 changes: 2 additions & 0 deletions arch/arm/mach-exynos/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,8 @@ config MACH_HKDK4412
select EXYNOS_DEV_DMA
select EXYNOS_DEV_DRM
select EXYNOS_DEV_SYSMMU
select EXYNOS4_SETUP_I2C2
select S3C_DEV_I2C2
select S3C_DEV_HSMMC
select S3C_DEV_HSMMC1
select S3C_DEV_USB_HSOTG
Expand Down
21 changes: 2 additions & 19 deletions arch/arm/mach-exynos/mach-hkdk4412.c
Original file line number Diff line number Diff line change
Expand Up @@ -158,24 +158,6 @@ static struct i2c_board_info hkdk4412_i2c_devs1[] __initdata = {
#endif
};

/* I2C2 bus GPIO-Bitbanging */
#define GPIO_I2C2_SDA EXYNOS4_GPA0(6)
#define GPIO_I2C2_SCL EXYNOS4_GPA0(7)
static struct i2c_gpio_platform_data i2c2_gpio_platdata = {
.sda_pin = GPIO_I2C2_SDA,
.scl_pin = GPIO_I2C2_SCL,
.udelay = 5,
.sda_is_open_drain = 0,
.scl_is_open_drain = 0,
.scl_is_output_only = 0
};

static struct platform_device gpio_device_i2c2 = {
.name = "i2c-gpio",
.id = 2, // adepter number
.dev.platform_data = &i2c2_gpio_platdata,
};

/* Odroid-O2 schematics show the DDC of the remote HDMI device connected to
* I2C2. HDMI specs state that DDC always sits at bus address 0x50. */
static struct i2c_board_info hkdk4412_i2c_devs2[] __initdata = {
Expand Down Expand Up @@ -485,7 +467,7 @@ static struct platform_device *hkdk4412_devices[] __initdata = {
&s3c_device_hsmmc2,
&s3c_device_i2c0,
&s3c_device_i2c1,
&gpio_device_i2c2,
&s3c_device_i2c2,
&s3c_device_i2c3,
#if defined(CONFIG_ODROID_U2)
&gpio_device_i2c4,
Expand Down Expand Up @@ -622,6 +604,7 @@ static void __init hkdk4412_machine_init(void)
i2c_register_board_info(1, hkdk4412_i2c_devs1,
ARRAY_SIZE(hkdk4412_i2c_devs1));

s3c_i2c2_set_platdata(NULL);
i2c_register_board_info(2, hkdk4412_i2c_devs2,
ARRAY_SIZE(hkdk4412_i2c_devs2));

Expand Down
1 change: 0 additions & 1 deletion drivers/cpufreq/exynos4x12-cpufreq.c
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,6 @@ static const unsigned int asv_voltage_4x12[CPUFREQ_LEVEL_END] = {
925000,
925000,
925000,
};
#endif
static void exynos4x12_set_clkdiv(unsigned int div_index)
{
Expand Down