File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change 6363#include "common.h"
6464#include "pmic-77686.h"
6565
66+ #include <linux/w1-gpio.h>
67+
6668extern void exynos4_setup_dwmci_cfg_gpio (struct platform_device * dev , int width );
6769
6870/* Following are default values for UCON, ULCON and UFCON UART registers */
@@ -212,6 +214,23 @@ static struct platform_device gpio_device_i2c4 = {
212214 .dev .platform_data = & i2c4_gpio_platdata ,
213215};
214216
217+ #if defined(CONFIG_W1_MASTER_GPIO ) || defined(CONFIG_W1_MASTER_GPIO_MODULE )
218+ /* Enables W1 on Pin 6 of the I/-Header of U3 */
219+ /* Breaks support for I/O shield board */
220+ #define GPIO_W1 EXYNOS4_GPX1(5) /* GPIO-PIN 204 */
221+
222+ static struct w1_gpio_platform_data w1_gpio_pdata = {
223+ .pin = GPIO_W1 ,
224+ .is_open_drain = 0 ,
225+ };
226+
227+ static struct platform_device odroidu3_w1_device = {
228+ .name = "w1-gpio" ,
229+ .id = -1 ,
230+ .dev .platform_data = & w1_gpio_pdata ,
231+ };
232+ #endif
233+
215234#if defined(CONFIG_GPIO_PCA953X )
216235static struct pca953x_platform_data odroid_gpio_expander_pdata = {
217236 .gpio_base = EXYNOS4_GPIO_END ,
@@ -489,6 +508,9 @@ static struct platform_device *hkdk4412_devices[] __initdata = {
489508 & s3c_device_i2c3 ,
490509#if defined(CONFIG_ODROID_U2 )
491510 & gpio_device_i2c4 ,
511+ #if defined(CONFIG_W1_MASTER_GPIO ) || defined (CONFIG_W1_MASTER_GPIO_MODULE )
512+ & odroidu3_w1_device ,
513+ #endif
492514#endif
493515 & s3c_device_i2c7 ,
494516 & s3c_device_rtc ,
You can’t perform that action at this time.
0 commit comments