aboutsummaryrefslogtreecommitdiff
path: root/src/soc/intel/apollolake/include/soc/uart.h
blob: fd535fba238e7544921d5fe858b9824211a81b4f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*
 * This file is part of the coreboot project.
 *
 * Copyright (C) 2015 Intel Corp.
 * (Written by Alexandru Gagniuc <alexandrux.gagniuc@intel.com> for Intel Corp.)
 *
 * 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; either version 2 of the License, or
 * (at your option) any later version.
 */

#ifndef _SOC_APOLLOLAKE_UART_H_
#define _SOC_APOLLOLAKE_UART_H_

/* Clock is 100MHz * (M / N).*/
#define UART_CLK		0x200
# define UART_CLK_UPDATE	(1 << 31)
# define UART_CLK_DIV_N(n)	(((n) & 0x7fff) << 16)
# define UART_CLK_DIV_M(m)	(((m) & 0x7fff) << 1)
# define UART_CLK_EN		(1 << 0)
#define UART_RESET		0x204
# define UART_RESET_DMA_EN	(1 << 2)
# define UART_RESET_UART_EN	(3 << 0)

void lpss_console_uart_init(void);

#endif /* _SOC_APOLLOLAKE_UART_H_ */