[U-Boot] [PATCH] imx6: Add Phytec PCM058 i.MX6 Quad

Stefano Babic sbabic at denx.de
Wed Jun 8 10:20:47 CEST 2016


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 at 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 at 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
=====================================================================


More information about the U-Boot mailing list