drivers: gpio: Add LiteX GPIO driver

This commits adds GPIO driver for LiteX SoC builder.

Due to the fact that GPIO in LiteX is unidirectional and can be
configured with different pins amount per port, additional entries
were added to the dts file.

Signed-off-by: Robert Winkler <rwinkler@internships.antmicro.com>
Signed-off-by: Mateusz Holenko <mholenko@antmicro.com>
Signed-off-by: Piotr Zierhoffer <pzierhoffer@antmicro.com>
This commit is contained in:
Robert Winkler 2019-08-02 10:38:56 +02:00 committed by Carles Cufí
commit e8d0eb1db1
7 changed files with 397 additions and 0 deletions

View file

@ -0,0 +1,11 @@
# Litex VexRiscV GPIO configuration options
# Copyright (c) 2019 Antmicro <www.antmicro.com>
# SPDX-License-Identifier: Apache-2.0
config GPIO_LITEX
bool "Litex GPIO driver"
depends on SOC_RISCV32_LITEX_VEXRISCV
select HAS_DTS_GPIO
help
Enable Litex GPIO driver.