aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/w1-eeprom
Commit message (Collapse)AuthorAgeFilesLines
* common: Drop log.h from common headerSimon Glass2020-05-181-0/+1
| | | | | | Move this header out of the common header. Signed-off-by: Simon Glass <sjg@chromium.org>
* dm: core: Create a new header file for 'compat' featuresSimon Glass2020-02-051-0/+1
| | | | | | | | | | | | At present dm/device.h includes the linux-compatible features. This requires including linux/compat.h which in turn includes a lot of headers. One of these is malloc.h which we thus end up including in every file in U-Boot. Apart from the inefficiency of this, it is problematic for sandbox which needs to use the system malloc() in some files. Move the compatibility features into a separate header file. Signed-off-by: Simon Glass <sjg@chromium.org>
* w1-eeprom: Add support for Maxim DS2502 add only memoryMartin Fuzzey2018-11-163-0/+258
| | | | Signed-off-by: Martin Fuzzey <martin.fuzzey@flowbird.group>
* w1-eeprom: ds24xxx: fix data abort in ds24xxx_probe()Martin Fuzzey2018-11-011-1/+1
| | | | | | | | | | | | | Data abort was occurring when using "w1 bus" with a DS24B33 present. The abort occurred in the ds24xxx_probe() because the struct w1_device pointer was NULL. This is because that structure is allocated by the parent device uclass (by .per_child_platdata_auto_alloc_size) and thus the correct accessor is dev_get_parent_platdata() not dev_get_platdata() Signed-off-by: Martin Fuzzey <martin.fuzzey@flowbird.group> Reviewed-by: Eugen Hristev <eugen.hristev@microchip.com>
* W1-EEPROM: add sandbox driverEugen Hristev2018-09-283-0/+68
| | | | | | Add a sandbox driver for a one wire EEPROM memory Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
* W1-EEPROM: add support for Maxim DS24 eeprom familiesMaxime Ripard2018-09-283-0/+63
| | | | | | | | | | Add a driver that supports Maxim 1 wire EEPROMs families DS24B33 and DS2431. Can be extended for other families as well. Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com> [eugen.hristev@microchip.com: reworked driver] Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
* W1-EEPROM: Add an W1-EEPROM uclass for 1 wire EEPROMsMaxime Ripard2018-09-283-0/+135
We might want to access data stored onto one wire EEPROMs. Create a framework to provide a consistent API. Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com> [eugen.hristev@microchip.com: reworked patch] Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>