diff options
author | Codrin Ciubotariu <codrin.ciubotariu@freescale.com> | 2015-01-12 14:08:30 +0200 |
---|---|---|
committer | York Sun <yorksun@freescale.com> | 2015-01-16 09:32:20 -0800 |
commit | 7d33a87d9ddb7a862a12c50d1c83a2f7853cc1bf (patch) | |
tree | 0e5d50dadb468794f00df009687cd35287fb14ac /arch/powerpc/include | |
parent | 6798c324ed5f0831040324af6c60cc0786b2b36f (diff) | |
download | u-boot-imx-7d33a87d9ddb7a862a12c50d1c83a2f7853cc1bf.zip u-boot-imx-7d33a87d9ddb7a862a12c50d1c83a2f7853cc1bf.tar.gz u-boot-imx-7d33a87d9ddb7a862a12c50d1c83a2f7853cc1bf.tar.bz2 |
arch/powerpc: Fix mapping of Freescale SerDes protocols
The number of supported serdes protocols on Freescale SoCs
has increased over time. Until now, an u64 variable have been
initialized on boot with the configured protocols. However,
since this number has increased (enum srds_prtcl has more
than 64 values), 64 bits are no longer sufficient to hold track
of all the configured protocols.
This patch replaces the u64 map values with static arrays.
To keep track of the number of serdes protocols, the
SERDES_PRCTL_COUNT vale has been added at the end of
enum srds_prtcl. This value must always be the last one.
Signed-off-by: Codrin Ciubotariu <codrin.ciubotariu@freescale.com>
Reviewed-by: York Sun <yorksun@freescale.com>
Diffstat (limited to 'arch/powerpc/include')
-rw-r--r-- | arch/powerpc/include/asm/fsl_serdes.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/fsl_serdes.h b/arch/powerpc/include/asm/fsl_serdes.h index 8e0e190..2dd32c2 100644 --- a/arch/powerpc/include/asm/fsl_serdes.h +++ b/arch/powerpc/include/asm/fsl_serdes.h @@ -87,6 +87,7 @@ enum srds_prtcl { SGMII_2500_FM2_DTSEC6, SGMII_2500_FM2_DTSEC9, SGMII_2500_FM2_DTSEC10, + SERDES_PRCTL_COUNT /* Keep this item the last one */ }; enum srds { |