From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Nelson Date: Fri, 15 Mar 2013 17:20:54 -0700 Subject: [U-Boot] [PATCH 1/2] nitrogen6x: Pass the correct CPU revision to the kernel In-Reply-To: <1363381594-17077-1-git-send-email-festevam@gmail.com> References: <1363381594-17077-1-git-send-email-festevam@gmail.com> Message-ID: <5143BAE6.3030902@boundarydevices.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 03/15/2013 02:06 PM, Fabio Estevam wrote: > From: Fabio Estevam > > As nitrogen6x boards support different i.MX6 flavors (quad, dual-lite and solo) > the correct CPU revision needs to passed to the kernel, so call get_cpu_rev() > instead of hardcoding it. > > Freescale 3.0.35 kernel assumes that the CPU revision is passed passed from the > bootloader. > > Signed-off-by: Fabio Estevam > --- > board/boundary/nitrogen6x/nitrogen6x.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/board/boundary/nitrogen6x/nitrogen6x.c b/board/boundary/nitrogen6x/nitrogen6x.c > index 229c237..fec0e3a 100644 > --- a/board/boundary/nitrogen6x/nitrogen6x.c > +++ b/board/boundary/nitrogen6x/nitrogen6x.c > @@ -330,7 +330,7 @@ int board_mmc_init(bd_t *bis) > > u32 get_board_rev(void) > { > - return 0x63000; > + return get_cpu_rev(); > } > > #ifdef CONFIG_MXC_SPI > This is the **board** revision, right? At first glance, the kernel seems to be getting the silicon revision from the same place as get_cpu_rev(): https://github.com/boundarydevices/linux-imx6/blob/boundary-imx_3.0.35_1.1.1/arch/arm/mach-mx6/cpu.c#L51 http://git.denx.de/u-boot.git/?p=u-boot.git;a=blob;f=arch/arm/cpu/armv7/mx6/soc.c;h=a8aad5dd0a6c8548277021ebe8f6e159dbf31b9b;hb=HEAD#l42 Is there a reference to the ATAG that I'm not seeing somewhere? Please advise, Eric