public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Lukasz Majewski <lukma@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] imx6: iomux: Add generic function to set RGMII IO voltage on IMX6 SoCs
Date: Tue, 7 Nov 2017 11:12:24 +0100	[thread overview]
Message-ID: <20171107111224.38b27606@jawa> (raw)
In-Reply-To: <8a139af5-4bb6-80c8-facc-d5838ed26ece@denx.de>

Hi Stefano,

> On 07/11/2017 10:23, Stefano Babic wrote:
> > On 31/10/2017 13:26, Lukasz Majewski wrote:  
> >> This commit provides generic function to set the RGMII/HSIC IO
> >> voltage level on iMX6 devices.
> >>
> >> Signed-off-by: Lukasz Majewski <lukma@denx.de>
> >> ---
> >>
> >>  arch/arm/include/asm/arch-mx6/iomux.h     | 13 +++++++++++++
> >>  arch/arm/include/asm/arch-mx6/sys_proto.h | 11 +++++++++++
> >>  2 files changed, 24 insertions(+)
> >>
> >> diff --git a/arch/arm/include/asm/arch-mx6/iomux.h
> >> b/arch/arm/include/asm/arch-mx6/iomux.h index
> >> 907cb408ff..ee3a56583b 100644 ---
> >> a/arch/arm/include/asm/arch-mx6/iomux.h +++
> >> b/arch/arm/include/asm/arch-mx6/iomux.h @@ -178,4 +178,17 @@
> >>  				|IOMUXC_GPR13_SATA_PHY_3_MASK \
> >>  				|IOMUXC_GPR13_SATA_PHY_2_MASK \
> >>  				|IOMUXC_GPR13_SATA_PHY_1_MASK)
> >> +
> >> +/*
> >> + * Setup RGMII voltage levels on iMX6 SoC - the
> >> + *
> >> + * IOMUXC_SW_PAD_CTL_GRP_DDR_TYPE_RGMII - register
> >> + *
> >> + * 1P2V_IO - USB_HSIC, MIPI_HSI
> >> + * 1P5V_IO - ENET pins
> >> + */
> >> +#define IOMUXC_SW_PAD_CTL_GRP_DDR_TYPE_RGMII	0x020e0790
> >> +#define DDR_SEL_1P2V_IO (0x2 << 18)
> >> +#define DDR_SEL_1P5V_IO (0x3 << 18)
> >> +
> >>  #endif	/* __ASM_ARCH_IOMUX_H__ */
> >> diff --git a/arch/arm/include/asm/arch-mx6/sys_proto.h
> >> b/arch/arm/include/asm/arch-mx6/sys_proto.h index
> >> b22a7a0f8b..72ab7d814f 100644 ---
> >> a/arch/arm/include/asm/arch-mx6/sys_proto.h +++
> >> b/arch/arm/include/asm/arch-mx6/sys_proto.h @@ -6,6 +6,7 @@
> >>   */
> >>  
> >>  #include <asm/mach-imx/sys_proto.h>
> >> +#include <asm/arch/iomux.h>
> >>  
> >>  #define USBPHY_PWD		0x00000000
> >>  
> >> @@ -16,3 +17,13 @@
> >>  
> >>  int imx6_pcie_toggle_power(void);
> >>  int imx6_pcie_toggle_reset(void);
> >> +
> >> +/**
> >> + * iomuxc_set_rgmii_io_voltage - set voltage level of RGMII/USB
> >> pins
> >> + *
> >> + * @param io_vol - the voltage IO level of pins
> >> + */
> >> +static inline void iomuxc_set_rgmii_io_voltage(int io_vol)
> >> +{
> >> +	__raw_writel(io_vol,
> >> IOMUXC_SW_PAD_CTL_GRP_DDR_TYPE_RGMII); +}
> >>  
> > 
> > Applied to u-boot-imx, -master, thanke !
> >   
> 
> I was too optimistic. This breaks the "marsboard" board (same name for
> function). Can you review this and fix it, please ?

I've just sent the fix for "marsboard" (double inclusion of sys_proto.h)

> 
> Thanks,
> Stefano
> 
> 



Best regards,

Lukasz Majewski

--

DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20171107/d65d3c11/attachment.sig>

  reply	other threads:[~2017-11-07 10:12 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-31 12:26 [U-Boot] [PATCH] imx6: iomux: Add generic function to set RGMII IO voltage on IMX6 SoCs Lukasz Majewski
2017-11-07  9:23 ` Stefano Babic
2017-11-07  9:28   ` Stefano Babic
2017-11-07 10:12     ` Lukasz Majewski [this message]
2017-11-07 10:10   ` [U-Boot] [PATCH] board: imx6: marsboard: Remove doubled #include <asm/arch/sys_proto.h> Lukasz Majewski
2017-11-09  9:19     ` Stefano Babic
2017-11-09  9:49       ` Lukasz Majewski
2017-11-09 10:07         ` 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=20171107111224.38b27606@jawa \
    --to=lukma@denx.de \
    --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