diff options
author | Thomas Bogendoerfer <tbogendoerfer@suse.de> | 2019-08-31 11:26:21 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-09-04 15:34:31 +0300 |
commit | 74ded38a8e185b57a4362787815c353ac595013c (patch) | |
tree | 801f3108756dd1ff3719fa02753cddc9596f5cea /include/linux/platform_data/sgi-w1.h | |
parent | 836e9494f4485127a5b505ae57e4387bea8b53c4 (diff) | |
download | linux-74ded38a8e185b57a4362787815c353ac595013c.tar.xz |
w1: add 1-wire master driver for IP block found in SGI ASICs
Starting with SGI Origin machines nearly every new SGI ASIC contains
an 1-Wire master. They are used for attaching One-Wire prom devices,
which contain information about part numbers, revision numbers,
serial number etc. and MAC addresses for ethernet interfaces.
This patch adds a master driver to support this IP block.
It also adds an extra field dev_id to struct w1_bus_master, which
could be in used in slave drivers for creating unique device names.
Signed-off-by: Thomas Bogendoerfer <tbogendoerfer@suse.de>
Link: https://lore.kernel.org/r/20190831082623.15627-2-tbogendoerfer@suse.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/platform_data/sgi-w1.h')
-rw-r--r-- | include/linux/platform_data/sgi-w1.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/linux/platform_data/sgi-w1.h b/include/linux/platform_data/sgi-w1.h new file mode 100644 index 000000000000..e28c8a90ff84 --- /dev/null +++ b/include/linux/platform_data/sgi-w1.h @@ -0,0 +1,13 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +/* + * SGI One-Wire (W1) IP + */ + +#ifndef PLATFORM_DATA_SGI_W1_H +#define PLATFORM_DATA_SGI_W1_H + +struct sgi_w1_platform_data { + char dev_id[64]; +}; + +#endif /* PLATFORM_DATA_SGI_W1_H */ |