Skip to content

Commit

Permalink
wedge400: use gpiocli control gpios (#104)
Browse files Browse the repository at this point in the history
Summary:
As title
Pull Request resolved: facebookexternal/openbmc.celestica#104

Reviewed By: tomrepo

fbshipit-source-id: cda1b58ffa
  • Loading branch information
joancaneus authored and facebook-github-bot committed Aug 20, 2019
1 parent 58c7b48 commit 0b93b87
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions meta-facebook/meta-wedge400/recipes-utils/openbmc-utils/files/us_console.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -42,4 +42,5 @@ fi
# To enable GPIOS5, SCU8C[5] must be 0
devmem_clear_bit $(scu_addr 8C) 5

gpio_set 149 $VALUE
gpiocli --shadow BMC_UART_SEL5 set-direction out
gpiocli --shadow BMC_UART_SEL5 set-value $VALUE

0 comments on commit 0b93b87

Please sign in to comment.