diff options
author | Philippe Bergheaud <felix@linux.vnet.ibm.com> | 2016-04-01 14:27:59 +0200 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2016-04-27 15:06:11 +1000 |
commit | 556bb7701f9ebed12f9b780108adb66299338652 (patch) | |
tree | fe5a6afa5d6a7c8cc13a82157673bf00c82d8cd7 /hw/phb3.c | |
parent | f22a7d4a69cf50fa07002930e94af8a999939a12 (diff) | |
download | skiboot-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |