coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
ebi2.h
Go to the documentation of this file.
1 /* Taken from U-Boot. */
2 /* SPDX-License-Identifier: BSD-3-Clause */
3 #ifndef __SOC_QUALCOMM_IPQ40XX_EBI2_H_
4 #define __SOC_QUALCOMM_IPQ40XX_EBI2_H_
5 
6 #include <stdint.h>
7 
8 #define EBI2CR_BASE (0x1A600000)
9 
10 struct ebi2cr_regs {
11  uint32_t chip_select_cfg0; /* 0x00000000 */
12  uint32_t cfg; /* 0x00000004 */
13  uint32_t hw_info; /* 0x00000008 */
15  uint32_t lcd_cfg0; /* 0x00000020 */
16  uint32_t lcd_cfg1; /* 0x00000024 */
18  uint32_t arbiter_cfg; /* 0x00000030 */
20  uint32_t debug_sel; /* 0x00000050 */
21  uint32_t crc_cfg; /* 0x00000054 */
22  uint32_t crc_reminder_cfg; /* 0x00000058 */
23  uint32_t nand_adm_mux; /* 0x0000005C */
24  uint32_t mutex_addr_offset; /* 0x00000060 */
25  uint32_t misr_value; /* 0x00000064 */
26  uint32_t clkon_cfg; /* 0x00000068 */
27  uint32_t core_clkon_cfg; /* 0x0000006C */
28 };
29 
30 /* Register: EBI2_CHIP_SELECT_CFG0 */
31 #define CS7_CFG_MASK 0x00001000
32 #define CS7_CFG_DISABLE 0x00000000
33 #define CS7_CFG_GENERAL_SRAM_MEMORY_INTERFACE 0x00001000
34 #define CS7_CFG(i) ((i) << 12)
35 
36 #define CS6_CFG_MASK 0x00000800
37 #define CS6_CFG_DISABLE 0x00000000
38 #define CS6_CFG_GENERAL_SRAM_MEMORY_INTERFACE 0x00000800
39 #define CS6_CFG(i) ((i) << 11)
40 
41 #define ETM_CS_CFG_MASK 0x00000400
42 #define ETM_CS_CFG_DISABLE 0x00000000
43 #define ETM_CS_CFG_GENERAL_SRAM_MEMORY_INTERFACE 0x00000400
44 #define ETM_CS_CFG(i) ((i) << 10)
45 
46 #define CS5_CFG_MASK 0x00000300
47 #define CS5_CFG_DISABLE 0x00000000
48 #define CS5_CFG_LCD_DEVICE_CONNECTED 0x00000100
49 #define CS5_CFG_LCD_DEVICE_CHIP_ENABLE 0x00000200
50 #define CS5_CFG_GENERAL_SRAM_MEMORY_INTERFACE 0x00000300
51 #define CS5_CFG(i) ((i) << 8)
52 
53 #define CS4_CFG_MASK 0x000000c0
54 #define CS4_CFG_DISABLE 0x00000000
55 #define CS4_CFG_LCD_DEVICE_CONNECTED 0x00000040
56 #define CS4_CFG_GENERAL_SRAM_MEMORY_INTERFACE 0x000000C0
57 #define CS4_CFG(i) ((i) << 6)
58 
59 #define CS3_CFG_MASK 0x00000020
60 #define CS3_CFG_DISABLE 0x00000000
61 #define CS3_CFG_GENERAL_SRAM_MEMORY_INTERFACE 0x00000020
62 #define CS3_CFG(i) ((i) << 5)
63 
64 #define CS2_CFG_MASK 0x00000010
65 #define CS2_CFG_DISABLE 0x00000000
66 #define CS2_CFG_GENERAL_SRAM_MEMORY_INTERFACE 0x00000010
67 #define CS2_CFG(i) ((i) << 4)
68 
69 #define CS1_CFG_MASK 0x0000000c
70 #define CS1_CFG_DISABLE 0x00000000
71 #define CS1_CFG_SERIAL_FLASH_DEVICE 0x00000004
72 #define CS1_CFG_GENERAL_SRAM_MEMORY_INTERFACE 0x00000008
73 #define CS1_CFG(i) ((i) << 2)
74 
75 #define CS0_CFG_MASK 0x00000003
76 #define CS0_CFG_DISABLE 0x00000000
77 #define CS0_CFG_SERIAL_FLASH_DEVICE 0x00000001
78 #define CS0_CFG_GENERAL_SRAM_MEMORY_INTERFACE 0x00000002
79 #define CS0_CFG(i) ((i) << 0)
80 
81 #endif
unsigned int uint32_t
Definition: stdint.h:14
unsigned char uint8_t
Definition: stdint.h:8
uint32_t chip_select_cfg0
Definition: ebi2.h:11
uint32_t arbiter_cfg
Definition: ebi2.h:18
uint32_t debug_sel
Definition: ebi2.h:20
uint32_t misr_value
Definition: ebi2.h:25
uint32_t cfg
Definition: ebi2.h:12
uint32_t clkon_cfg
Definition: ebi2.h:26
uint32_t lcd_cfg0
Definition: ebi2.h:15
uint8_t reserved2[28]
Definition: ebi2.h:19
uint32_t crc_reminder_cfg
Definition: ebi2.h:22
uint8_t reserved0[20]
Definition: ebi2.h:14
uint32_t lcd_cfg1
Definition: ebi2.h:16
uint32_t mutex_addr_offset
Definition: ebi2.h:24
uint32_t nand_adm_mux
Definition: ebi2.h:23
uint32_t core_clkon_cfg
Definition: ebi2.h:27
uint8_t reserved1[8]
Definition: ebi2.h:17
uint32_t hw_info
Definition: ebi2.h:13
uint32_t crc_cfg
Definition: ebi2.h:21