diff options
author | Habeeb Mohammed <mohammed.habeeb@inventec.com> | 2021-09-03 23:16:38 +0300 |
---|---|---|
committer | mohammed.habeeb <mohammed.habeeb@inventec.com> | 2021-10-12 22:13:37 +0300 |
commit | 74872b54a0b61af1e9f005e38c9f557089676e81 (patch) | |
tree | 57faa0b5445afa94c3b0c92d91d2027bebec2abf /meta-inventec/meta-transformers/recipes-phosphor/init/transformers-init | |
parent | 7cf2f6c819fd46d698c1d5ce3058ca3bae4db412 (diff) | |
download | openbmc-74872b54a0b61af1e9f005e38c9f557089676e81.tar.xz |
Add Inventec's Transformers platform
Change-Id: Ic8aaa0728a43936cd4c6212d590e01ba8202b25b
Signed-off-by: Habeeb Mohammed <mohammed.habeeb@inventec.com>
Diffstat (limited to 'meta-inventec/meta-transformers/recipes-phosphor/init/transformers-init')
2 files changed, 18 insertions, 0 deletions
diff --git a/meta-inventec/meta-transformers/recipes-phosphor/init/transformers-init/transformers-init.service b/meta-inventec/meta-transformers/recipes-phosphor/init/transformers-init/transformers-init.service new file mode 100644 index 000000000..235cd7e42 --- /dev/null +++ b/meta-inventec/meta-transformers/recipes-phosphor/init/transformers-init/transformers-init.service @@ -0,0 +1,10 @@ +[Unit] +Description=Essential init commands for transformers + +[Service] +Type=oneshot +RemainAfterExit=true +ExecStart=/usr/sbin/transformers-init.sh + +[Install] +WantedBy=multi-user.target diff --git a/meta-inventec/meta-transformers/recipes-phosphor/init/transformers-init/transformers-init.sh b/meta-inventec/meta-transformers/recipes-phosphor/init/transformers-init/transformers-init.sh new file mode 100644 index 000000000..669a39984 --- /dev/null +++ b/meta-inventec/meta-transformers/recipes-phosphor/init/transformers-init/transformers-init.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +# Init GPIO setting + +gpioset `gpiofind BMC_READY`=0 +echo BMC ready !! +gpioset `gpiofind RST_BMC_SGPIO`=1 +echo Release reset SGPIO !! |