Message ID | 1438029890-9901-2-git-send-email-marex@denx.de |
---|---|
State | Accepted |
Delegated to: | Marek Vasut |
Headers | show |
Hi Marek, On 27 July 2015 at 14:44, Marek Vasut <marex@denx.de> wrote: > Enable the DWAPB GPIO driver for SoCFPGA Cyclone V and Arria V. > > Signed-off-by: Marek Vasut <marex@denx.de> > Cc: Simon Glass <sjg@chromium.org> > Cc: Dinh Nguyen <dinguyen@opensource.altera.com> > --- > include/configs/socfpga_arria5.h | 2 +- > include/configs/socfpga_common.h | 6 ++++++ > include/configs/socfpga_cyclone5.h | 2 +- > 3 files changed, 8 insertions(+), 2 deletions(-) > > diff --git a/include/configs/socfpga_arria5.h b/include/configs/socfpga_arria5.h > index 7aee1ce..5a4417f 100644 > --- a/include/configs/socfpga_arria5.h > +++ b/include/configs/socfpga_arria5.h > @@ -26,6 +26,7 @@ > #define CONFIG_CMD_EXT4_WRITE > #define CONFIG_CMD_FAT > #define CONFIG_CMD_FS_GENERIC > +#define CONFIG_CMD_GPIO > #define CONFIG_CMD_GREPENV > #define CONFIG_CMD_MII > #define CONFIG_CMD_MMC > @@ -33,7 +34,6 @@ > #define CONFIG_CMD_USB > #define CONFIG_CMD_USB_MASS_STORAGE > > - > /* Memory configurations */ > #define PHYS_SDRAM_1_SIZE 0x40000000 /* 1GiB on SoCDK */ > > diff --git a/include/configs/socfpga_common.h b/include/configs/socfpga_common.h > index e8473b8..0298360 100644 > --- a/include/configs/socfpga_common.h > +++ b/include/configs/socfpga_common.h > @@ -114,6 +114,12 @@ > #endif > > /* > + * GPIO Driver > + */ > +#define CONFIG_DM_GPIO > +#define CONFIG_DWAPB_GPIO Should use Kconfig. > + > +/* > * L4 OSC1 Timer 0 > */ > /* This timer uses eosc1, whose clock frequency is fixed at any condition. */ > diff --git a/include/configs/socfpga_cyclone5.h b/include/configs/socfpga_cyclone5.h > index 33d04fd..9a9c85a 100644 > --- a/include/configs/socfpga_cyclone5.h > +++ b/include/configs/socfpga_cyclone5.h > @@ -26,6 +26,7 @@ > #define CONFIG_CMD_EXT4_WRITE > #define CONFIG_CMD_FAT > #define CONFIG_CMD_FS_GENERIC > +#define CONFIG_CMD_GPIO > #define CONFIG_CMD_GREPENV > #define CONFIG_CMD_MII > #define CONFIG_CMD_MMC > @@ -33,7 +34,6 @@ > #define CONFIG_CMD_USB > #define CONFIG_CMD_USB_MASS_STORAGE > > - > /* Memory configurations */ > #define PHYS_SDRAM_1_SIZE 0x40000000 /* 1GiB on SoCDK */ > > -- > 2.1.4 > Regards, Simon
diff --git a/include/configs/socfpga_arria5.h b/include/configs/socfpga_arria5.h index 7aee1ce..5a4417f 100644 --- a/include/configs/socfpga_arria5.h +++ b/include/configs/socfpga_arria5.h @@ -26,6 +26,7 @@ #define CONFIG_CMD_EXT4_WRITE #define CONFIG_CMD_FAT #define CONFIG_CMD_FS_GENERIC +#define CONFIG_CMD_GPIO #define CONFIG_CMD_GREPENV #define CONFIG_CMD_MII #define CONFIG_CMD_MMC @@ -33,7 +34,6 @@ #define CONFIG_CMD_USB #define CONFIG_CMD_USB_MASS_STORAGE - /* Memory configurations */ #define PHYS_SDRAM_1_SIZE 0x40000000 /* 1GiB on SoCDK */ diff --git a/include/configs/socfpga_common.h b/include/configs/socfpga_common.h index e8473b8..0298360 100644 --- a/include/configs/socfpga_common.h +++ b/include/configs/socfpga_common.h @@ -114,6 +114,12 @@ #endif /* + * GPIO Driver + */ +#define CONFIG_DM_GPIO +#define CONFIG_DWAPB_GPIO + +/* * L4 OSC1 Timer 0 */ /* This timer uses eosc1, whose clock frequency is fixed at any condition. */ diff --git a/include/configs/socfpga_cyclone5.h b/include/configs/socfpga_cyclone5.h index 33d04fd..9a9c85a 100644 --- a/include/configs/socfpga_cyclone5.h +++ b/include/configs/socfpga_cyclone5.h @@ -26,6 +26,7 @@ #define CONFIG_CMD_EXT4_WRITE #define CONFIG_CMD_FAT #define CONFIG_CMD_FS_GENERIC +#define CONFIG_CMD_GPIO #define CONFIG_CMD_GREPENV #define CONFIG_CMD_MII #define CONFIG_CMD_MMC @@ -33,7 +34,6 @@ #define CONFIG_CMD_USB #define CONFIG_CMD_USB_MASS_STORAGE - /* Memory configurations */ #define PHYS_SDRAM_1_SIZE 0x40000000 /* 1GiB on SoCDK */
Enable the DWAPB GPIO driver for SoCFPGA Cyclone V and Arria V. Signed-off-by: Marek Vasut <marex@denx.de> Cc: Simon Glass <sjg@chromium.org> Cc: Dinh Nguyen <dinguyen@opensource.altera.com> --- include/configs/socfpga_arria5.h | 2 +- include/configs/socfpga_common.h | 6 ++++++ include/configs/socfpga_cyclone5.h | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-)