From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bin Meng Date: Sun, 23 Jul 2017 12:36:18 +0800 Subject: [U-Boot] [PATCH 2/5] dm: x86: Allow TSC timer to be used before DM is ready In-Reply-To: <20170715234120.177264-3-sjg@chromium.org> References: <20170715234120.177264-1-sjg@chromium.org> <20170715234120.177264-3-sjg@chromium.org> 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 Hi Simon, On Sun, Jul 16, 2017 at 7:41 AM, Simon Glass wrote: > With bootstage we need access to the timer before driver model is set up. > To handle this, put the required state in global_data and provide a new > function to set up the device, separate from the driver's probe() method. > > Signed-off-by: Simon Glass > --- > > arch/x86/include/asm/global_data.h | 1 + > drivers/timer/tsc_timer.c | 18 +++++++++++++----- > 2 files changed, 14 insertions(+), 5 deletions(-) > Please check my comments against [1/5] in this series. We should be able to do something with existing CONFIG_TIMER_EARLY. Updating TSC timer can only solve this specific timer issue. Regards, Bin