diff options
author | Gavin Shan <gwshan@linux.vnet.ibm.com> | 2015-11-12 13:33:08 +1100 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2016-03-08 18:18:28 +1100 |
commit | 5cda6f6de5af22b7602901584b6eeca099e50b20 (patch) | |
tree | cd50d95ca6833049a896bf557cbb29f6c1b7e015 /hdata/spira.h | |
parent | 5326c45da779e6fca849a0b17f6fe61b25e528b7 (diff) | |
download | skiboot-5cda6f6de5af22b7602901584b6eeca099e50b20.zip skiboot-5cda6f6de5af22b7602901584b6eeca099e50b20.tar.gz skiboot-5cda6f6de5af22b7602901584b6eeca099e50b20.tar.bz2 |
platforms/firenze: Fix I2C clock source frequency
The I2C master clock source frequency is hardcoded to wrong value.
The correct frequency should be the nest clock frequency divided
by 16 as Ben said.
This fixes I2C master source frequency with the help of additional
properties "nest-frequency" and "bus-frequency" to root and xscom
device node separately.
Suggested-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
[stewart@linux.vnet.ibm.com: fixup hdata test for added property]
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hdata/spira.h')
-rw-r--r-- | hdata/spira.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/hdata/spira.h b/hdata/spira.h index 5ed9329..064aa86 100644 --- a/hdata/spira.h +++ b/hdata/spira.h @@ -239,9 +239,13 @@ struct iplparams_sysparams { __be32 sys_attributes; __be32 mem_scrubbing; __be16 cur_spl_value; - uint8_t pump_mode; + uint8_t pump_mode; /* Reserved */ uint8_t use_pore_sleep; - __be32 pore_image_size; + __be32 pore_image_size; /* Reserved */ + uint8_t vtpm_enabled; + uint8_t hw_page_table_size; /* >= 0x59 */ + __be16 hv_disp_wheel; /* >= 0x58 */ + __be32 nest_freq_mhz; /* >= 0x5b */ } __packed; /* Idata index 1: IPL parameters */ |