public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Stefano Babic <sbabic@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH V7 3/3] MX53: support for freescale MX53LOCO board
Date: Thu, 12 May 2011 11:03:16 +0200	[thread overview]
Message-ID: <4DCBA254.6070804@denx.de> (raw)
In-Reply-To: <BANLkTinQtv6cBcyBhDJQcyDmHDDLivVwcg@mail.gmail.com>

On 05/12/2011 08:13 AM, Jason Liu wrote:
> Hi, Stefano,
> 

Hi Jason,

>>>  u32 get_cpu_rev(void);
>>>  #define is_soc_rev(rev)      ((get_cpu_rev() & 0xFF) - rev)
>>>  void sdelay(unsigned long);
>>> +void pmic_reg_write(u32 reg, u32 value);
>>> +u32 pmic_reg_read(u32 reg);
>>
>> The pmic_ prototypes have nothing to do with the Soc prototype, as they
>> are specific for a driver. You should move them in the dialog header.
>>
> 
> I think I need create one head file named: include/dlg_pmic.h to include the
> pmic_reg_write/read declaration and not just put the declaration to
> da9053.h file, what's your idea?

You are right, I have only concerns to add a new file only to put three
prototypes.... Anyway, it seems to me also a cleaner solution.

However, the name of file should be general, as the prototypes are used
for all PMICs using the SPI/I2C interfaces. Probably spi_i2c_pmic.h to
stay coherent with the driver name.

Best regards,
Stefano Babic

-- 
=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
=====================================================================

  reply	other threads:[~2011-05-12  9:03 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-11  8:03 [U-Boot] [PATCH V7 1/3] MX5: clock: Add clock config interface Jason Liu
2011-05-11  8:03 ` [U-Boot] [PATCH V7 2/3] PMIC: Add dialog pmic support Jason Liu
2011-05-12  9:19   ` Stefano Babic
2011-05-13  3:08     ` Jason Liu
2011-05-13  6:38       ` Stefano Babic
2011-05-13  8:41         ` Jason Liu
2011-05-13  8:47           ` Stefano Babic
2011-05-13  9:04             ` Jason Hui
2011-05-11  8:03 ` [U-Boot] [PATCH V7 3/3] MX53: support for freescale MX53LOCO board Jason Liu
2011-05-11 12:03   ` Fabio Estevam
2011-05-12  5:31     ` Jason Hui
2011-05-11 12:37   ` Stefano Babic
2011-05-12  5:32     ` Jason Hui
2011-05-12  6:13     ` Jason Liu
2011-05-12  9:03       ` Stefano Babic [this message]
2011-05-13  3:13         ` Jason Hui
2011-05-20 18:35   ` Albert ARIBAUD
2011-05-16  9:26 ` [U-Boot] [PATCH V7 1/3] MX5: clock: Add clock config interface Stefano Babic
2011-05-17  6:25   ` Jason Liu
2011-05-17 11:15     ` Stefano Babic

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4DCBA254.6070804@denx.de \
    --to=sbabic@denx.de \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox