Vadim Bendebury | 476f731 | 2014-04-08 18:45:46 -0700 | [diff] [blame^] | 1 | /* |
| 2 | * Copyright (c) 2004-2011 Atheros Communications Inc. |
| 3 | * Copyright (c) 2011-2012 The Linux Foundation. All rights reserved. |
| 4 | * |
| 5 | * Permission to use, copy, modify, and/or distribute this software for any |
| 6 | * purpose with or without fee is hereby granted, provided that the above |
| 7 | * copyright notice and this permission notice appear in all copies. |
| 8 | * |
| 9 | * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES |
| 10 | * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF |
| 11 | * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR |
| 12 | * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES |
| 13 | * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN |
| 14 | * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF |
| 15 | * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
| 16 | */ |
| 17 | |
| 18 | |
| 19 | #ifndef __GSBI_H_ |
| 20 | #define __GSBI_H_ |
| 21 | |
| 22 | #include <asm/io.h> |
| 23 | |
| 24 | /* GSBI Registers */ |
| 25 | #define GSBI_CTRL_REG(base) ((base) + 0x0) |
| 26 | |
| 27 | #define GSBI_CTRL_REG_PROTOCOL_CODE_S 4 |
| 28 | #define GSBI_PROTOCOL_CODE_I2C 0x2 |
| 29 | #define GSBI_PROTOCOL_CODE_SPI 0x3 |
| 30 | #define GSBI_PROTOCOL_CODE_UART_FLOW 0x4 |
| 31 | #define GSBI_PROTOCOL_CODE_I2C_UART 0x6 |
| 32 | |
| 33 | #define GSBI_HCLK_CTL_S 4 |
| 34 | #define GSBI_HCLK_CTL_CLK_ENA 0x1 |
| 35 | |
| 36 | #endif |
| 37 | |