From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Thu, 24 Oct 2019 10:45:16 -0400 Subject: [U-Boot] [PATCH v2 05/11] ufs: Add Initial Support for UFS subsystem In-Reply-To: References: <20191015125442.1786-1-faiz_abbas@ti.com> <20191015125442.1786-6-faiz_abbas@ti.com> Message-ID: <20191024144516.GK11173@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 Wed, Oct 23, 2019 at 10:20:06PM +0800, Bin Meng wrote: > +Simon > > On Tue, Oct 15, 2019 at 8:59 PM Faiz Abbas wrote: > > > > Add Support for UFS Host Controller Interface (UFSHCI) for communicating > > with Universal Flash Storage (UFS) devices. The steps to initialize the > > host controller interface are the following: > > > > - Initiate the Host Controller Initialization process by writing to the > > Host controller enable register. > > - Configure the Host Controller base address registers by allocating a > > host memory space and related data structures. > > - Unipro link startup procedure > > - Check for connected device > > - Configure UFS host controller to process requests > > > > Also register this host controller as a SCSI host controller. > > > > Taken from Linux Kernel v5.2 (drivers/scsi/ufs/ufshcd.c) and ported to > > U-boot. > > nits: U-Boot > > > > > Signed-off-by: Faiz Abbas > > --- > > MAINTAINERS | 5 + > > drivers/Kconfig | 2 + > > drivers/Makefile | 1 + > > drivers/ufs/Kconfig | 9 + > > drivers/ufs/Makefile | 6 + > > drivers/ufs/ufs-uclass.c | 16 + > > drivers/ufs/ufs.c | 1968 ++++++++++++++++++++++++++++++++++++++ > > drivers/ufs/ufs.h | 918 ++++++++++++++++++ > > drivers/ufs/unipro.h | 270 ++++++ > > include/dm/uclass-id.h | 1 + > > include/ufs.h | 29 + > > 11 files changed, 3225 insertions(+) > > create mode 100644 drivers/ufs/Kconfig > > create mode 100644 drivers/ufs/Makefile > > create mode 100644 drivers/ufs/ufs-uclass.c > > create mode 100644 drivers/ufs/ufs.c > > create mode 100644 drivers/ufs/ufs.h > > create mode 100644 drivers/ufs/unipro.h > > create mode 100644 include/ufs.h > > > > I think we will need a sandbox ufs driver and test cases for testing dm ufs. I would also like to see that, but think we can do that in a follow-up. -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: not available URL: