From: Peng Fan <van.freenix@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 21/21] arm: imx: add i.MX6ULL 14x14 EVK board support
Date: Thu, 8 Sep 2016 09:35:51 +0800 [thread overview]
Message-ID: <20160908013549.GA9097@linux-7smt.suse> (raw)
In-Reply-To: <CAD6G_RRVfLrjnAwJyKZmADcK1C+i_zLubBvADbrrbEkeXOGanA@mail.gmail.com>
Hi Jagan,
On Wed, Sep 07, 2016 at 08:21:07PM +0530, Jagan Teki wrote:
>On Thu, Aug 11, 2016 at 11:32 AM, Peng Fan <van.freenix@gmail.com> wrote:
>> Add i.MX6ULL EVK board support:
>> Add device tree file, which is copied from NXP Linux.
>> Enabled DM_MMC, DM_GPIO, DM_I2C, DM_SPI, PINCTRL, DM_REGULATOR.
>> The uart iomux settings are still keeped in board file.
>>
>> Boot Log:
>> U-Boot 2016.09-rc1-00366-gbb419ef-dirty (Aug 11 2016 - 13:08:58 +0800)
>>
>> CPU: Freescale i.MX6ULL rev1.0 at 396MHz
>> CPU: Commercial temperature grade (0C to 95C) at 15C
>> Reset cause: POR
>> Model: Freescale i.MX6 ULL 14x14 EVK Board
>> Board: MX6ULL 14x14 EVK
>> DRAM: 512 MiB
>> MMC: initialized IMX pinctrl driver
>> FSL_SDHC: 0, FSL_SDHC: 1
>
><snip>
>
>> diff --git a/board/freescale/mx6ullevk/mx6ullevk.c b/board/freescale/mx6ullevk/mx6ullevk.c
>> new file mode 100644
>> index 0000000..489bf21
>> --- /dev/null
>> +++ b/board/freescale/mx6ullevk/mx6ullevk.c
>> @@ -0,0 +1,99 @@
>> +/*
>> + * Copyright (C) 2016 Freescale Semiconductor, Inc.
>> + *
>> + * SPDX-License-Identifier: GPL-2.0+
>> + */
>> +
>> +#include <asm/arch/clock.h>
>> +#include <asm/arch/iomux.h>
>> +#include <asm/arch/imx-regs.h>
>> +#include <asm/arch/crm_regs.h>
>> +#include <asm/arch/mx6-pins.h>
>> +#include <asm/arch/sys_proto.h>
>> +#include <asm/gpio.h>
>> +#include <asm/imx-common/iomux-v3.h>
>> +#include <asm/imx-common/boot_mode.h>
>> +#include <asm/io.h>
>> +#include <common.h>
>> +#include <fsl_esdhc.h>
>> +#include <linux/sizes.h>
>> +#include <mmc.h>
>> +
>> +DECLARE_GLOBAL_DATA_PTR;
>> +
>> +#define UART_PAD_CTRL (PAD_CTL_PKE | PAD_CTL_PUE | \
>> + PAD_CTL_PUS_100K_UP | PAD_CTL_SPEED_MED | \
>> + PAD_CTL_DSE_40ohm | PAD_CTL_SRE_FAST | PAD_CTL_HYS)
>> +
>> +int dram_init(void)
>> +{
>> + gd->ram_size = imx_ddr_size();
>> +
>> + return 0;
>> +}
>> +
>> +static iomux_v3_cfg_t const uart1_pads[] = {
>> + MX6_PAD_UART1_TX_DATA__UART1_DCE_TX | MUX_PAD_CTRL(UART_PAD_CTRL),
>> + MX6_PAD_UART1_RX_DATA__UART1_DCE_RX | MUX_PAD_CTRL(UART_PAD_CTRL),
>> +};
>> +
>> +static void setup_iomux_uart(void)
>> +{
>> + imx_iomux_v3_setup_multiple_pads(uart1_pads, ARRAY_SIZE(uart1_pads));
>> +}
>> +
>> +int board_mmc_get_env_dev(int devno)
>> +{
>> + return devno;
>> +}
>> +
>> +int mmc_map_to_kernel_blk(int devno)
>> +{
>> + return devno;
>> +}
>> +
>> +int board_early_init_f(void)
>> +{
>> + setup_iomux_uart();
>
>Don't we need iomux settings for sdhc? I guess pinctrl for SD not
>supporting now.
The pinctrl driver will configure the pinmux, no need to add iomux settings
in board file. In this patchset, I enabled PINCTRL, DM_MMC, DM_GPIO and etc.
Thanks,
Peng.
>
>thanks!
>--
>Jagan Teki
>Free Software Engineer | www.openedev.com
>U-Boot, Linux | Upstream Maintainer
>Hyderabad, India.
next prev parent reply other threads:[~2016-09-08 1:35 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-11 6:02 [U-Boot] [PATCH 00/21] imx: support i.MX6ULL and EVK board Peng Fan
2016-08-11 6:02 ` [U-Boot] [PATCH 01/21] imx: mx6ull: add iomux header file Peng Fan
2016-08-11 8:36 ` Stefano Babic
2016-08-11 6:02 ` [U-Boot] [PATCH 02/21] imx: mx6ull: add mx6ull major cpu type Peng Fan
2016-08-11 8:36 ` Stefano Babic
2016-08-11 6:02 ` [U-Boot] [PATCH 03/21] imx: mx6ull: add kconfig entry for MX6ULL Peng Fan
2016-08-11 6:02 ` [U-Boot] [PATCH 04/21] imx-common: introduce is_mx6ull Peng Fan
2016-08-11 6:02 ` [U-Boot] [PATCH 05/21] imx: ocotp: support i.MX6ULL Peng Fan
2016-08-11 6:02 ` [U-Boot] [PATCH 06/21] imx: timer: update gpt driver for i.MX6ULL Peng Fan
2016-08-11 8:38 ` Stefano Babic
2016-08-11 6:02 ` [U-Boot] [PATCH 07/21] imx: mx6ull: skip setting ahb clock Peng Fan
2016-08-11 8:38 ` Stefano Babic
2016-08-11 6:02 ` [U-Boot] [PATCH 08/21] imx: mx6ul: using runtime check when configuring PMIC_STBY_REQ Peng Fan
2016-08-11 8:39 ` Stefano Babic
2016-08-11 6:02 ` [U-Boot] [PATCH 09/21] imx: mx6ull: misc soc update Peng Fan
2016-08-11 6:02 ` [U-Boot] [PATCH 10/21] imx: mx6ull: adjust POR_B setting for i.MX6ULL Peng Fan
2016-08-11 6:02 ` [U-Boot] [PATCH 11/21] imx: mx6ull: update clock settings and CCM register map Peng Fan
2016-08-11 6:02 ` [U-Boot] [PATCH 12/21] imx: mx6ull: Update memory map address Peng Fan
2016-08-11 6:02 ` [U-Boot] [PATCH 13/21] imx: mx6ull: Add AIPS3 initialization Peng Fan
2016-08-11 6:02 ` [U-Boot] [PATCH 14/21] imx: imx6ull: adjust the ldo 1.2v bandgap voltage Peng Fan
2016-08-11 6:02 ` [U-Boot] [PATCH 15/21] imx: iomux: fix snvs usage for i.MX6ULL Peng Fan
2016-08-11 6:02 ` [U-Boot] [PATCH 16/21] pinctrl: imx6: support i.MX6ULL Peng Fan
2016-08-11 6:02 ` [U-Boot] [PATCH 17/21] arm: dts: imx6ull: add pinctrl defines Peng Fan
2016-08-11 6:02 ` [U-Boot] [PATCH 18/21] dt-bindings: add i.mx6ul clock header Peng Fan
2016-08-11 6:02 ` [U-Boot] [PATCH 19/21] arm: dts: add device tree for i.MX6ULL Peng Fan
2016-08-11 6:02 ` [U-Boot] [PATCH 20/21] dm: mmc: intialize dev when probe Peng Fan
2016-08-12 17:20 ` Simon Glass
2016-08-11 6:02 ` [U-Boot] [PATCH 21/21] arm: imx: add i.MX6ULL 14x14 EVK board support Peng Fan
2016-09-07 14:51 ` Jagan Teki
2016-09-08 1:35 ` Peng Fan [this message]
2016-09-13 19:11 ` Jagan Teki
2016-09-13 19:43 ` Fabio Estevam
2016-09-15 20:48 ` Jagan Teki
2016-09-17 0:14 ` Fabio Estevam
2016-09-14 1:21 ` Peng Fan
2016-08-26 13:45 ` [U-Boot] [PATCH 00/21] imx: support i.MX6ULL and EVK board 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=20160908013549.GA9097@linux-7smt.suse \
--to=van.freenix@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox