History log of /seL4-test-master/projects/util_libs/libplatsupport/src/plat/tk1/gpio.c
Revision Date Author Comments
# 7e7cabc1 10-Aug-2020 Oliver Scott <Oliver.Scott@data61.csiro.au>

supress-gcc-warnings: util-libs

-Use const in correct places
-Use casts
-Return correct interface type

Signed-off-by: Oliver Scott <Oliver.Scott@data61.csiro.au>


# 8e531505 15-Oct-2019 Damon Lee <Damon.Lee@data61.csiro.au>

trivial: Style changed files


# 9721c49d 14-Oct-2019 Damon Lee <Damon.Lee@data61.csiro.au>

platsupport: Change pending_status 'clear' type

A bool for suggesting to clear the interrupt flag represents the type
better than an int.


# 98edb778 14-Oct-2019 Damon Lee <Damon.Lee@data61.csiro.au>

platsupport: Replace read/write w/ set/read_level

This is the second part of the change to remove the ability the chain
together pins in the driver level. Now that it's not possible to chain
together pins, we replace the read/write functions with pin unit level
functions.


# fe165a16 14-Oct-2019 Damon Lee <Damon.Lee@data61.csiro.au>

platsupport: Remove GPIO set_next and next field

The functionality to be able to chain together GPIO pins is outside the
scope of the driver, this functionality should instead belong to a
utility library. This commit removes this from the drivers so that it
can be refactored into a library.


# f31b6d07 10-Dec-2019 Kent McLeod <Kent.Mcleod@data61.csiro.au>

platsupport: Don't require plat/gpio.h on all plat

The Arm interface for gpio_sys_t doesn't require any platform
definitions and so we don't need to include a platform header file.


# a7e9aad0 08-Oct-2018 Anna Lyons <Anna.Lyons@data61.csiro.au>

platsupport: use ZF_LOG* instead of custom macros

This commit removes redundant definitions of debug print macros
and replaces them with use of ZF_LOG*.


# 62e887cd 02-May-2018 Kofi Doku Atuah <kofidoku.atuah@data61.csiro.au>

platsupport: TK1 GPIO: read and write should return number of bits read/written


# 287af9af 02-May-2018 Kofi Doku Atuah <kofidoku.atuah@data61.csiro.au>

platsupport: TK1 GPIO: read: Clear the bit before ORing

This ensures that if the value read from the GPIO controller is a 0,
but the buffer passed in was not memzero'd before read() was invoked,
that the read() function would actually assign a 0 to the bit index
anyway.


# 3f7bc8c8 21-Nov-2017 Kofi Doku Atuah <kofidoku.atuah@data61.csiro.au>

platsupport: TK1: GPIO: Cleanup and refactor driver

This patch does a cleanup to make the TK1 GPIO driver conformant to the platsupport
GPIO driver API. Among other things:

* Define TK1_GPIO_PADDR and TK1_GPIO_SIZE
* Remove the custom API constants (gpio_mode, etc) and use enum gpio_dir.
* Don't expose internal functions. Mark them as static.
* Use MAP_IF_NULL()
* Define a struct for accessing the GPIO controller's registers instead of
doing pointer arithmetic everywhere.
* Document the unusual dependencies between the mux driver and gpio driver.
* Support chain writing to linked pins.


# 398af6af 13-Jul-2017 Anna Lyons <Anna.Lyons@data61.csiro.au>

Fix whitespace

- remove trailing whitespace
- remove duplicate blank lines
- remove blank lines at end of file


# a7130f9f 04-Jun-2017 Anna Lyons <Anna.Lyons@data61.csiro.au>

fix licenses


# bd65c324 09-Apr-2017 Kofi Doku Atuah <kofidoku.atuah@data61.csiro.au>

TK1: GPIO: Add pins for the SPI sensor chip select GPIOs

The SPI CSn signals for the daughterboard's sensors are connected to various GPIO
pins. We add those pins to the current GPIO driver here.


# b1dd65cc 06-Mar-2017 Andrew Gacek <andrew.gacek@gmail.com>

libplatsupport: Provide usb_vbus_en1 for TK1 GPIO


# 0aeb898d 12-Jan-2017 Adrian Danis <Adrian.Danis@data61.csiro.au>

libplatsupport: SELFOUR-724 Avoid return after error

Functions in tk1/gpio.c validate their inputs and print out an error if
they are incorrect. Previously they would then continue and perform some
action. Due to an ability for this functions to return an error to the
caller this changes these cases to panic


# dafda718 15-Nov-2016 Adrian Danis <Adrian.Danis@data61.csiro.au>

libplatsupport: Refactor tk1 gpio/mux code

This commit refactors the mux and gpio code of the tk1 in the following ways
* Put GPIO code in gpio.c, not mux.c
* Bring back platform generic mux_sys_init and gpio_sys_init functions
* Make GPIO depend upon a mux without the mux initializing the GPIO
* Remove globals and use the provided 'priv' parts of the 'sys' structs
* Require gpio_sys_t be passed to 'gpio_*' functions instead of using
global variables
* Remove circular dependencies in headers and '#ifndef CONFIG_PLAT_TK1's from
generic arm headers


# 76c06450 26-Oct-2016 Jason Butler <jason.butler@data61.csiro.au>

Integrating changes from DARPA repo to trunk


# 3c918e7b 18-Oct-2016 Jason Butler <jason.butler@data61.csiro.au>

Integrating tegra gpio interrupt code from DARPA framework


# 03ede780 23-Aug-2016 Kent McLeod <kent.mcleod@nicta.com.au>

Remove trailing whitespace


# b5798832 31-Jul-2016 Jason Butler <jason.butler@data61.csiro.au>

libplatsupport: minimal GPIO functionality for Tegra