From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tirumala Marri Date: Thu, 25 Aug 2011 11:05:15 -0700 Subject: [U-Boot] [PATCH] ppc460: read get_sys_info from CPR registers instead of STRP registers In-Reply-To: <201107251355.02565.sr@denx.de> References: <1311260763-15422-1-git-send-email-mike@mikebwilliams.com> <201107251355.02565.sr@denx.de> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Mike and Stefan, >Thanks. Unfortunately this patch introduces compile errors for 460SX boards >(e.g. redwood): >[stefan at kubuntu u-boot-ppc4xx (master)]$ ./MAKEALL redwood >Configuring for redwood board... >speed.c: In function 'get_sys_info': >speed.c:339: error: 'PLLD_FWDVA_MASK' undeclared (first use in this function) >speed.c:339: error: (Each undeclared identifier is reported only once >speed.c:339: error: for each function it appears in.) >speed.c:340: error: 'PLLD_FWDVB_MASK' undeclared (first use in this function) >speed.c:341: error: 'PLLD_FBDV_MASK' undeclared (first use in this function) >speed.c:344: error: 'OPBDV_MASK' undeclared (first use in this function) >speed.c:348: error: 'PERDV_MASK' undeclared (first use in this function) >speed.c:351: error: 'CPR0_PLBED' undeclared (first use in this function) >speed.c:352: error: 'PLBEDDV_MASK' undeclared (first use in this function) >speed.c:357: error: 'PLLC_FBSEL_MASK' undeclared (first use in this function) >make[1]: *** [speed.o] Error 1 >make[1]: *** Waiting for unfinished jobs.... >make: *** [arch/powerpc/cpu/ppc4xx/libppc4xx.o] Error 2 >make: *** Waiting for unfinished jobs.... >Could you please check, if the 460SX has the same registers and bits as >460EX/GT and extend its header as well? [marri] 460Ex/Gt and 460Sx has different clocking subsystems. This code will Have to split to support to read the speed settings from CPU registers. If you can include the change to split this function we will submit our patch Based on yours. Please suggest. Thanks, Marri