aboutsummaryrefslogtreecommitdiff
path: root/hw/phb3.c
diff options
context:
space:
mode:
authorPhilippe Bergheaud <felix@linux.vnet.ibm.com>2016-04-01 14:27:59 +0200
committerStewart Smith <stewart@linux.vnet.ibm.com>2016-04-27 15:06:11 +1000
commit556bb7701f9ebed12f9b780108adb66299338652 (patch)
treefe5a6afa5d6a7c8cc13a82157673bf00c82d8cd7 /hw/phb3.c
parentf22a7d4a69cf50fa07002930e94af8a999939a12 (diff)
downloadskiboot-556bb7701f9ebed12f9b780108adb66299338652.zip
skiboot-556bb7701f9ebed12f9b780108adb66299338652.tar.gz
skiboot-556bb7701f9ebed12f9b780108adb66299338652.tar.bz2
chiptod: Sync timebase in both CAPP units on Naples
Naples has two capp units. In chiptod_capp_timebase_sync, call PHB3_CAPP_REG_OFFSET(p) to get the xscom register address offset, an operate on the right capp unit. Signed-off-by: Philippe Bergheaud <felix@linux.vnet.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hw/phb3.c')
-rw-r--r--hw/phb3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/phb3.c b/hw/phb3.c
index 6890524..cac1bd6 100644
--- a/hw/phb3.c
+++ b/hw/phb3.c
@@ -3552,7 +3552,7 @@ static int64_t phb3_set_capi_mode(struct phb *phb, uint64_t mode,
phb3_init_capp_regs(p);
- if (!chiptod_capp_timebase_sync(p->chip_id)) {
+ if (!chiptod_capp_timebase_sync(p)) {
PHBERR(p, "CAPP: Failed to sync timebase\n");
return OPAL_HARDWARE;
}