public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Chin Liang See <clsee@altera.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/1] socfpga: Adding System Manager driver which will configure the pin mux for real hardware Cyclone V
Date: Fri, 28 Jun 2013 11:10:19 -0500	[thread overview]
Message-ID: <1372435819.3106.9.camel@drezykow-VirtualBox.altera.com> (raw)
In-Reply-To: <20130628114023.GD22234@amd.pavel.ucw.cz>

Hi Pavel,


On Fri, 2013-06-28 at 13:40 +0200, ZY - pavel wrote:
> Hi!
> 
> > socfpga: Adding System Manager driver which will configure the pin mux
> > for real hardware Cyclone V  development kit (not Virtual Platform)
> > 
> > Signed-off-by: Chin Liang See <clsee@altera.com>
> 
> > diff --git a/arch/arm/cpu/armv7/socfpga/system_manager.c
> > b/arch/arm/cpu/armv7/socfpga/system_manager.c
> > new file mode 100644
> > index 0000000..f2707d8b
> > --- /dev/null
> > +++ b/arch/arm/cpu/armv7/socfpga/system_manager.c
> > @@ -0,0 +1,40 @@
> > +/*
> > + *  Copyright Altera Corporation (C) 2013. All rights reserved
> > + *
> > + *  This program is free software; you can redistribute it and/or
> > +modify it
> 
> Word wrapped.

Will fix with new email client

> 
> > +/*
> > + * Configure all the pin mux
> > + */
> 
> "the pin muxes" ?

Noted

> 
> > +void sysmgr_pinmux_init(void)
> > +{
> > +       unsigned long offset = CONFIG_SYSMGR_PINMUXGRP_OFFSET;
> > +
> > +       const unsigned long *pval = sys_mgr_init_table;
> > +       unsigned long i;
> > +
> > +       for (i = 0;
> > +               i < ((sizeof(sys_mgr_init_table)) / sizeof(unsigned long));
> 
> There's nice ARRAY_SIZE() macro that can be used.
> 

Noted

> 
> > --- /dev/null
> > +++ b/board/altera/socfpga_cyclone5/pinmux_config.c
> > @@ -0,0 +1,213 @@
> > +
> > +#include "pinmux_config.h"
> > +
> > +/* pin mux configuration data */
> > +unsigned long sys_mgr_init_table[CONFIG_HPS_PINMUX_NUM] = {
> > +       0, /* EMACIO0 - Unused */
> > +       2, /* EMACIO1 - USB */
> > +       2, /* EMACIO2 - USB */
> > +       2, /* EMACIO3 - USB */
> 
> Is this table auto-generated somehow?
> 
> If so, comment about that would be nice.
> 
> If not, perhaps we could put more than one entry on line, to make it
> shorter?

Yup, its auto generated by tools.
I will put comment to note this.

Thanks

Chin Liang

> 
> Thanks,
> 									Pavel

  reply	other threads:[~2013-06-28 16:10 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <0BB3B561D7068A4E89FD8E9ABFB538BEB3B2E44095@PG-ITMSG03.altera.priv.altera.com>
     [not found] ` <CAEM3b1BQWGLNvM+m26-OJv_ikc6LPbakiBQjvc2c7Fc5taUmjg@mail.gmail.com>
     [not found]   ` <0BB3B561D7068A4E89FD8E9ABFB538BEB3B2E44332@PG-ITMSG03.altera.priv.altera.com>
2013-06-27 13:35     ` [U-Boot] [PATCH 1/1] socfpga: Adding System Manager driver which will configure the pin mux for real hardware Cyclone V Chin Liang See
2013-06-28 11:40       ` Pavel Machek
2013-06-28 16:10         ` Chin Liang See [this message]
2013-07-01 10:39           ` Pavel Machek
2013-07-01 13:38             ` Chin Liang See
2013-06-28 21:20         ` [U-Boot] [PATCH v2 " Chin Liang See
2013-06-28 22:52           ` Wolfgang Denk
2013-07-01 10:42           ` Pavel Machek
2013-07-01 13:41             ` Chin Liang See
2013-07-02 11:37               ` Pavel Machek
2013-07-01 14:29             ` [U-Boot] [PATCH v3 1/2] socfpga: Adding System Manager driver Chin Liang See
2013-07-01 14:31               ` [U-Boot] [PATCH v3 2/2] " Chin Liang See

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=1372435819.3106.9.camel@drezykow-VirtualBox.altera.com \
    --to=clsee@altera.com \
    --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