Skip to content

Commit

Permalink
mrf24j40: Increase max SPI speed to 10MHz
Browse files Browse the repository at this point in the history
Upon consulting the datasheet further, it does indicates a maximum speed
for SCK at 10MHz.

Signed-off-by: Alan Ott <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
signal11 authored and davem330 committed Mar 19, 2013
1 parent 7a1c231 commit cf82dab
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions drivers/net/ieee802154/mrf24j40.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit cf82dab

Please sign in to comment.