aboutsummaryrefslogtreecommitdiff
path: root/hal
diff options
context:
space:
mode:
authorLee Campbell <leecam@google.com>2016-03-08 16:00:55 -0800
committerLee Campbell <leecam@google.com>2016-03-08 17:07:56 -0800
commitc589f9dc35abbd00601d50f732a4d7e0c83dccc1 (patch)
tree1a5d47d9d03b6ca294bc0258291dc17c6edf77a8 /hal
parente1adeba7ee43e6c609655c764d5dc8a7748d0126 (diff)
downloadperipheralmanager-c589f9dc35abbd00601d50f732a4d7e0c83dccc1.tar.gz
Hook up the SPI HAL to the SPI manager
Implement the backend IOCTLS for SPI BUG: 27555414 Change-Id: I4be6b9e33dd7b6d2483a04f368289a3229df0439 TEST: Tested with an RGB led
Diffstat (limited to 'hal')
-rw-r--r--hal/hardware/peripheral_io.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/hal/hardware/peripheral_io.h b/hal/hardware/peripheral_io.h
index d08898b..1aa44d5 100644
--- a/hal/hardware/peripheral_io.h
+++ b/hal/hardware/peripheral_io.h
@@ -54,12 +54,16 @@ typedef struct peripheral_registration_cb_t {
int (*register_pin)(const char* name, int gpio, pin_mux_callbacks callbacks);
int (*register_pin_group)(const char* name, char** pins, size_t nr_pins);
int (*register_source)(const char* name, char** groups, size_t nr_groups);
- int (*register_simple_source)(const char* name, char** pins, size_t nr_pins);
+ int (*register_simple_source)(const char* name, const char** pins, size_t nr_pins);
// Gpio functions.
int (*register_gpio_sysfs)(const char* name, uint32_t index);
int (*set_gpio_pin_mux)(const char* name, const char* source);
+ // Spi functions.
+ int (*register_spi_dev_bus)(const char* name, uint32_t bus, uint32_t cs);
+ int (*set_spi_pin_mux)(const char* name, const char* source);
+
} peripheral_registration_cb_t;
typedef struct peripheral_io_module_t peripheral_io_module_t;