From mboxrd@z Thu Jan 1 00:00:00 1970 From: York Sun Date: Thu, 22 Jan 2015 18:38:22 -0600 Subject: [U-Boot] [PATCH v3 02/11] arch/powerpc: Fix mapping of Freescale SerDes protocols In-Reply-To: <1421064519-6248-3-git-send-email-codrin.ciubotariu@freescale.com> References: <1421064519-6248-1-git-send-email-codrin.ciubotariu@freescale.com> <1421064519-6248-3-git-send-email-codrin.ciubotariu@freescale.com> Message-ID: <54C197FE.40800@freescale.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 01/12/2015 06:08 AM, Codrin Ciubotariu wrote: > 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 > --- > > Changes for v2: There is no v1 version of this patch; > > Changes for v3: > - replaced 'int' type of seredesX_prtcl_map[] with 'u8'; > - removed "Change-id" line from comment; > Applied to u-boot-mpc85xx master branch, awaiting upstream. York