wl1271: Add top-register access functions
Add top register access function. Signed-off-by: Juuso Oikarinen <juuso.oikarinen@nokia.com> Reviewed-by: Luciano Coelho <luciano.coelho@nokia.com> Signed-off-by: Luciano Coelho <luciano.coelho@nokia.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
这个提交包含在:
@@ -50,20 +50,7 @@ struct wl1271_static_data {
|
||||
#define WU_COUNTER_PAUSE_VAL 0x3FF
|
||||
#define WELP_ARM_COMMAND_VAL 0x4
|
||||
|
||||
#define OCP_CMD_LOOP 32
|
||||
|
||||
#define OCP_CMD_WRITE 0x1
|
||||
#define OCP_CMD_READ 0x2
|
||||
|
||||
#define OCP_READY_MASK BIT(18)
|
||||
#define OCP_STATUS_MASK (BIT(16) | BIT(17))
|
||||
|
||||
#define OCP_STATUS_NO_RESP 0x00000
|
||||
#define OCP_STATUS_OK 0x10000
|
||||
#define OCP_STATUS_REQ_FAILED 0x20000
|
||||
#define OCP_STATUS_RESP_ERROR 0x30000
|
||||
|
||||
#define OCP_REG_POLARITY 0x30032
|
||||
#define OCP_REG_POLARITY 0x0064
|
||||
|
||||
#define CMD_MBOX_ADDRESS 0x407B4
|
||||
|
||||
|
在新工单中引用
屏蔽一个用户