From: Christoph Fritz <chf.fritz@googlemail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] mx6sx: Add initial support for Samtec VIN|ING 2000 board
Date: Wed, 23 Nov 2016 17:30:46 +0100 [thread overview]
Message-ID: <1479918646.11664.14.camel@googlemail.com> (raw)
In-Reply-To: <b82992b0-93e3-6a5f-732b-cf627271e890@denx.de>
On Tue, 2016-11-22 at 16:22 +0100, Marek Vasut wrote:
> On 11/22/2016 03:48 PM, Christoph Fritz wrote:
[...]
> > diff --git a/board/samtec/vining2000/imximage.cfg b/board/samtec/vining2000/imximage.cfg
> > new file mode 100644
> > index 0000000..4133dda
> > --- /dev/null
> > +++ b/board/samtec/vining2000/imximage.cfg
> > @@ -0,0 +1,132 @@
> > +/*
> > + * Copyright (C) 2016 samtec automotive software & electronics gmbh
> > + *
> > + * SPDX-License-Identifier: GPL-2.0+
> > + */
> > +
> > +#define __ASSEMBLY__
> > +#include <config.h>
>
> Is this needed at all ?
yes
> > +{
> > + unsigned char offset, i, switch_num;
> > + u32 id;
> > + int ret;
> > +
> > + pmic_reg_read(p, PFUZE100_DEVICEID, &id);
> > + id = id & 0xf;
> > +
> > + if (id == 0) {
> > + switch_num = 6;
> > + offset = PFUZE100_SW1CMODE;
> > + } else if (id == 1) {
> > + switch_num = 4;
> > + offset = PFUZE100_SW2MODE;
> > + } else {
> > + printf("Not supported, id=%d\n", id);
> > + return -EINVAL;
> > + }
> > +
> > + ret = pmic_reg_write(p, PFUZE100_SW1ABMODE, mode);
>
> Why do you need to do this write ?
to init the PMIC mode to APS_PFM
[...]
> > +int board_phy_config(struct phy_device *phydev)
> > +{
> > + if (phydev->drv->config)
> > + phydev->drv->config(phydev);
>
> Is this really needed?
no
[...]
Thanks,
I'll reroll this patch.
next prev parent reply other threads:[~2016-11-23 16:30 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-22 14:48 [U-Boot] [PATCH] mx6sx: Add initial support for Samtec VIN|ING 2000 board Christoph Fritz
2016-11-22 15:22 ` Marek Vasut
2016-11-23 16:30 ` Christoph Fritz [this message]
2016-11-23 16:33 ` [U-Boot] [PATCH v2] " Christoph Fritz
2016-11-23 16:49 ` Marek Vasut
2016-11-23 18:39 ` [U-Boot] [PATCH v3] " Christoph Fritz
2016-11-23 19:04 ` Marek Vasut
2016-11-23 22:26 ` [U-Boot] [PATCH v4] " Christoph Fritz
2016-11-23 22:48 ` Marek Vasut
2016-11-24 9:45 ` [U-Boot] [PATCH v5] " Christoph Fritz
2016-11-25 10:39 ` Marek Vasut
2016-11-29 15:13 ` [U-Boot] [PATCH v6] " Christoph Fritz
2016-11-29 15:21 ` Stefano Babic
2016-11-29 17:24 ` Marek Vasut
2016-11-30 8:56 ` 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=1479918646.11664.14.camel@googlemail.com \
--to=chf.fritz@googlemail.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 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.