All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chander Kashyap <chander.kashyap@linaro.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v4 1/2] ARMV7: Add support for Samsung ORIGEN board
Date: Thu, 11 Aug 2011 09:47:49 +0530	[thread overview]
Message-ID: <CANuQgHHUS1nhJNBRVktSKZ2TdDUM-nGW-hgd4u43b81w+XWyhg@mail.gmail.com> (raw)
In-Reply-To: <m2y5z1po2a.fsf@ohwell.denx.de>

Hi  Detlev,

On 10 August 2011 15:48, Detlev Zundel <dzu@denx.de> wrote:

> Hi Chander,
>
> [...]
>
> >>> lease get rid of all these magic hard coded constants.  Use symbolic
> >>> names instead. If needed, auto-generate these from the respective C
> >>> structs.  If needed, create the C structs.
> >>>
> >>
> >> I will change hard coded values to  symbolic names
> >>
> >
> > While doing this, I find that the values written to the registers are
> used
> > just once. So do you still prefer to have them as macros ? I did convert
> the
> > register offsets and addresses to macros, but did not find it right to
> have
> > macros for register values that are used just once. Please advise.
>
> Most of all we want to get rid of address constants in code.  For
> _values_ that are written to some register, my personal preference is
> not so strong, alas if you _do_ use macros, usually already the macro
> name carries documentation as to what this is and it will make code
> reuse easier for the people having to maintain or build upon your code
> in the future.
>

Thanks for the inputs.

>
> Cheers
>  Detlev
>
> --
> Zivilisation ist der Zaubertrick, der uns unsere wahre Natur verbirgt.
>                                            -- Salman Rushdie
> --
> DENX Software Engineering GmbH,      MD: Wolfgang Denk & Detlev Zundel
> HRB 165235 Munich,  Office: Kirchenstr.5, D-82194 Groebenzell, Germany
> Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: dzu at denx.de
>



-- 
with warm regards,
Chander Kashyap

  reply	other threads:[~2011-08-11  4:17 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-29  4:41 [U-Boot] [PATCH v4 0/2] ORIGEN Board Support Chander Kashyap
2011-07-29  4:41 ` [U-Boot] [PATCH v4 1/2] ARMV7: Add support for Samsung ORIGEN board Chander Kashyap
2011-07-31 10:00   ` Wolfgang Denk
2011-08-03  3:47     ` Chander Kashyap
2011-08-03  5:59       ` Wolfgang Denk
2011-08-03  7:24         ` Chander Kashyap
2011-08-09 10:32       ` Chander Kashyap
2011-08-10 10:18         ` Detlev Zundel
2011-08-11  4:17           ` Chander Kashyap [this message]
2011-07-29  4:41 ` [U-Boot] [PATCH v4 2/2] ORIGEN: Add MMC SPL support Chander Kashyap
2011-07-31  6:56   ` Lei Wen
2011-07-31  8:19     ` Wolfgang Denk
2011-07-31  9:47       ` Wolfgang Denk
2011-08-01  6:59     ` Chander Kashyap
2011-08-01 10:09       ` Wolfgang Denk
2011-08-01 11:52         ` Chander Kashyap
2011-07-31 10:03   ` Wolfgang Denk
2011-08-03  3:49     ` Chander Kashyap

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=CANuQgHHUS1nhJNBRVktSKZ2TdDUM-nGW-hgd4u43b81w+XWyhg@mail.gmail.com \
    --to=chander.kashyap@linaro.org \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.