mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-30 07:39:24 +00:00
mvebu: cp110: align all comphy_index arguments type
The biggest comphy index can be equal to 6 so there is no need to use uint64_t for storing it. Change-Id: I14c2b68e51678a560815963c72aed0c37068f926 Signed-off-by: Grzegorz Jaszczyk <jaz@semihalf.com> Reviewed-by: Igal Liberman <igall@marvell.com> Reviewed-by: Kostya Porotchkin <kostap@marvell.com>
This commit is contained in:
parent
b0f2361a1a
commit
f858e989c6
2 changed files with 6 additions and 6 deletions
|
@ -2201,7 +2201,7 @@ int mvebu_cp110_comphy_digital_reset(uint64_t comphy_base,
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int mvebu_cp110_comphy_power_on(uint64_t comphy_base, uint64_t comphy_index,
|
int mvebu_cp110_comphy_power_on(uint64_t comphy_base, uint8_t comphy_index,
|
||||||
uint64_t comphy_mode)
|
uint64_t comphy_mode)
|
||||||
{
|
{
|
||||||
int mode = COMPHY_GET_MODE(comphy_mode);
|
int mode = COMPHY_GET_MODE(comphy_mode);
|
||||||
|
@ -2247,7 +2247,7 @@ int mvebu_cp110_comphy_power_on(uint64_t comphy_base, uint64_t comphy_index,
|
||||||
err = mvebu_cp110_comphy_ap_power_on(comphy_base, comphy_index);
|
err = mvebu_cp110_comphy_ap_power_on(comphy_base, comphy_index);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
ERROR("comphy%lld: unsupported comphy mode\n", comphy_index);
|
ERROR("comphy%d: unsupported comphy mode\n", comphy_index);
|
||||||
err = -EINVAL;
|
err = -EINVAL;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -2257,7 +2257,7 @@ int mvebu_cp110_comphy_power_on(uint64_t comphy_base, uint64_t comphy_index,
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
int mvebu_cp110_comphy_power_off(uint64_t comphy_base, uint64_t comphy_index)
|
int mvebu_cp110_comphy_power_off(uint64_t comphy_base, uint8_t comphy_index)
|
||||||
{
|
{
|
||||||
uintptr_t sd_ip_addr, comphy_ip_addr;
|
uintptr_t sd_ip_addr, comphy_ip_addr;
|
||||||
uint32_t mask, data;
|
uint32_t mask, data;
|
||||||
|
|
|
@ -8,11 +8,11 @@
|
||||||
/* Marvell CP110 SoC COMPHY unit driver */
|
/* Marvell CP110 SoC COMPHY unit driver */
|
||||||
|
|
||||||
int mvebu_cp110_comphy_is_pll_locked(uint64_t comphy_base,
|
int mvebu_cp110_comphy_is_pll_locked(uint64_t comphy_base,
|
||||||
uint64_t comphy_index);
|
uint8_t comphy_index);
|
||||||
int mvebu_cp110_comphy_power_off(uint64_t comphy_base,
|
int mvebu_cp110_comphy_power_off(uint64_t comphy_base,
|
||||||
uint64_t comphy_index);
|
uint8_t comphy_index);
|
||||||
int mvebu_cp110_comphy_power_on(uint64_t comphy_base,
|
int mvebu_cp110_comphy_power_on(uint64_t comphy_base,
|
||||||
uint64_t comphy_index, uint64_t comphy_mode);
|
uint8_t comphy_index, uint64_t comphy_mode);
|
||||||
int mvebu_cp110_comphy_xfi_rx_training(uint64_t comphy_base,
|
int mvebu_cp110_comphy_xfi_rx_training(uint64_t comphy_base,
|
||||||
uint8_t comphy_index);
|
uint8_t comphy_index);
|
||||||
int mvebu_cp110_comphy_digital_reset(uint64_t comphy_base, uint8_t comphy_index,
|
int mvebu_cp110_comphy_digital_reset(uint64_t comphy_base, uint8_t comphy_index,
|
||||||
|
|
Loading…
Add table
Reference in a new issue