From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Fritz Date: Wed, 23 Nov 2016 17:30:46 +0100 Subject: [U-Boot] [PATCH] mx6sx: Add initial support for Samtec VIN|ING 2000 board In-Reply-To: References: <1479826104.15035.8.camel@googlemail.com> Message-ID: <1479918646.11664.14.camel@googlemail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.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 > > 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.