[PATCH v2 1/3] ARM: dts: AM335x: Add dummy i2c nodes

2017-11-02 Thread Daniel Schultz
These i2c nodes are needed for autoenable of i2c clients, because the autoenable API searches for device tree nodes to get the client address. Signed-off-by: Daniel Schultz --- arch/arm/dts/am335x-phytec-phycore-som.dtsi | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/ar

[PATCH v2 3/3] ARM: phytec-som-am335x: Add autoenable

2017-11-02 Thread Daniel Schultz
Add autoenable for components, which can be populated on an AM335x phyCORE SoM. Signed-off-by: Daniel Schultz --- Changes: v2: Created Phytec AM335x Kconfig PHYTEC_SOM_AM335X_OF_AUTOENABLE Changed function names arch/arm/boards/phytec-som-am335x/Kconfig | 13 + a

[PATCH v2 2/3] common: oftree: Add autoenable functionality

2017-11-02 Thread Daniel Schultz
This patch adds an API to automatically enable either hardware components with existing device drivers or i2c clients. All functions take a device tree path to find the hardware and will fix up the node status in the kernel device tree, if it's accessible. Signed-off-by: Daniel Schultz --- Change

[PATCH v2 2/6] ARM: dts: AM335x: Add state framework

2017-11-02 Thread Daniel Schultz
This patch adds the state framework with an EEPROM partition and two nodes for MAC addresses. It will be available for all phycore AM335x images with EEPROMs. Signed-off-by: Daniel Schultz --- arch/arm/dts/am335x-phytec-phycore-som-emmc.dts| 1 + .../dts/am335x-phytec-phycore-som-nand-no-sp

[PATCH v2 6/6] ARM: phytec-som-am335x: Set MAC addresses from state

2017-11-02 Thread Daniel Schultz
If a state with the name 'am335x_phytec_mac_state' is available, valid MAC addresses from this state get registerd to their ethernet device. Signed-off-by: Daniel Schultz --- Changes: v2: Changed to new 'state_read_mac' function arch/arm/boards/phytec-som-am335x/board.c | 21 +++

[PATCH v2 1/6] ARM: boards: phytec-som-am335x: Add unified MLO

2017-11-02 Thread Daniel Schultz
PCM-060 modules only have one-bank RAMs populated, which allows us to find out the populated RAM size at run-time. Therefore, a new entry point was create 'PHYTEC_ENTRY_UNIFIED_MLO'. This creates a MLO for all modules of one family and all existing PCM-060 MLOs were replaced with this new entry po

[PATCH v2 4/6] common: state: Add variable_type to state_variable

2017-11-02 Thread Daniel Schultz
Add a pointer in state_variable to the corresponding variable_type array element. Signed-off-by: Daniel Schultz --- Changes: v2: New patch common/state/state.h | 1 + common/state/state_variables.c | 5 + 2 files changed, 6 insertions(+) diff --git a/common/state/state.h

[PATCH v2 5/6] common: state: Add function to read state MAC

2017-11-02 Thread Daniel Schultz
This API function allows to receive a copy of a MAC address from variables in a state. Signed-off-by: Daniel Schultz --- Changes: v2: New patch common/state/state.c | 23 +++ include/state.h | 2 ++ 2 files changed, 25 insertions(+) diff --git a/common/state/s

[PATCH v2 3/6] ARM: configs: am335x_defconfig: Add state config

2017-11-02 Thread Daniel Schultz
Enable the state framework for all AM335x boards. --- arch/arm/configs/am335x_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/configs/am335x_defconfig b/arch/arm/configs/am335x_defconfig index dd9c3c5..5a236fb 100644 --- a/arch/arm/configs/am335x_defconfig +++ b/arch/arm

Re: [PATCH 2/2] efi-block: detect when the block device is a USB Disk

2017-11-02 Thread Michael Olbrich
On Fri, Oct 27, 2017 at 09:05:48AM +0200, Jean-Christophe PLAGNIOL-VILLARD wrote: > use usbdisk as a basename > > This will be usefull as example when we want to search for a usb disk for > failsafe update or install. I understand the use-case, but this breaks a different setup: Until now 'disk0