diff options
author | Philippe Bergheaud <felix@linux.vnet.ibm.com> | 2015-06-19 14:52:54 +0200 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2015-07-10 10:44:33 +1000 |
commit | 1d8c68ff8a83d077ebcd46967e1f581ba2f3135c (patch) | |
tree | f45b9cb6c3635019dba37d9906f2f76845376bae /include | |
parent | a524c05983e36ab0a29cd2e3c979dff672d0eb6b (diff) | |
download | skiboot-1d8c68ff8a83d077ebcd46967e1f581ba2f3135c.zip skiboot-1d8c68ff8a83d077ebcd46967e1f581ba2f3135c.tar.gz skiboot-1d8c68ff8a83d077ebcd46967e1f581ba2f3135c.tar.bz2 |
Configure CAPP timebase.
Extend the OPAL call phb3_set_capi_mode to configure CAPP timebase.
Inform Linux with the device tree property "ibm,capp-timebase-sync.
Signed-off-by: Philippe Bergheaud <felix@linux.vnet.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/capp.h | 2 | ||||
-rw-r--r-- | include/chiptod.h | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/include/capp.h b/include/capp.h index 4b53e37..d9275ec 100644 --- a/include/capp.h +++ b/include/capp.h @@ -74,6 +74,8 @@ enum capp_reg { #define CANNED_PRESP_MAP2 0x201301F #define CAPP_ERR_STATUS_CTRL 0x201300E #define FLUSH_SUE_STATE_MAP 0x201300F +#define CAPP_TB 0x2013026 +#define CAPP_TFMR 0x2013027 #define CAPP_EPOCH_TIMER_CTRL 0x201302C #define FLUSH_UOP_CONFIG1 0x2013803 #define FLUSH_UOP_CONFIG2 0x2013804 diff --git a/include/chiptod.h b/include/chiptod.h index 07e3115..b220fd7 100644 --- a/include/chiptod.h +++ b/include/chiptod.h @@ -32,5 +32,6 @@ extern bool chiptod_wakeup_resync(void); extern int chiptod_recover_tb_errors(void); extern void chiptod_reset_tb(void); extern int chiptod_adjust_topology(enum chiptod_topology topo, bool enable); +extern bool chiptod_capp_timebase_sync(uint32_t chip_id); #endif /* __CHIPTOD_H */ |