From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dirk Behme Date: Sat, 16 Mar 2013 06:59:41 +0100 Subject: [U-Boot] [PATCH 2/2] mx6qsabrelite: Do not hardcode the CPU revision In-Reply-To: <1363381594-17077-2-git-send-email-festevam@gmail.com> References: <1363381594-17077-1-git-send-email-festevam@gmail.com> <1363381594-17077-2-git-send-email-festevam@gmail.com> Message-ID: <51440A4D.5060005@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Am 15.03.2013 22:06, schrieb Fabio Estevam: > From: Fabio Estevam > > Instead of hardcoding the CPU revision, it is better to use get_cpu_rev(). I think to remember that there is a reason why it is hard coded this way. Have you tested this with the Vivante GPU driver? If I remember correctly they check for exactly the 0x63000 and if it's not there, it won't work (?). Best regards Dirk > Signed-off-by: Fabio Estevam > --- > board/freescale/mx6qsabrelite/mx6qsabrelite.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/board/freescale/mx6qsabrelite/mx6qsabrelite.c b/board/freescale/mx6qsabrelite/mx6qsabrelite.c > index 5b69a6d..9bd444e 100644 > --- a/board/freescale/mx6qsabrelite/mx6qsabrelite.c > +++ b/board/freescale/mx6qsabrelite/mx6qsabrelite.c > @@ -26,6 +26,7 @@ > #include > #include > #include > +#include > #include > #include > #include > @@ -300,7 +301,7 @@ int board_mmc_init(bd_t *bis) > > u32 get_board_rev(void) > { > - return 0x63000 ; > + return get_cpu_rev(); > } > > #ifdef CONFIG_MXC_SPI >