diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2015-03-16 13:36:50 +0200 |
---|---|---|
committer | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2015-03-24 15:30:20 +0200 |
commit | ac28ecefe04ef2961baa78b949e05d87eee55e3f (patch) | |
tree | 7a5492dc15a70cb8db8db2f19968e073ed0ae8cb /lib/intel_iosf.c | |
parent | 0a3ef582daa961047dabf3008177f60db8984b03 (diff) |
lib: Allow 32bit addresses for IOSF-SB registers
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Diffstat (limited to 'lib/intel_iosf.c')
-rw-r--r-- | lib/intel_iosf.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/intel_iosf.c b/lib/intel_iosf.c index 01577cd0..df1cdc0c 100644 --- a/lib/intel_iosf.c +++ b/lib/intel_iosf.c @@ -73,7 +73,7 @@ static int vlv_sideband_rw(uint32_t port, uint8_t opcode, uint32_t addr, * Returns: * 0 when the register access succeeded, negative errno code on failure. */ -int intel_punit_read(uint8_t addr, uint32_t *val) +int intel_punit_read(uint32_t addr, uint32_t *val) { return vlv_sideband_rw(IOSF_PORT_PUNIT, SB_CRRDDA_NP, addr, val); } @@ -88,7 +88,7 @@ int intel_punit_read(uint8_t addr, uint32_t *val) * Returns: * 0 when the register access succeeded, negative errno code on failure. */ -int intel_punit_write(uint8_t addr, uint32_t val) +int intel_punit_write(uint32_t addr, uint32_t val) { return vlv_sideband_rw(IOSF_PORT_PUNIT, SB_CRWRDA_NP, addr, &val); } @@ -103,7 +103,7 @@ int intel_punit_write(uint8_t addr, uint32_t val) * Returns: * 0 when the register access succeeded, negative errno code on failure. */ -int intel_nc_read(uint8_t addr, uint32_t *val) +int intel_nc_read(uint32_t addr, uint32_t *val) { return vlv_sideband_rw(IOSF_PORT_NC, SB_CRRDDA_NP, addr, val); } @@ -118,7 +118,7 @@ int intel_nc_read(uint8_t addr, uint32_t *val) * Returns: * 0 when the register access succeeded, negative errno code on failure. */ -int intel_nc_write(uint8_t addr, uint32_t val) +int intel_nc_write(uint32_t addr, uint32_t val) { return vlv_sideband_rw(IOSF_PORT_NC, SB_CRWRDA_NP, addr, &val); } |