diff options
Diffstat (limited to 'src/soc/mediatek/mt8173/include/soc/mipi.h')
-rw-r--r-- | src/soc/mediatek/mt8173/include/soc/mipi.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/src/soc/mediatek/mt8173/include/soc/mipi.h b/src/soc/mediatek/mt8173/include/soc/mipi.h new file mode 100644 index 0000000000..bf8b3b4a21 --- /dev/null +++ b/src/soc/mediatek/mt8173/include/soc/mipi.h @@ -0,0 +1,38 @@ +/* + * This file is part of the coreboot project. + * + * Copyright 2015 MediaTek Inc. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * 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. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#ifndef __SOC_MEDIATEK_MT8173_MIPI_H__ +#define __SOC_MEDIATEK_MT8173_MIPI_H__ + +#include <soc/addressmap.h> +#include <types.h> + +struct mipi_rx_regs { + uint32_t rev0[19]; + uint32_t mipi_rx_ana4c; + uint32_t mipi_rx_ana50; + uint32_t rev1; +}; + +check_member(mipi_rx_regs, mipi_rx_ana4c, 0x4c); +check_member(mipi_rx_regs, rev1, 0x54); + +static struct mipi_rx_regs *const mt8173_mipi = (void *)(ANA_MIPI_CS1_BASE); + +#endif /* __SOC_MEDIATEK_MT8173_MIPI_H__ */ |