[U-Boot] [PATCH v1 3/5] regmap: Allow providing read/write callbacks through struct regmap_config

Jean-Jacques Hiblot jjhiblot at ti.com
Mon Nov 4 16:07:44 UTC 2019


On 30/10/2019 02:48, Simon Glass wrote:
> Hi Jean-Jacques,
>
> On Fri, 27 Sep 2019 at 07:22, Jean-Jacques Hiblot <jjhiblot at ti.com> wrote:
>> Some linux drivers provide their own read/write functions to access data
>> from/of the regmap. Adding support for it.
>>
>> Signed-off-by: Jean-Jacques Hiblot <jjhiblot at ti.com>
>> ---
>>
>>   drivers/core/regmap.c | 12 ++++++++++++
>>   include/regmap.h      | 26 +++++++++++++++++++++++---
>>   2 files changed, 35 insertions(+), 3 deletions(-)
> This increases code size in SPL so should probably be controlled by a Kconfig.
OK.
>
> Also I wonder if regmap should become a uclass if we are adding

I don't see a real value in making a regmap a device. IMO It will just 
make things more complex than needed.

JJ

> operations to it?
>
> Regards,
> Simon
>


More information about the U-Boot mailing list