diff options
author | Thang Q. Nguyen <thang@os.amperecomputing.com> | 2021-09-23 09:47:52 +0300 |
---|---|---|
committer | Thang Q. Nguyen <thang@os.amperecomputing.com> | 2021-09-23 10:25:43 +0300 |
commit | 7d0f84a633d674313354852ddbecf888c8e47226 (patch) | |
tree | 6e41391697002863073b49c7b984cbbd05048d71 /meta-ampere/meta-jade/conf | |
parent | f68eae164d56f453c2ef767118f7cbed74a412b4 (diff) | |
download | openbmc-7d0f84a633d674313354852ddbecf888c8e47226.tar.xz |
meta-ampere: mtjade: initialize GPIOs
Several GPIOs should be configured properly when booting BMC. Currently,
these GPIOs are configured in u-boot. However, some must be configured
in Linux. For example, the BMC_READY GPIO should be set only after BMC
is ready to work.
This commit introduce platform-init service which starts after BMC boots
to configure GPIOs pins required by hardware design.
Tested:
1. Do A/C power, check GPIO227 is set to 0.
2. Reboot BMC, check GPIO227 is set to 0.
3. Run gpioinfo and check GPIO directions
Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com>
Change-Id: Ie0cfe171659ad740c6a25297f2fcce259870d43d
Diffstat (limited to 'meta-ampere/meta-jade/conf')
-rw-r--r-- | meta-ampere/meta-jade/conf/machine/mtjade.conf | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta-ampere/meta-jade/conf/machine/mtjade.conf b/meta-ampere/meta-jade/conf/machine/mtjade.conf index 2c948df6d..b0826a9b1 100644 --- a/meta-ampere/meta-jade/conf/machine/mtjade.conf +++ b/meta-ampere/meta-jade/conf/machine/mtjade.conf @@ -32,6 +32,7 @@ OBMC_IMAGE_EXTRA_INSTALL:append = "\ ampere-mac-update \ mtjade-gpio-config \ mtd-utils \ + ampere-platform-init \ " PREFERRED_PROVIDER_virtual/obmc-chassis-mgmt = "packagegroup-ampere-apps" |