From 0b93b87a8105f09222e8ab306daef2577adad0eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joan=20Olguy=20Can=C3=A9us?= Date: Tue, 20 Aug 2019 00:30:42 -0700 Subject: [PATCH] wedge400: use gpiocli control gpios (#104) Summary: As title Pull Request resolved: https://github.com/facebookexternal/openbmc.celestica/pull/104 Reviewed By: tomrepo fbshipit-source-id: cda1b58ffa --- .../recipes-utils/openbmc-utils/files/us_console.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) mode change 100644 => 100755 meta-facebook/meta-wedge400/recipes-utils/openbmc-utils/files/us_console.sh diff --git a/meta-facebook/meta-wedge400/recipes-utils/openbmc-utils/files/us_console.sh b/meta-facebook/meta-wedge400/recipes-utils/openbmc-utils/files/us_console.sh old mode 100644 new mode 100755 index 3e4f54dd7dbc..d708538db842 --- a/meta-facebook/meta-wedge400/recipes-utils/openbmc-utils/files/us_console.sh +++ b/meta-facebook/meta-wedge400/recipes-utils/openbmc-utils/files/us_console.sh @@ -1,6 +1,6 @@ #!/bin/sh # -# Copyright 2018-present Facebook. All Rights Reserved. +# Copyright 2019-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 @@ -42,4 +42,5 @@ fi # To enable GPIOS5, SCU8C[5] must be 0 devmem_clear_bit $(scu_addr 8C) 5 -gpio_set 149 $VALUE \ No newline at end of file +gpiocli --shadow BMC_UART_SEL5 set-direction out +gpiocli --shadow BMC_UART_SEL5 set-value $VALUE \ No newline at end of file