From: Philippe Reynes Date: Sat, 25 Aug 2012 15:46:57 +0100 (BST) Subject: [U-Boot] [PATCH 1/2] gpio: add gpio api support to mx27 (v3) In-Reply-To: <5038E0C6.5040907@denx.de> References: <1345840590-21830-1-git-send-email-tremyfr@yahoo.fr> <1345840590-21830-2-git-send-email-tremyfr@yahoo.fr> <5038E0C6.5040907@denx.de> Message-ID: <1345906017.89515.YahooMailNeo@web29502.mail.ird.yahoo.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Stefano, > +??? u32 gpio_dr; /* DR */ > +??? u32 gius; > +??? u32 ssr; What about my proposal to change this into gpio_psr ? I mean, if Freescale calls some times the register "Sample Status Register" and on other SOCs "Pad Status Register", but anyway the register does the same, it is not a good reason to follow it. I think you're right, sorry, I read your feedback too fast and missed this one. I update my patch and send a v4. > +#ifndef CONFIG_MX27 >? ??? val = (readl(®s->gpio_psr) >> gpio) & 0x01; > +#else > +??? val = (readl(®s->ssr) >> gpio) & 0x01; > +#endif Not required if ssr becomes gpio_psr I agree too. Regards, Philippe