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 2/2] ORIGEN: Add MMC SPL support
Date: Wed, 3 Aug 2011 09:19:06 +0530	[thread overview]
Message-ID: <CANuQgHHSbRTFpcZUR=CWpF_mj7hok_HYfAgy4r17hnR8ObwsGg@mail.gmail.com> (raw)
In-Reply-To: <20110731100349.9667D12B7AE4@gemini.denx.de>

Dear Wolfgang Denk,

On 31 July 2011 15:33, Wolfgang Denk <wd@denx.de> wrote:

> Dear Chander Kashyap,
>
> In message <1311914519-10531-3-git-send-email-chander.kashyap@linaro.org>
> you wrote:
> > Adds mmc boot support.
> >
> > Signed-off-by: Chander Kashyap <chander.kashyap@linaro.org>
> > ---
> >  mmc_spl/board/samsung/origen/Makefile             |  106
> ++++++++++++++++
> >  mmc_spl/board/samsung/origen/mmc_boot.c           |   57 +++++++++
> >  mmc_spl/board/samsung/origen/tools/mkv310_image.c |  140
> +++++++++++++++++++++
> >  mmc_spl/board/samsung/origen/u-boot.lds           |   88 +++++++++++++
> >  4 files changed, 391 insertions(+), 0 deletions(-)
> >  create mode 100644 mmc_spl/board/samsung/origen/Makefile
> >  create mode 100644 mmc_spl/board/samsung/origen/mmc_boot.c
> >  create mode 100644 mmc_spl/board/samsung/origen/tools/mkv310_image.c
> >  create mode 100644 mmc_spl/board/samsung/origen/u-boot.lds
>
> PLease adapt this code to the new SPL infrastructure that has recently
> been introduced.
>
Yes i will use the new SPL Infrastructure.

>
>
> > +typedef u32(*copy_sd_mmc_to_mem) \
> > +     (u32 start_block, u32 block_count, u32 *dest_addr);
>
> Quote CodingStyle:
>
>        Lots of people think that typedefs "help readability". Not so.
>
> > +void copy_uboot_to_ram(void)
> > +{
> > +     copy_sd_mmc_to_mem copy_bl2 = (copy_sd_mmc_to_mem)*(u32
> *)(0x02020030);
> > +     copy_bl2(BL2_START_OFFSET,\
> > +             BL2_SIZE_BLOC_COUNT, (u32 *)CONFIG_SYS_TEXT_BASE);
> > +}
>
> This code is, in addition to the magic 0x02020030 constant, basicly
> unreadable.
>
> The typedef is especially useless as it is used only in this single
> case.  Please clean this up.
>
> > diff --git a/mmc_spl/board/samsung/origen/u-boot.lds
> b/mmc_spl/board/samsung/origen/u-boot.lds
> > new file mode 100644
> > index 0000000..4a231d9
> > --- /dev/null
> > +++ b/mmc_spl/board/samsung/origen/u-boot.lds
>
> What exactly is the reason for needing your own, custom linker script?
>
> 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
> Defaults are wonderful, just like fire.
>                  - Larry Wall in <1996Mar6.004121.27890@netlabs.com>
>



-- 
with warm regards,
Chander Kashyap

      reply	other threads:[~2011-08-03  3:49 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
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 [this message]

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='CANuQgHHSbRTFpcZUR=CWpF_mj7hok_HYfAgy4r17hnR8ObwsGg@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.