From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tan, Ley Foon Date: Wed, 23 Dec 2020 03:31:44 +0000 Subject: [v5 08/18] mmc: dwmmc: Change designware MMC 'clksel' callback function to return status In-Reply-To: <20201221164942.11640-9-elly.siew.chin.lim@intel.com> References: <20201221164942.11640-1-elly.siew.chin.lim@intel.com> <20201221164942.11640-9-elly.siew.chin.lim@intel.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de > -----Original Message----- > From: Lim, Elly Siew Chin > Sent: Tuesday, December 22, 2020 12:50 AM > To: u-boot at lists.denx.de > Cc: Marek Vasut ; Tan, Ley Foon > ; See, Chin Liang ; > Simon Goldschmidt ; Chee, Tien Fong > ; Westergreen, Dalon > ; Simon Glass ; Gan, > Yau Wai ; Lim, Elly Siew Chin > > Subject: [v5 08/18] mmc: dwmmc: Change designware MMC 'clksel' callback > function to return status > > Change 'clksel' callback function to allow the code to return a status. > > This patch is a preparation for enabling Arm-Trusted-Firmware (ATF) in Intel > SoC FPGA. This patch does not change functionality. > > When using Arm-Trusted-Firmware (ATF) in Intel SoC FPGA, the MMC clock > related register is secure register which is required to be written via > SMC/PCSI call. It is possible that U-Boot fail to write the register if there is > unexpected error between U-Boot and ATF. > As a result, there maybe signal integrity on MMC connection due to clock. So, > the code should reports error to user when 'clksel' fail. > > Signed-off-by: Siew Chin Lim > --- Reviewed-by: Ley Foon Tan Regards Ley Foon