From: Tom Rini Date: Tue, 31 Mar 2020 15:09:51 -0400 Subject: [PATCH resend 1/5] gpio/mpc83xx_spisel_boot.c: gpio driver for SPISEL_BOOT signal In-Reply-To: <20200211151947.26091-2-rasmus.villemoes@prevas.dk> References: <20200211151947.26091-1-rasmus.villemoes@prevas.dk> <20200211151947.26091-2-rasmus.villemoes@prevas.dk> Message-ID: <20200331190951.GD27133@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 Tue, Feb 11, 2020 at 03:20:22PM +0000, Rasmus Villemoes wrote: > From: "Klaus H. Sorensen" > > Some SoCs in the mpc83xx family, e.g. mpc8309, have a dedicated spi > chip select, SPISEL_BOOT, that is used by the boot code to boot from > flash. > > This chip select will typically be used to select a SPI boot > flash. The SPISEL_BOOT signal is controlled by a single bit in the > SPI_CS register. > > Implement a gpio driver for the spi chip select register. This allows a > spi driver capable of using gpios as chip select, to bind a chip select > to SPISEL_BOOT. > > It may be a little odd to do this as a GPIO driver, since the signal > is neither GP or I, but it is quite convenient to present it to the > spi driver that way. The alternative it to teach mpc8xxx_spi to handle > the SPISEL_BOOT signal itself (that is how it's done in the linux > kernel, see commit 69b921acae8a) > > Signed-off-by: Klaus H. Sorensen > Signed-off-by: Rasmus Villemoes Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: