Ben Dooks
fd9e8b17ed
Makefile: change to using .carray.c for carray files
...
We would like to clean any files generated by the carray
scripts by just searching for the filename as the current
make system turns f.carray into f.o. Change to make the
make system turn f.carray into f.carray.o
note, command to go through .mk files changing the .o
in the .mk files is:
find . -type f -name "*.carray" | xargs -t -I fname /bin/bash -x -c ' fn=`basename -s .carray fname`; echo "$fn"; sed -i `dirname fname `/objects.mk -e s/"$fn".o/"$fn".carray.o/g'
Link: https://patchwork.ozlabs.org/project/opensbi/patch/20240401213438.590209-2-ivan.orlov0322@gmail.com/
Reported-by: Ivan Orlov <ivan.orlov0322@gmail.com >
Suggested-by: Andrew Jones <ajones@ventanamicro.com >
Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk >
Reviewed-by: Andrew Jones <ajones@ventanamicro.com >
Reviewed-by: Anup Patel <anup@brainfault.org >
2024-07-04 12:11:45 +05:30
Minda Chen
e9d08bd99c
lib: utils/i2c: Add minimal StarFive jh7110 I2C driver
...
Starfive JH7110 I2C IP is synopsys designware.
Minimum StarFIve I2C driver to read/send bytes over I2C bus.
This allows querying information and perform operation of onboard PMIC,
as well as power-off and reset.
Signed-off-by: Minda Chen <minda.chen@starfivetech.com >
Reviewed-by: Anup Patel <anup@brainfault.org >
2023-03-09 21:00:57 +05:30
Anup Patel
b126ce4a8f
lib: utils/i2c: Use kconfig for enabling/disabling drivers
...
We update i2c drivers makefile to use kconfig for enabling/disabling
drivers. To avoid compile errors, we also enable appropriate i2c
drivers for each platform.
Signed-off-by: Anup Patel <apatel@ventanamicro.com >
Tested-by: Andrew Jones <ajones@ventanamicro.com >
Acked-by: Atish Patra <atishp@rivosinc.com >
Tested-by: Atish Patra <atishp@rivosinc.com >
2022-08-08 09:33:57 +05:30
Anup Patel
998ed43fde
lib: utils/i2c: Generate FDT i2c adapter driver list at compile-time
...
Instead of having FDT i2c adapter driver list hard-coded in the C source,
we generate it using carray.sh at compile-time.
Signed-off-by: Anup Patel <apatel@ventanamicro.com >
Reviewed-by: Atish Patra <atishp@rivosinc.com >
2022-05-13 09:26:45 +05:30
Nikita Shubin
13a1158d24
lib: utils/i2c: Add minimal SiFive I2C driver
...
Minimum SiFive I2C driver to read/send bytes over I2C bus.
This allows querying information and perform operation of onboard PMIC,
as well as power-off and reset.
Tested-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com >
Reviewed-by: Alexandre Ghiti <alexandre.ghiti@canonical.com >
Tested-by: Alexandre Ghiti <alexandre.ghiti@canonical.com >
Signed-off-by: Nikita Shubin <n.shubin@yadro.com >
2021-11-12 10:29:08 +05:30
Nikita Shubin
6ca6bcafb7
lib: utils/i2c: Add simple FDT based I2C framework
...
FDT based I2C framework on the top of I2C library.
The drivers are probed on demand by fdt_i2c_adapter_get
function.
Tested-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com >
Reviewed-by: Alexandre Ghiti <alexandre.ghiti@canonical.com >
Tested-by: Alexandre Ghiti <alexandre.ghiti@canonical.com >
Signed-off-by: Nikita Shubin <n.shubin@yadro.com >
2021-11-12 10:19:45 +05:30
Nikita Shubin
2c964a2e15
lib: utils/i2c: Add generic I2C configuration library
...
Helper library to keep track of registered I2C adapters,
identified by dts offset, basic send/read functions and
adapter configuration (enable, set dividers, etc...).
Tested-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com >
Reviewed-by: Alexandre Ghiti <alexandre.ghiti@canonical.com >
Tested-by: Alexandre Ghiti <alexandre.ghiti@canonical.com >
Signed-off-by: Nikita Shubin <n.shubin@yadro.com >
2021-11-12 10:17:50 +05:30