From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jerry Van Baren Date: Tue, 11 Jan 2005 17:02:07 -0500 Subject: [U-Boot-Users] How BRG output can be routed to a pin In-Reply-To: <3D9FDCA910DD4445896A0BE5ECF009D40240EFC1@bla.satyam.com> References: <3D9FDCA910DD4445896A0BE5ECF009D40240EFC1@bla.satyam.com> Message-ID: <41E44CDF.8010207@smiths-aerospace.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Apoorv_Sangal wrote: > Hi All, > I am working on Motorola Power Quicc II 8266 based PMC card. > Can any one please let me know how to route the BRG output to a pin. > > Thanks and Regards, > Apoorv You need to initialize the proper port to do this. 1) Figure out which port pin the BRG comes out. Many functions are routable to two different pins, a "primary" (bolded in the User's Manual) and "secondary". Board schematics and/or hardware support is helpful here. For instance, BRG6:BRGO is PC21. 2) Look this up in Section 35 of your 8260 User's Manual (or other documentation). 3) In my random pick of BRG6, Table 35-7 (p. 35-15) shows that bit 21 of register PSORC needs to be 0 and bit 21 of PDIRC needs to be 1. 4) Find your board's port initialization and Do The Right Thing with it (alternately, you may need/want to put this in your support code for whatever is using the BRG). gvb