lkml.org 
[lkml]   [2021]   [Jul]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [RFC PATH 2/2] gpio: starfive-jh7100: Add StarFive JH7100 GPIO driver
    On Thu, Jul 01, 2021 at 08:39:40AM +0200, Michael Walle wrote:
    > Hi Drew,
    >
    > Am 2021-07-01 02:20, schrieb Drew Fustini:
    > > Add GPIO driver for the StarFive JH7100 SoC [1] used on the
    > > BeagleV Starlight JH7100 board [2].
    > >
    > > [1] https://github.com/starfive-tech/beaglev_doc/
    > > [2] https://github.com/beagleboard/beaglev-starlight
    > >
    > > Signed-off-by: Emil Renner Berthing <kernel@esmil.dk>
    > > Signed-off-by: Huan Feng <huan.feng@starfivetech.com>
    > > Signed-off-by: Drew Fustini <drew@beagleboard.org>
    >
    > Could this driver use GPIO_REGMAP and REGMAP_IRQ? See
    > drivers/gpio/gpio-sl28cpld.c for an example.
    >
    > -michael

    Thank you for the suggestion. I am not familiar with GPIO_REGMAP and
    REGMAP_IRQ so I will read about it. Is the advantage is that is helps
    to reduce code duplication by using an abstraction?

    I did notice that the gpio-sifive.c driver used regmap_update_bits() and
    regmap_write().

    I suppose that is better than writel_relaxed() and iowrite32() which
    this RFC driver does?

    thanks,
    drew

    \
     
     \ /
      Last update: 2022-09-17 16:10    [W:7.880 / U:0.048 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site