Module Name: src Committed By: reinoud Date: Wed Sep 24 20:38:33 UTC 2014
Modified Files: src/sys/arch/evbarm/odroid: odroid_machdep.c Log Message: Add the not connected bits While here, tweak the usb3503 attachment To generate a diff of this commit: cvs rdiff -u -r1.34 -r1.35 src/sys/arch/evbarm/odroid/odroid_machdep.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/evbarm/odroid/odroid_machdep.c diff -u src/sys/arch/evbarm/odroid/odroid_machdep.c:1.34 src/sys/arch/evbarm/odroid/odroid_machdep.c:1.35 --- src/sys/arch/evbarm/odroid/odroid_machdep.c:1.34 Sun Sep 21 20:49:31 2014 +++ src/sys/arch/evbarm/odroid/odroid_machdep.c Wed Sep 24 20:38:33 2014 @@ -1,4 +1,4 @@ -/* $NetBSD: odroid_machdep.c,v 1.34 2014/09/21 20:49:31 reinoud Exp $ */ +/* $NetBSD: odroid_machdep.c,v 1.35 2014/09/24 20:38:33 reinoud Exp $ */ /* * Copyright (c) 2014 The NetBSD Foundation, Inc. @@ -31,7 +31,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: odroid_machdep.c,v 1.34 2014/09/21 20:49:31 reinoud Exp $"); +__KERNEL_RCSID(0, "$NetBSD: odroid_machdep.c,v 1.35 2014/09/24 20:38:33 reinoud Exp $"); #include "opt_evbarm_boardtype.h" #include "opt_exynos.h" @@ -643,6 +643,19 @@ odroid_exynos5_gpio_ncs(device_t self, p prop_dictionary_set_uint32(dict, "nc-GPG2", 0x03 - 0b00000000); prop_dictionary_set_uint32(dict, "nc-GPH0", 0x0f - 0b00000000); prop_dictionary_set_uint32(dict, "nc-GPH1", 0xff - 0b00000000); + + prop_dictionary_set_uint32(dict, "nc-GPJ0", 0xff - 0b00000000); + prop_dictionary_set_uint32(dict, "nc-GPJ1", 0xff - 0b00000000); + prop_dictionary_set_uint32(dict, "nc-GPJ2", 0xff - 0b00000000); + prop_dictionary_set_uint32(dict, "nc-GPJ3", 0xff - 0b00000000); + prop_dictionary_set_uint32(dict, "nc-GPJ4", 0xff - 0b00000000); + prop_dictionary_set_uint32(dict, "nc-GPK0", 0xff - 0b00000000); + prop_dictionary_set_uint32(dict, "nc-GPK1", 0xff - 0b00000000); + /* usb3 overcur1{2,3} at bits 4,5, vbus1 at pin 7 */ + prop_dictionary_set_uint32(dict, "nc-GPK2", 0xff - 0b10110000); + /* usb3 overcur0{2,3} at bits 0,1, vbus0 at pin 3 */ + prop_dictionary_set_uint32(dict, "nc-GPK3", 0xff - 0b00001011); + prop_dictionary_set_uint32(dict, "nc-GPV0", 0xff - 0b00000000); prop_dictionary_set_uint32(dict, "nc-GPV1", 0xff - 0b00000000); prop_dictionary_set_uint32(dict, "nc-ETC5", 0x03 - 0b00000000); @@ -779,23 +792,20 @@ exynos_usb_init_usb3503_hub(device_t sel /* pull intn low */ exynos_gpio_pindata_ctl(&nint_pin, GPIO_PIN_PULLDOWN); - DELAY(10000); /* set hubconnect low */ exynos_gpio_pindata_write(&hubconnect_pin, 0); - DELAY(10000); /* reset pin up again, hub enters RefClk stage */ exynos_gpio_pindata_write(&nreset_pin, 1); DELAY(10000); - /* set hubconnect high */ - exynos_gpio_pindata_write(&hubconnect_pin, 1); - DELAY(10000); - /* release intn */ exynos_gpio_pindata_ctl(&nint_pin, GPIO_PIN_TRISTATE); - DELAY(10000); + + /* set hubconnect high */ + exynos_gpio_pindata_write(&hubconnect_pin, 1); + DELAY(40000); /* DONE! */ }