mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-22 12:14:01 +08:00
mrf24j40: Increase max SPI speed to 10MHz
Upon consulting the datasheet further, it does indicates a maximum speed for SCK at 10MHz. Signed-off-by: Alan Ott <alan@signal11.us> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
7a1c231886
commit
cf82dabd29
@ -92,9 +92,8 @@ struct mrf24j40 {
|
||||
#define MRF24J40_READLONG(reg) (1 << 15 | (reg) << 5)
|
||||
#define MRF24J40_WRITELONG(reg) (1 << 15 | (reg) << 5 | 1 << 4)
|
||||
|
||||
/* Maximum speed to run the device at. TODO: Get the real max value from
|
||||
* someone at Microchip since it isn't in the datasheet. */
|
||||
#define MAX_SPI_SPEED_HZ 1000000
|
||||
/* The datasheet indicates the theoretical maximum for SCK to be 10MHz */
|
||||
#define MAX_SPI_SPEED_HZ 10000000
|
||||
|
||||
#define printdev(X) (&X->spi->dev)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user