| /* |
| * Copyright (c) 2012-2013, 2015-2017, The Linux Foundation. |
| * All rights reserved. |
| * |
| * This program is free software; you can redistribute it and/or modify |
| * it under the terms of the GNU General Public License version 2 and |
| * only version 2 as published by the Free Software Foundation. |
| * |
| * This program is distributed in the hope that it will be useful, |
| * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| * GNU General Public License for more details. |
| */ |
| |
| #ifndef __GSBI_H_ |
| #define __GSBI_H_ |
| |
| #include <asm/io.h> |
| |
| /* GSBI Registers */ |
| #define GSBI_CTRL_REG(base) ((base) + 0x0) |
| |
| #define GSBI_CTRL_REG_PROTOCOL_CODE_S 4 |
| #define GSBI_PROTOCOL_CODE_I2C 0x2 |
| #define GSBI_PROTOCOL_CODE_SPI 0x3 |
| #define GSBI_PROTOCOL_CODE_UART_FLOW 0x4 |
| #define GSBI_PROTOCOL_CODE_I2C_UART 0x6 |
| |
| #define GSBI_HCLK_CTL_S 4 |
| #define GSBI_HCLK_CTL_CLK_ENA 0x1 |
| |
| #endif |
| |