public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Stefano Babic <sbabic@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] imx6: Add Phytec PCM058 i.MX6 Quad
Date: Wed, 8 Jun 2016 10:20:47 +0200	[thread overview]
Message-ID: <5757D55F.2080901@denx.de> (raw)
In-Reply-To: <CAOMZO5DSQR2yCGO4xETW0CMcX0EiOUtgv_nj2DoVJppmatQadg@mail.gmail.com>

Hi Fabio,

On 08/06/2016 04:11, Fabio Estevam wrote:
> Hi Stefano,
> 
> On Mon, Jun 6, 2016 at 6:49 AM, Stefano Babic <sbabic@denx.de> wrote:
> 
>> diff --git a/board/phytec/pcm058/README b/board/phytec/pcm058/README
>> new file mode 100644
>> index 0000000..90e2818
>> --- /dev/null
>> +++ b/board/phytec/pcm058/README
>> @@ -0,0 +1,9 @@
>> +Building U-Boot for phytec-mira
>> +-------------------------------
>> +
>> +There are two versions of the board (NAND or eMMC).
>> +
>> +To build for NAND:
>> +
>> +$ make phytec_mira_defconfig
> 
> This patch does not add the phytec_mira_defconfig file, so please fix
> the readme accordingly.
> 

Right - I changed the name back to be compliant with other phytec boards
in U-Boot, but I should improve the README - I ill do in V2.

On Phytec's website, the board is named (to be acquired) as
phyboard-mira. I will write in README that it is the same board, with a
link to Website.

>> +int board_spi_cs_gpio(unsigned bus, unsigned cs)
>> +{
>> +       if (bus != 0 || (cs != 0))
>> +               return -1;
> 
> return -EINVAL?
> 

Right !

>> +int board_init(void)
>> +{
>> +       /* address of boot parameters */
>> +       gd->bd->bi_boot_params = PHYS_SDRAM + 0x100;
>> +
>> +#if 1
> 
> #ifdef CONFIG_SYS_I2C_MXC ?
> 

Ok, thanks !

>> +       setup_i2c(2, CONFIG_SYS_I2C_SPEED, 0x7f, &i2c_pad_info2);
>> +#endif
> 
> 
>> +const struct mx6dq_iomux_ddr_regs mx6_ddr_ioregs = {
> 
> static?

Of course - I will fix it in the whole file.

> 
>> +       .dram_sdclk_0 = 0x00000030,
>> +       .dram_sdclk_1 = 0x00000030,
>> +       .dram_cas = 0x00000030,
>> +       .dram_ras = 0x00000030,
>> +       .dram_reset = 0x00000030,
>> +       .dram_sdcke0 = 0x00000030,
>> +       .dram_sdcke1 = 0x00000030,
>> +       .dram_sdba2 = 0x00000000,
>> +       .dram_sdodt0 = 0x00000030,
>> +       .dram_sdodt1 = 0x00000030,
>> +       .dram_sdqs0 = 0x00000030,
>> +       .dram_sdqs1 = 0x00000030,
>> +       .dram_sdqs2 = 0x00000030,
>> +       .dram_sdqs3 = 0x00000030,
>> +       .dram_sdqs4 = 0x00000030,
>> +       .dram_sdqs5 = 0x00000030,
>> +       .dram_sdqs6 = 0x00000030,
>> +       .dram_sdqs7 = 0x00000030,
>> +       .dram_dqm0 = 0x00000030,
>> +       .dram_dqm1 = 0x00000030,
>> +       .dram_dqm2 = 0x00000030,
>> +       .dram_dqm3 = 0x00000030,
>> +       .dram_dqm4 = 0x00000030,
>> +       .dram_dqm5 = 0x00000030,
>> +       .dram_dqm6 = 0x00000030,
>> +       .dram_dqm7 = 0x00000030,
>> +};
>> +
>> +const struct mx6dq_iomux_grp_regs mx6_grp_ioregs = {
> 
> static?
> 
>> +       .grp_ddr_type =  0x000C0000,
>> +       .grp_ddrmode_ctl =  0x00020000,
>> +       .grp_ddrpke =  0x00000000,
>> +       .grp_addds = IMX6Q_DRIVE_STRENGTH,
>> +       .grp_ctlds = IMX6Q_DRIVE_STRENGTH,
>> +       .grp_ddrmode =  0x00020000,
>> +       .grp_b0ds = IMX6Q_DRIVE_STRENGTH,
>> +       .grp_b1ds = IMX6Q_DRIVE_STRENGTH,
>> +       .grp_b2ds = IMX6Q_DRIVE_STRENGTH,
>> +       .grp_b3ds = IMX6Q_DRIVE_STRENGTH,
>> +       .grp_b4ds = IMX6Q_DRIVE_STRENGTH,
>> +       .grp_b5ds = IMX6Q_DRIVE_STRENGTH,
>> +       .grp_b6ds = IMX6Q_DRIVE_STRENGTH,
>> +       .grp_b7ds = IMX6Q_DRIVE_STRENGTH,
>> +};
>> +
>> +const struct mx6_mmdc_calibration mx6_mmcd_calib = {
> 
> static?
> 
>> --- /dev/null
>> +++ b/include/configs/pcm058.h
>> @@ -0,0 +1,140 @@
>> +/*
>> + * Copyright (C) Stefano Babic <sbabic@denx.de>
>> + *
>> + * SPDX-License-Identifier:    GPL-2.0+
>> + */
>> +
>> +
>> +#ifndef __PHYBOARD_MIRA_CONFIG_H
>> +#define __PHYBOARD_MIRA_CONFIG_H
> 
> There is no "mira" in the file name.

Thanks - I fix in V2

Best regards,
Stefano

-- 
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================

      reply	other threads:[~2016-06-08  8:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-06  9:49 [U-Boot] [PATCH] imx6: Add Phytec PCM058 i.MX6 Quad Stefano Babic
2016-06-08  2:11 ` Fabio Estevam
2016-06-08  8:20   ` Stefano Babic [this message]

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=5757D55F.2080901@denx.de \
    --to=sbabic@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