Skip to content

OMAP-GPMC: generic time calc, prepare for driver

Daniel Mack linux-arm-kernel linux-omap 2 versions New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest posting 2/20 of 10 patches 0 repliesNew
  2. v6 posting 1/20 of 10 patches 0 repliesSuperseded

Patches in v6 posting 2/2 No applies recorded yet

None of the 10 patches the cover letter announces are in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v6 yet.

Read the v6 thread

Cover letter [PATCH v6 00/10] OMAP-GPMC: generic time calc, prepare for driver
Quoted 10 lines · Afzal
Quoted 8 lines · Daniel Mack
Quoted 7 lines

Such a generic routine would help create a driver out of gpmc platform code, which would be peripheral agnostic and thus lead to DT finally. Input to generic timing calculation routine would be gpmc peripheral timings, output - translated timings that gpmc can understand. Later, to DT'ify, gpmc peripheral timings could be passed through DT. Input timings that has been used here are selected such that it represents those that are present in peripheral timing datasheets.

Quoted 7 lines
Quoted 3 lines

What I don't understand yet about this new approach is where the gpmc client code should live in. In order to probe the drivers via DT, each driver would need to call the gpmc support functions itself, right? Is

By gpmc client code, if you are referring to helper functions in mach-omap2/gpmc-*, if things go as per plan, with DT, they will go away and gpmc driver would handle those based on the information from DT.

So the GPMC driver is the one that is matched from DT, and the NAND driver will the be instanciated from the (generic) GPMC driver?

Quoted 3 lines

No change would be needed for client drivers like smc91x ethernet drivers, but NAND driver may need some change to live with DT as it is tightly coupled with GPMC.

NAND drivers also typically parse partition entries that are children of the DT node the are owning.

Quoted 7 lines
Quoted 2 lines

the plan to obsolete helper functions like gpmc_nand_init() and move that functionality to the drivers?

Yes, plan is to obsolete the functions like gpmc_nand_init, those tasks would be handled by gpmc driver

Quoted 1 line
Quoted 6 lines
Quoted 3 lines

I applied these patches locally and would like to help get the NAND controller on my AX33xx DT-driven board going. Let me know if I can do anything here.

Thanks for offering the help, will take liberty to ask you for help when required. BTW, do you have any OMAP family boards ?

I do have a beaglboard xM, but the board I'm currently working with is a custom one based on an AM33xx.

Thanks,
Daniel