From: Wolfgang Denk Date: Tue, 30 Mar 2010 23:34:24 +0200 Subject: [U-Boot] [PATCH 2/3] ARM1176: TI: TNETV107X soc initial support In-Reply-To: <8FFAA0BFC4E5374B8F85F65FE1F2BFA58BA44726@dlee02.ent.ti.com> References: <1269893792-15248-1-git-send-email-cyril@ti.com> <1269893792-15248-2-git-send-email-cyril@ti.com> <1269893792-15248-3-git-send-email-cyril@ti.com> <20100330204900.11DA9E73028@gemini.denx.de> <8FFAA0BFC4E5374B8F85F65FE1F2BFA58BA44726@dlee02.ent.ti.com> Message-ID: <20100330213424.08552E73028@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 Dear "Chemparathy, Cyril", In message <8FFAA0BFC4E5374B8F85F65FE1F2BFA58BA44726@dlee02.ent.ti.com> you wrote: > > > > +void lpsc_control(unsigned int id, int state) > > > +{ > > > + __lpsc_control(1, -1, id, state); > > > +} > > > + > > > +int lpsc_status(unsigned int id) > > > +{ > > > + return psc_reg_read(PSC_MDSTAT(id)) & 0x1f; > > > +} > > > + > > > +void clk_enable(unsigned int id) > > > +{ > > > + lpsc_control(id, PSC_MDCTL_NEXT_ENABLE); > > > +} > > > + > > > +void clk_disable(unsigned int id) > > > +{ > > > + lpsc_control(id, PSC_MDCTL_NEXT_DISABLE); > > > +} > > > > These should probably be inlined ? > > Are you referring to lpsc_control(), or to clk_enable/clk_disable? Both of them. > The former can be eliminated, I think. > The latter are used elsewhere. Are you recommending that I inline and move to a header? Yes. Assuming we really need sone one-line wrapper functions. 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 Real computer scientists despise the idea of actual hardware. Hard- ware has limitations, software doesn't. It's a real shame that Turing machines are so poor at I/O.