[lkml]   [2005]   [Dec]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH 2.6-git] SPI: add set_clock() to bitbang

    > No, suppose there're two devices behind the same SPI bus that have
    > different clock constraints. As active SPI device change may well happen
    > when each new message is processed, we'll need to set up clocks again
    > for each message. Right?

    Clock is coupled to chipselect/device. When the bus controller
    switches to the other device, it updates the clock accordingly.

    How exactly that's done is system-specific. Many controllers
    just have a register per chipselect, listing stuff like SPI mode,
    clock divisor, and word size. So switching to that chipselect
    kicks those in automatically ... devices ignore the clock unless
    they've been selected.

    So it's like I said earlier. And going to a new message will
    normally involve a new chipselect, yes ... but maybe not, there's
    that hint available to avoid the switching.

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-12-23 01:40    [W:0.025 / U:38.132 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site