From mboxrd@z Thu Jan 1 00:00:00 1970 From: Baruch Siach Date: Sun, 14 Apr 2019 12:27:10 +0300 Subject: [U-Boot] [PATCH] dm: core: Change platform specific translation-offset handling In-Reply-To: <20190412144228.24976-1-sr@denx.de> References: <20190412144228.24976-1-sr@denx.de> Message-ID: <874l71hr81.fsf@tarshish> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Stefan, On Fri, Apr 12 2019, Stefan Roese wrote: > Testing has shown that the current DM implementation of a platform / > board specific translation offset, as its needed for the SPL on MVEBU > platforms is buggy. The translation offset is confingured too late, > after the driver bind functions are run. This may result in incorrect > address translations. With the current implementation its not possible > to configure the offset earlier, as the DM code has not run at all. > > This patch now removed the set_/get_translation_offset() calls and > moves the translation offset into the GD variable translation_offset. > This variable will get used when CONFIG_TRANSLATION_OFFSET is enabled. > This option is enabled only for MVEBU on ARM32 platforms, where its > currenty needed and configured in the SPL. > > Signed-off-by: Stefan Roese > Cc: Pierre Bourdon > Cc: Baruch Siach > Cc: Simon Glass > Cc: Heiko Schocher > Cc: Tom Rini Thanks. This fixes boot on Clearfog when I2C is enabled in SPL. Tested-by: Baruch Siach baruch -- http://baruch.siach.name/blog/ ~. .~ Tk Open Systems =}------------------------------------------------ooO--U--Ooo------------{= - baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -