From: Wolfgang Denk Date: Mon, 31 Mar 2008 22:18:02 +0200 Subject: [U-Boot-Users] [PATCH 3/3] QE IO - Add pario command In-Reply-To: Your message of "Mon, 31 Mar 2008 18:37:48 +0300." Message-ID: <20080331201802.8605C248BF@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de In message you wrote: > > > I don't think is a good idea. The code as presented is actually not > > suited for such an extension. And I definitly don't want to plan for > > another #ifdef maze. > > > Are you aware of the "reginfo" command? Few people seem to know it. > > > Maybe you should add such code there. > > As far as I managed to understand, reginfo just shows a dump of CPU > based register values, while pario allows you to set and get the value > of a GPIO port - two different things. We found this very useful for > debugging our board, and I think it can be useful for many other > processor families as well. I'm aware of this. Changing register contents seems a useful extension to me, too. That's why I wrote "add such code". I think something like Print all (or a predefined set of) registers: => reg Print a specific register: => reg name Set a specific register to "value": => reg name value would be generally useful, not only for parallel I/O registers. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de "If it ain't broke, don't fix it." - Bert Lantz