summaryrefslogtreecommitdiffstats
path: root/meta-facebook/meta-wedge/recipes-wedge/fbutils/files/reset_usb.sh
diff options
context:
space:
mode:
Diffstat (limited to 'meta-facebook/meta-wedge/recipes-wedge/fbutils/files/reset_usb.sh')
-rw-r--r--meta-facebook/meta-wedge/recipes-wedge/fbutils/files/reset_usb.sh36
1 files changed, 0 insertions, 36 deletions
diff --git a/meta-facebook/meta-wedge/recipes-wedge/fbutils/files/reset_usb.sh b/meta-facebook/meta-wedge/recipes-wedge/fbutils/files/reset_usb.sh
deleted file mode 100644
index c63ed10..0000000
--- a/meta-facebook/meta-wedge/recipes-wedge/fbutils/files/reset_usb.sh
+++ /dev/null
@@ -1,36 +0,0 @@
-#!/bin/sh
-#
-# Copyright 2014-present Facebook. All Rights Reserved.
-#
-# This program file is free software; you can redistribute it and/or modify it
-# under the terms of the GNU General Public License as published by the
-# Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful, but WITHOUT
-# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
-# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
-# for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program in a file named COPYING; if not, write to the
-# Free Software Foundation, Inc.,
-# 51 Franklin Street, Fifth Floor,
-# Boston, MA 02110-1301 USA
-#
-
-. /usr/local/bin/openbmc-utils.sh
-
-echo -n "Reset USB Switch ... "
-
-# To use GPIOD7 (31), SCU90[1], SCU8C[11], and SCU70[21] must be 0
-devmem_clear_bit $(scu_addr 8C) 11
-devmem_clear_bit $(scu_addr 70) 21
-devmem_clear_bit $(scu_addr 90) 1
-
-gpio_set 31 1
-sleep 1
-gpio_set 31 0
-sleep 1
-gpio_set 31 1
-
-echo "Done"
OpenPOWER on IntegriCloud