diff options
author | Luciano Coelho <coelho@ti.com> | 2011-04-01 20:48:02 +0300 |
---|---|---|
committer | Luciano Coelho <coelho@ti.com> | 2011-04-19 16:49:22 +0300 |
commit | afb7d3cd805df7a206439a7e7b5d1167d2bb06f6 (patch) | |
tree | c3b4209db2fef5fa2e9e3d3392ba94a032d35bd5 /drivers/net/wireless/wl12xx/boot.h | |
parent | 6277ed65704d19377b0874618e5f23d64c9e71a6 (diff) | |
download | linux-afb7d3cd805df7a206439a7e7b5d1167d2bb06f6.tar.gz linux-afb7d3cd805df7a206439a7e7b5d1167d2bb06f6.tar.bz2 linux-afb7d3cd805df7a206439a7e7b5d1167d2bb06f6.zip |
wl12xx: move hardcoded hci_io_ds value into the conf struct
Instead of hardcoding the hci_io_ds configuration that we write to the
SDIO_IO_DS top registed, read it from the default configuration so
that it's easier to change for different platforms.
Reported-by: Ido Yariv <ido@wizery.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
Diffstat (limited to 'drivers/net/wireless/wl12xx/boot.h')
-rw-r--r-- | drivers/net/wireless/wl12xx/boot.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/drivers/net/wireless/wl12xx/boot.h b/drivers/net/wireless/wl12xx/boot.h index d9de64ac1442..e8f8255bbabe 100644 --- a/drivers/net/wireless/wl12xx/boot.h +++ b/drivers/net/wireless/wl12xx/boot.h @@ -117,10 +117,13 @@ struct wl1271_static_data { #define SDIO_IO_DS 0xd14 /* SDIO/wSPI DS configuration values */ -#define HCI_IO_DS_8MA 0 -#define HCI_IO_DS_4MA 1 /* default */ -#define HCI_IO_DS_6MA 2 -#define HCI_IO_DS_2MA 3 +enum { + HCI_IO_DS_8MA = 0, + HCI_IO_DS_4MA = 1, /* default */ + HCI_IO_DS_6MA = 2, + HCI_IO_DS_2MA = 3, +}; + /* end PLL configuration algorithm for wl128x */ #endif |