From mboxrd@z Thu Jan 1 00:00:00 1970 From: Igor Grinberg Date: Tue, 10 Feb 2015 09:46:02 +0200 Subject: [U-Boot] [PATCH v4 3/3] dm:gpio:mxc add DT support In-Reply-To: <1423550794-15017-4-git-send-email-Peng.Fan@freescale.com> References: <1423550794-15017-1-git-send-email-Peng.Fan@freescale.com> <1423550794-15017-4-git-send-email-Peng.Fan@freescale.com> Message-ID: <54D9B73A.4060009@compulab.co.il> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 02/10/15 08:46, Peng Fan wrote: > This patch add DT support for mxc gpio driver. > > There are one place using CONFIG_OF_CONTROL macro. > 1. The U_BOOT_DEVICES and mxc_plat array are complied out. To DT, > platdata is alloced using calloc, so there is no need to use mxc_plat. > > The following situations are tested, and all work fine: > 1. with DM, without DT > 2. with DM and DT > 3. without DM > Since device tree has not been upstreamed, if want to test this patch. > The followings need to be done. > + pieces of code does not gpio_request when using gpio_direction_xxx and > etc, need to request gpio. > + move the gpio settings from board_early_init_f to board_init > + define CONFIG_DM ,CONFIG_DM_GPIO and CONFIG_OF_CONTROL > + Add device tree file and do related configuration in > `make ARCH=arm menuconfig` > These will be done in future patches by step. > > Signed-off-by: Peng Fan Acked-by: Igor Grinberg -- Regards, Igor.