From: Chee, Tien Fong <tien.fong.chee@intel.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 06/10] arm: socfpga: arria10: Added drivers for Arria10 Reset Manager
Date: Fri, 9 Dec 2016 10:04:30 +0000 [thread overview]
Message-ID: <1481277869.2741.49.camel@intel.com> (raw)
In-Reply-To: <01a4cb89-49ce-1bba-80e1-2a09812aeee2@denx.de>
On Rab, 2016-12-07 at 14:58 +0100, Marek Vasut wrote:
> On 12/07/2016 12:58 PM, Chee, Tien Fong wrote:
> >
> > On Sel, 2016-12-06 at 13:55 +0100, Marek Vasut wrote:
> > >
> > > On 12/06/2016 09:08 AM, Chee Tien Fong wrote:
> > > >
> > > >
> > > > From: Tien Fong Chee <tien.fong.chee@intel.com>
> > > >
> > > > Drivers for reset manager is restructured such that common
> > > > functions,
> > > > gen5 drivers and Arria10 drivers are moved to reset_manager.c,
> > > > reset_manager_gen5.c and reset_manager_arria10.c respectively.
> > > >
> > > > Signed-off-by: Tien Fong Chee <tien.fong.chee@intel.com>
> > > > Cc: Marek Vasut <marex@denx.de>
> > > > Cc: Dinh Nguyen <dinguyen@kernel.org>
> > > > Cc: Chin Liang See <chin.liang.see@intel.com>
> > > > Cc: Tien Fong <skywindctf@gmail.com>
> [...]
>
> >
> > >
> > > >
> > > > +void reset_deassert_dedicated_peripherals(void)
> > > > +{
> > > > + int i;
> > > > + u32 mask0 = 0;
> > > > + u32 mask1 = 0;
> > > > + u32 pinmux_addr = SOCFPGA_PINMUX_DEDICATED_IO_ADDRESS;
> > > > + u32 mask = 0;
> > > > +#if defined(CONFIG_MMC)
> > > > + mask |= ALT_RSTMGR_PER0MODRST_SDMMCECC_SET_MSK;
> > > > +#elif defined(CONFIG_CADENCE_QSPI)
> > > > + mask |= ALT_RSTMGR_PER0MODRST_QSPIECC_SET_MSK;
> > > > +#elif defined(CONFIG_NAND_DENALI)
> > > > + mask |= ALT_RSTMGR_PER0MODRST_NANDECC_SET_MSK;
> > > > +#else
> > > Shouldn't this come from OF instead of being ifdef'd ?
> > >
> > What is OF?
> Device Tree (Open Firmware).
>
> >
> > what is your suggestion to make this function generic for
> > all type of flash?
> Pull it from OF ?
>
Why you prefer device tree implementation over #define in defconfig,
because there is performance penalty.
> >
> > >
> > > >
> > > > +#error "unsupported dedicated peripherals"
> > > > +#endif
> > > > + mask |= ALT_RSTMGR_PER0MODRST_DMAECC_SET_MSK;
> > > > +
> > > > + /* enable ECC OCP first */
> > > > + clrbits_le32(&reset_manager_base->per0modrst, mask);
> > > [...]
>
next prev parent reply other threads:[~2016-12-09 10:04 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-06 8:08 [U-Boot] [PATCH 06/10] arm: socfpga: arria10: Added drivers for Arria10 Reset Manager Chee Tien Fong
2016-12-06 12:55 ` Marek Vasut
2016-12-07 11:58 ` Chee, Tien Fong
2016-12-07 13:58 ` Marek Vasut
2016-12-09 10:04 ` Chee, Tien Fong [this message]
2016-12-09 12:51 ` Marek Vasut
2016-12-19 6:53 ` Chee, Tien Fong
2016-12-19 7:47 ` Marek Vasut
2016-12-19 9:30 ` Chee, Tien Fong
2016-12-19 10:02 ` Marek Vasut
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=1481277869.2741.49.camel@intel.com \
--to=tien.fong.chee@intel.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.