aboutsummaryrefslogtreecommitdiff
path: root/src/superio/ite/it8721f/it8721f.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/superio/ite/it8721f/it8721f.h')
-rw-r--r--src/superio/ite/it8721f/it8721f.h18
1 files changed, 11 insertions, 7 deletions
diff --git a/src/superio/ite/it8721f/it8721f.h b/src/superio/ite/it8721f/it8721f.h
index 25300e6659..9d5a528295 100644
--- a/src/superio/ite/it8721f/it8721f.h
+++ b/src/superio/ite/it8721f/it8721f.h
@@ -19,9 +19,13 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#ifndef SUPERIO_ITE_IT8721F_IT8721F_H
-#define SUPERIO_ITE_IT8721F_IT8721F_H
+#ifndef SUPERIO_ITE_IT8721F_H
+#define SUPERIO_ITE_IT8721F_H
+#include <device/pnp.h>
+#include <stdint.h>
+
+/* Logical Device Numbers (LDN). */
#define IT8721F_FDC 0x00 /* Floppy */
#define IT8721F_SP1 0x01 /* Com1 */
#define IT8721F_SP2 0x02 /* Com2 */
@@ -32,10 +36,10 @@
#define IT8721F_GPIO 0x07 /* GPIO */
#define IT8721F_IR 0x0a /* Consumer IR */
-#if defined(__PRE_RAM__)
-void it8721f_24mhz_clkin(void);
-void it8721f_disable_reboot(void);
+#define IT8721F_UART_CLK_PREDIVIDE_48 0x00 /* default */
+#define IT8721F_UART_CLK_PREDIVIDE_24 0x01
+
+void it8721f_conf_clkin(device_t dev, u8 predivide);
void it8721f_enable_serial(device_t dev, u16 iobase);
-#endif
-#endif
+#endif /* SUPERIO_ITE_IT8721F_H */