From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Thu, 4 Mar 2021 13:14:43 -0500 Subject: [PATCH v4 10/16] dm: gpio: Add a way to update flags In-Reply-To: <20210205042210.2949365-11-sjg@chromium.org> References: <20210205042210.2949365-1-sjg@chromium.org> <20210205042210.2949365-11-sjg@chromium.org> Message-ID: <20210304181443.GI1310@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thu, Feb 04, 2021 at 09:22:03PM -0700, Simon Glass wrote: > It is convenient to be able to adjust some of the flags for a GPIO while > leaving others alone. Add a function for this. > > Update dm_gpio_set_dir_flags() to make use of this. > > Also update dm_gpio_set_value() to use this also, since this allows the > open-drain / open-source features to be implemented directly in the > driver, rather than using the uclass workaround. > > Update the sandbox tests accordingly. This involves a lot of changes to > dm_test_gpio_opendrain_opensource() since we no-longer have the direciion > being reported differently depending on the open drain/open source flags. > > Also update the STM32 drivers to let the uclass handle the active low/high > logic. > > Drop the GPIOD_FLAGS_OUTPUT() macro which is no-longer used. > > Signed-off-by: Simon Glass > Tested-by: Kory Maincent > Reviewed-by: Patrick Delaunay > Tested-by: Patrick Delaunay > Reviewed-by: Patrick Delaunay > Tested-by: Patrick Delaunay Applied to u-boot/next, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: