From: Adam Ford <aford173@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH V2 3/4] ARM: omapl138_lcdk: Enable DM_GPIO and DM and GPIO Commands
Date: Mon, 2 Sep 2019 06:52:03 -0500 [thread overview]
Message-ID: <20190902115204.12537-3-aford173@gmail.com> (raw)
In-Reply-To: <20190902115204.12537-1-aford173@gmail.com>
The da8xx GPIO driver is available with DM_GPIO support. This
patch enables the CMD_GPIO, CMD_DM, and DM_GPIO and DA8XX_GPIO.
Signed-off-by: Adam Ford <aford173@gmail.com>
---
V2: Fix GPIO redefinition warning by making the max number of GPIOS's be consistent
diff --git a/arch/arm/mach-davinci/include/mach/gpio.h b/arch/arm/mach-davinci/include/mach/gpio.h
index 3dca50f776..c150240962 100644
--- a/arch/arm/mach-davinci/include/mach/gpio.h
+++ b/arch/arm/mach-davinci/include/mach/gpio.h
@@ -22,11 +22,7 @@
#define gpio_status() gpio_info()
#endif
#define GPIO_NAME_SIZE 20
-#if !defined(CONFIG_SOC_DA850)
-#define MAX_NUM_GPIOS 128
-#else
#define MAX_NUM_GPIOS 144
-#endif
#define GPIO_BANK(gp) (davinci_gpio_bank01 + ((gp) >> 5))
void gpio_info(void);
diff --git a/configs/omapl138_lcdk_defconfig b/configs/omapl138_lcdk_defconfig
index 6813a8b2ae..c74d78b547 100644
--- a/configs/omapl138_lcdk_defconfig
+++ b/configs/omapl138_lcdk_defconfig
@@ -29,8 +29,8 @@ CONFIG_HUSH_PARSER=y
CONFIG_CRC32_VERIFY=y
# CONFIG_CMD_EEPROM is not set
CONFIG_MX_CYCLIC=y
+CONFIG_CMD_DM=y
# CONFIG_CMD_FLASH is not set
-# CONFIG_CMD_GPIO is not set
CONFIG_CMD_NAND=y
# CONFIG_CMD_SETEXPR is not set
CONFIG_CMD_MTDPARTS=y
@@ -46,6 +46,8 @@ CONFIG_ENV_IS_IN_NAND=y
CONFIG_NET_RANDOM_ETHADDR=y
CONFIG_DM=y
CONFIG_SPL_DM=y
+CONFIG_DM_GPIO=y
+CONFIG_DA8XX_GPIO=y
CONFIG_DM_I2C=y
CONFIG_SYS_I2C_DAVINCI=y
CONFIG_DM_MMC=y
--
2.17.1
next prev parent reply other threads:[~2019-09-02 11:52 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-02 11:52 [U-Boot] [PATCH V2 1/4] ARM: omapl138_lcdk: Remove dead code Adam Ford
2019-09-02 11:52 ` [U-Boot] [PATCH V2 2/4] ARM: omapl138_lcdk: Disable SPL_DM_USB Adam Ford
2019-09-14 23:55 ` Tom Rini
2019-09-02 11:52 ` Adam Ford [this message]
2019-09-14 23:55 ` [U-Boot] [PATCH V2 3/4] ARM: omapl138_lcdk: Enable DM_GPIO and DM and GPIO Commands Tom Rini
2019-09-02 11:52 ` [U-Boot] [PATCH V2 4/4] ARM: omapl138_lcdk: Enable Pinctrl Adam Ford
2019-09-14 23:55 ` Tom Rini
2019-09-14 23:55 ` [U-Boot] [PATCH V2 1/4] ARM: omapl138_lcdk: Remove dead code Tom Rini
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=20190902115204.12537-3-aford173@gmail.com \
--to=aford173@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