hc
2024-05-10 9999e48639b3cecb08ffb37358bcba3b48161b29
kernel/drivers/memory/emif.h
....@@ -1,13 +1,10 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * Defines for the EMIF driver
34 *
45 * Copyright (C) 2012 Texas Instruments, Inc.
56 *
67 * Benoit Cousson (b-cousson@ti.com)
7
- *
8
- * This program is free software; you can redistribute it and/or modify
9
- * it under the terms of the GNU General Public License version 2 as
10
- * published by the Free Software Foundation.
118 */
129 #ifndef __EMIF_H
1310 #define __EMIF_H
....@@ -537,6 +534,9 @@
537534 #define MCONNID_SHIFT 0
538535 #define MCONNID_MASK (0xff << 0)
539536
537
+/* READ_WRITE_LEVELING_CONTROL */
538
+#define RDWRLVLFULL_START 0x80000000
539
+
540540 /* DDR_PHY_CTRL_1 - EMIF4D */
541541 #define DLL_SLAVE_DLY_CTRL_SHIFT_4D 4
542542 #define DLL_SLAVE_DLY_CTRL_MASK_4D (0xFF << 4)
....@@ -598,6 +598,7 @@
598598
599599 void ti_emif_save_context(void);
600600 void ti_emif_restore_context(void);
601
+void ti_emif_run_hw_leveling(void);
601602 void ti_emif_enter_sr(void);
602603 void ti_emif_exit_sr(void);
603604 void ti_emif_abort_sr(void);