From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bin Meng Date: Sun, 8 Dec 2019 10:08:36 +0800 Subject: [PATCH v6 013/102] board_r: Move early-timer init later In-Reply-To: References: <20191207044315.51770-1-sjg@chromium.org> <20191206213936.v6.13.I512896ca7c3c572ad77920cc5c42b9bc223c274a@changeid> 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 On Sun, Dec 8, 2019 at 10:06 AM Bin Meng wrote: > > On Sat, Dec 7, 2019 at 12:46 PM Simon Glass wrote: > > > > At present the early timer init happens as soon as driver model is set up. > > This makes it impossible to do anything that needs driver model but must > > run before devices are probed (as needed with Intel's FSP-S, for example). > > > > In any case it is not a good idea to tie probing of particular drivers too > > closely to the DM init. > > > > Create a new function to init the timer and put it a bit later in the > > sequence. > > > > Signed-off-by: Simon Glass > > --- > > > > Changes in v6: None > > Changes in v5: None > > Changes in v4: > > - Add new patch to move early-timer init later > > > > Changes in v3: None > > Changes in v2: None > > > > common/board_r.c | 19 ++++++++++++++----- > > 1 file changed, 14 insertions(+), 5 deletions(-) > > > > Reviewed-by: Bin Meng applied to u-boot-x86/next, thanks!