[PATCH 3/5] SPI S3C64XX: Header for passing platform data

jassi brar jassisinghbrar at gmail.com
Wed Dec 9 07:31:50 EST 2009


On Wed, Dec 9, 2009 at 9:16 PM, Mark Brown
<broonie at opensource.wolfsonmicro.com> wrote:
> On Wed, Dec 09, 2009 at 10:50:16AM +0900, jassi brar wrote:
>
>>   Second - SPI source clocks specific, which SoCs differ by name and number.
>>           Maybe this could go into plat-<soc>/include with the name
>>           <soc>-spi.h
>
> With device based lookup (which Ben mentioned he was working on) this
> mapping should get handled entirely within the CPU clock tree
> definition and be invisible to the driver.
I meant the following part as SoC specific include:-
  #define S3C64XX_SPI_SRCCLK_PCLK                0
  #define S3C64XX_SPI_SRCCLK_SPIBUS      1
  #define S3C64XX_SPI_SRCCLK_48M         2
  #define BUSNUM(b)              (b)

the rest can be shared across SoCs in common include



More information about the linux-arm-kernel mailing list