[U-Boot] [PATCH 1/1] spi: tegra20: Add support for mode selection

Mirza Krak mirza.krak at hostmobility.com
Fri Sep 4 13:47:15 CEST 2015


2015-09-04 13:35 GMT+02:00 Jagan Teki <jteki at openedev.com>:
>
> I think we need to or CPOL and CPHA
>
> what about this
>              reg &= ~(SLINK_CMD_IDLE_SCLK_MASK | SLINK_CMD_CK_SDA);
>

The end result should be the same as
     reg &= ~SLINK_CMD_IDLE_SCLK_MASK & ~SLINK_CMD_CK_SDA;

or am I wrong?

But I can agree that it is easier to read/follow your suggestion.

-- 
Med Vänliga Hälsningar / Best Regards

*******************************************************************
Mirza Krak
Host Mobility AB
mirza.krak at hostmobility.com
Anders Personsgatan 12, 416 64 Göteborg
Sweden
http://www.hostmobility.com
Direct: +46 31 31 32 704
Phone: +46 31 31 32 700
Fax: +46 31 80 67 51
Mobile: +46 730 28 06 22
*******************************************************************


More information about the U-Boot mailing list