diff options
author | Alexander Aring <alex.aring@gmail.com> | 2015-02-27 03:58:28 -0500 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2015-02-27 12:42:44 -0500 |
commit | be64f076465a288aa850ad0dc581e5ecdb8efe46 (patch) | |
tree | e35758035bd635a17ace09ffc6e18667e1c26af9 | |
parent | 2c2f7ec1425e76d4a4cce43c0221032c0f94dae9 (diff) |
at86rf230: add irqmask mode setting
Since we support at86rf233 we need to ensure that basic operation
default values are the same. This patch always sets IRQ_MASK_MODE to 0
which is after reset 1 at the at86rf233 and 0 at the at86rf231.
Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
-rw-r--r-- | drivers/net/ieee802154/at86rf230.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/ieee802154/at86rf230.c b/drivers/net/ieee802154/at86rf230.c index 6bba24d588fe..e6dec0ac163a 100644 --- a/drivers/net/ieee802154/at86rf230.c +++ b/drivers/net/ieee802154/at86rf230.c | |||
@@ -1336,6 +1336,11 @@ static int at86rf230_hw_init(struct at86rf230_local *lp, u8 xtal_trim) | |||
1336 | if (rc) | 1336 | if (rc) |
1337 | return rc; | 1337 | return rc; |
1338 | 1338 | ||
1339 | /* reset values differs in at86rf231 and at86rf233 */ | ||
1340 | rc = at86rf230_write_subreg(lp, SR_IRQ_MASK_MODE, 0); | ||
1341 | if (rc) | ||
1342 | return rc; | ||
1343 | |||
1339 | get_random_bytes(csma_seed, ARRAY_SIZE(csma_seed)); | 1344 | get_random_bytes(csma_seed, ARRAY_SIZE(csma_seed)); |
1340 | rc = at86rf230_write_subreg(lp, SR_CSMA_SEED_0, csma_seed[0]); | 1345 | rc = at86rf230_write_subreg(lp, SR_CSMA_SEED_0, csma_seed[0]); |
1341 | if (rc) | 1346 | if (rc) |