"Das U-Boot" Source Tree

global: Finish CONFIG -> CFG migration

At this point, the remaining places where we have a symbol that is
defined as CONFIG_... are in fairly odd locations. While as much dead
code has been removed as possible, some of these locations are simply
less obvious at first. In other cases, this code is used, but was
defined in such a way as to have been missed by earlier checks. Perform
a rename of all such remaining symbols to be CFG_... rather than
CONFIG_...

Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>

Tom Rini 6e7df1d1 ad242344

+1087 -1087
+12 -12
README
··· 445 445 example "env grep" and "setexpr". 446 446 447 447 - Watchdog: 448 - CONFIG_SYS_WATCHDOG_FREQ 448 + CFG_SYS_WATCHDOG_FREQ 449 449 Some platforms automatically call WATCHDOG_RESET() 450 450 from the timer interrupt handler every 451 - CONFIG_SYS_WATCHDOG_FREQ interrupts. If not set by the 451 + CFG_SYS_WATCHDOG_FREQ interrupts. If not set by the 452 452 board configuration file, a default of CONFIG_SYS_HZ/2 453 - (i.e. 500) is used. Setting CONFIG_SYS_WATCHDOG_FREQ 453 + (i.e. 500) is used. Setting CFG_SYS_WATCHDOG_FREQ 454 454 to 0 disables calling WATCHDOG_RESET() from the timer 455 455 interrupt. 456 456 ··· 523 523 CONFIG_LAN91C96_USE_32_BIT 524 524 Define this to enable 32 bit addressing 525 525 526 - CONFIG_SYS_DAVINCI_EMAC_PHY_COUNT 526 + CFG_SYS_DAVINCI_EMAC_PHY_COUNT 527 527 Define this if you have more then 3 PHYs. 528 528 529 529 CONFIG_FTGMAC100 ··· 653 653 To enable the ULPI layer support, define CONFIG_USB_ULPI and 654 654 CONFIG_USB_ULPI_VIEWPORT in your board configuration file. 655 655 If your ULPI phy needs a different reference clock than the 656 - standard 24 MHz then you have to define CONFIG_ULPI_REF_CLK to 656 + standard 24 MHz then you have to define CFG_ULPI_REF_CLK to 657 657 the appropriate value in Hz. 658 658 659 659 - MMC Support: ··· 734 734 4th and following 735 735 BOOTP requests: delay 0 ... 8 sec 736 736 737 - CONFIG_BOOTP_ID_CACHE_SIZE 737 + CFG_BOOTP_ID_CACHE_SIZE 738 738 739 739 BOOTP packets are uniquely identified using a 32-bit ID. The 740 740 server will copy the ID from client requests to responses and ··· 747 747 time is too long, U-Boot will retransmit requests. In order 748 748 to allow earlier responses to still be accepted after these 749 749 retransmissions, U-Boot's BOOTP client keeps a small cache of 750 - IDs. The CONFIG_BOOTP_ID_CACHE_SIZE controls the size of this 750 + IDs. The CFG_BOOTP_ID_CACHE_SIZE controls the size of this 751 751 cache. The default is to keep IDs for up to four outstanding 752 752 requests. Increasing this will allow U-Boot to accept offers 753 753 from a BOOTP client in networks with unusually high latency. ··· 832 832 status LED backend implementation. Define CONFIG_LED_STATUS_GPIO 833 833 to include the gpio_led driver in the U-Boot binary. 834 834 835 - CONFIG_GPIO_LED_INVERTED_TABLE 835 + CFG_GPIO_LED_INVERTED_TABLE 836 836 Some GPIO connected LEDs may have inverted polarity in which 837 837 case the GPIO high value corresponds to LED off state and 838 838 GPIO low value corresponds to LED on state. 839 - In such cases CONFIG_GPIO_LED_INVERTED_TABLE may be defined 839 + In such cases CFG_GPIO_LED_INVERTED_TABLE may be defined 840 840 with a list of GPIO LEDs that have inverted polarity. 841 841 842 842 - I2C Support: ··· 993 993 SPI EEPROM, also an instance works with Crystal A/D and 994 994 D/As on the SACSng board) 995 995 996 - CONFIG_SYS_SPI_MXC_WAIT 996 + CFG_SYS_SPI_MXC_WAIT 997 997 Timeout for waiting until spi transfer completed. 998 998 default: (CONFIG_SYS_HZ/100) /* 10 ms */ 999 999 ··· 1023 1023 If defined, a function that provides delays in the FPGA 1024 1024 configuration driver. 1025 1025 1026 - CONFIG_SYS_FPGA_CHECK_ERROR 1026 + CFG_SYS_FPGA_CHECK_ERROR 1027 1027 1028 1028 Check for configuration errors during FPGA bitfile 1029 1029 loading. For example, abort during Virtex II ··· 1319 1319 - CONFIG_SYS_LONGHELP: Defined when you want long help messages included; 1320 1320 undefine this when you're short of memory. 1321 1321 1322 - - CONFIG_SYS_HELP_CMD_WIDTH: Defined when you want to override the default 1322 + - CFG_SYS_HELP_CMD_WIDTH: Defined when you want to override the default 1323 1323 width of the commands listed in the 'help' command output. 1324 1324 1325 1325 - CONFIG_SYS_PROMPT: This is what U-Boot prints on the console to
+83 -83
arch/arm/cpu/armv8/fsl-layerscape/cpu.c
··· 91 91 #define EARLY_PGTABLE_SIZE 0x5000 92 92 static struct mm_region early_map[] = { 93 93 #ifdef CONFIG_FSL_LSCH3 94 - { CONFIG_SYS_FSL_CCSR_BASE, CONFIG_SYS_FSL_CCSR_BASE, 95 - CONFIG_SYS_FSL_CCSR_SIZE, 94 + { CFG_SYS_FSL_CCSR_BASE, CFG_SYS_FSL_CCSR_BASE, 95 + CFG_SYS_FSL_CCSR_SIZE, 96 96 PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) | 97 97 PTE_BLOCK_NON_SHARE | PTE_BLOCK_PXN | PTE_BLOCK_UXN 98 98 }, ··· 101 101 PTE_BLOCK_MEMTYPE(MT_NORMAL) | PTE_BLOCK_NON_SHARE 102 102 }, 103 103 { CFG_SYS_FSL_QSPI_BASE1, CFG_SYS_FSL_QSPI_BASE1, 104 - CONFIG_SYS_FSL_QSPI_SIZE1, 104 + CFG_SYS_FSL_QSPI_SIZE1, 105 105 PTE_BLOCK_MEMTYPE(MT_NORMAL) | PTE_BLOCK_NON_SHARE}, 106 106 #ifdef CONFIG_FSL_IFC 107 107 /* For IFC Region #1, only the first 4MB is cache-enabled */ 108 - { CONFIG_SYS_FSL_IFC_BASE1, CONFIG_SYS_FSL_IFC_BASE1, 109 - CONFIG_SYS_FSL_IFC_SIZE1_1, 108 + { CFG_SYS_FSL_IFC_BASE1, CFG_SYS_FSL_IFC_BASE1, 109 + CFG_SYS_FSL_IFC_SIZE1_1, 110 110 PTE_BLOCK_MEMTYPE(MT_NORMAL) | PTE_BLOCK_NON_SHARE 111 111 }, 112 - { CONFIG_SYS_FSL_IFC_BASE1 + CONFIG_SYS_FSL_IFC_SIZE1_1, 113 - CONFIG_SYS_FSL_IFC_BASE1 + CONFIG_SYS_FSL_IFC_SIZE1_1, 114 - CONFIG_SYS_FSL_IFC_SIZE1 - CONFIG_SYS_FSL_IFC_SIZE1_1, 112 + { CFG_SYS_FSL_IFC_BASE1 + CFG_SYS_FSL_IFC_SIZE1_1, 113 + CFG_SYS_FSL_IFC_BASE1 + CFG_SYS_FSL_IFC_SIZE1_1, 114 + CFG_SYS_FSL_IFC_SIZE1 - CFG_SYS_FSL_IFC_SIZE1_1, 115 115 PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) | PTE_BLOCK_NON_SHARE 116 116 }, 117 - { CFG_SYS_FLASH_BASE, CONFIG_SYS_FSL_IFC_BASE1, 118 - CONFIG_SYS_FSL_IFC_SIZE1, 117 + { CFG_SYS_FLASH_BASE, CFG_SYS_FSL_IFC_BASE1, 118 + CFG_SYS_FSL_IFC_SIZE1, 119 119 PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) | PTE_BLOCK_NON_SHARE 120 120 }, 121 121 #endif 122 - { CONFIG_SYS_FSL_DRAM_BASE1, CONFIG_SYS_FSL_DRAM_BASE1, 123 - CONFIG_SYS_FSL_DRAM_SIZE1, 122 + { CFG_SYS_FSL_DRAM_BASE1, CFG_SYS_FSL_DRAM_BASE1, 123 + CFG_SYS_FSL_DRAM_SIZE1, 124 124 #if defined(CONFIG_TFABOOT) || \ 125 125 (defined(CONFIG_SPL) && !defined(CONFIG_SPL_BUILD)) 126 126 PTE_BLOCK_MEMTYPE(MT_NORMAL) | ··· 131 131 }, 132 132 #ifdef CONFIG_FSL_IFC 133 133 /* Map IFC region #2 up to CFG_SYS_FLASH_BASE for NAND boot */ 134 - { CONFIG_SYS_FSL_IFC_BASE2, CONFIG_SYS_FSL_IFC_BASE2, 135 - CFG_SYS_FLASH_BASE - CONFIG_SYS_FSL_IFC_BASE2, 134 + { CFG_SYS_FSL_IFC_BASE2, CFG_SYS_FSL_IFC_BASE2, 135 + CFG_SYS_FLASH_BASE - CFG_SYS_FSL_IFC_BASE2, 136 136 PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) | PTE_BLOCK_NON_SHARE 137 137 }, 138 138 #endif 139 - { CONFIG_SYS_FSL_DCSR_BASE, CONFIG_SYS_FSL_DCSR_BASE, 140 - CONFIG_SYS_FSL_DCSR_SIZE, 139 + { CFG_SYS_FSL_DCSR_BASE, CFG_SYS_FSL_DCSR_BASE, 140 + CFG_SYS_FSL_DCSR_SIZE, 141 141 PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) | 142 142 PTE_BLOCK_NON_SHARE | PTE_BLOCK_PXN | PTE_BLOCK_UXN 143 143 }, 144 - { CONFIG_SYS_FSL_DRAM_BASE2, CONFIG_SYS_FSL_DRAM_BASE2, 145 - CONFIG_SYS_FSL_DRAM_SIZE2, 144 + { CFG_SYS_FSL_DRAM_BASE2, CFG_SYS_FSL_DRAM_BASE2, 145 + CFG_SYS_FSL_DRAM_SIZE2, 146 146 PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) | PTE_BLOCK_PXN | PTE_BLOCK_UXN | 147 147 PTE_BLOCK_OUTER_SHARE | PTE_BLOCK_NS 148 148 }, 149 - #ifdef CONFIG_SYS_FSL_DRAM_BASE3 150 - { CONFIG_SYS_FSL_DRAM_BASE3, CONFIG_SYS_FSL_DRAM_BASE3, 151 - CONFIG_SYS_FSL_DRAM_SIZE3, 149 + #ifdef CFG_SYS_FSL_DRAM_BASE3 150 + { CFG_SYS_FSL_DRAM_BASE3, CFG_SYS_FSL_DRAM_BASE3, 151 + CFG_SYS_FSL_DRAM_SIZE3, 152 152 PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) | PTE_BLOCK_PXN | PTE_BLOCK_UXN | 153 153 PTE_BLOCK_OUTER_SHARE | PTE_BLOCK_NS 154 154 }, 155 155 #endif 156 156 #elif defined(CONFIG_FSL_LSCH2) 157 - { CONFIG_SYS_FSL_CCSR_BASE, CONFIG_SYS_FSL_CCSR_BASE, 158 - CONFIG_SYS_FSL_CCSR_SIZE, 157 + { CFG_SYS_FSL_CCSR_BASE, CFG_SYS_FSL_CCSR_BASE, 158 + CFG_SYS_FSL_CCSR_SIZE, 159 159 PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) | 160 160 PTE_BLOCK_NON_SHARE | PTE_BLOCK_PXN | PTE_BLOCK_UXN 161 161 }, ··· 163 163 SYS_FSL_OCRAM_SPACE_SIZE, 164 164 PTE_BLOCK_MEMTYPE(MT_NORMAL) | PTE_BLOCK_NON_SHARE 165 165 }, 166 - { CONFIG_SYS_FSL_DCSR_BASE, CONFIG_SYS_FSL_DCSR_BASE, 167 - CONFIG_SYS_FSL_DCSR_SIZE, 166 + { CFG_SYS_FSL_DCSR_BASE, CFG_SYS_FSL_DCSR_BASE, 167 + CFG_SYS_FSL_DCSR_SIZE, 168 168 PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) | 169 169 PTE_BLOCK_NON_SHARE | PTE_BLOCK_PXN | PTE_BLOCK_UXN 170 170 }, 171 171 { CFG_SYS_FSL_QSPI_BASE, CFG_SYS_FSL_QSPI_BASE, 172 - CONFIG_SYS_FSL_QSPI_SIZE, 172 + CFG_SYS_FSL_QSPI_SIZE, 173 173 PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) | PTE_BLOCK_NON_SHARE 174 174 }, 175 175 #ifdef CONFIG_FSL_IFC 176 - { CONFIG_SYS_FSL_IFC_BASE, CONFIG_SYS_FSL_IFC_BASE, 177 - CONFIG_SYS_FSL_IFC_SIZE, 176 + { CFG_SYS_FSL_IFC_BASE, CFG_SYS_FSL_IFC_BASE, 177 + CFG_SYS_FSL_IFC_SIZE, 178 178 PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) | PTE_BLOCK_NON_SHARE 179 179 }, 180 180 #endif 181 - { CONFIG_SYS_FSL_DRAM_BASE1, CONFIG_SYS_FSL_DRAM_BASE1, 182 - CONFIG_SYS_FSL_DRAM_SIZE1, 181 + { CFG_SYS_FSL_DRAM_BASE1, CFG_SYS_FSL_DRAM_BASE1, 182 + CFG_SYS_FSL_DRAM_SIZE1, 183 183 #if defined(CONFIG_TFABOOT) || \ 184 184 (defined(CONFIG_SPL) && !defined(CONFIG_SPL_BUILD)) 185 185 PTE_BLOCK_MEMTYPE(MT_NORMAL) | ··· 188 188 #endif 189 189 PTE_BLOCK_OUTER_SHARE | PTE_BLOCK_NS 190 190 }, 191 - { CONFIG_SYS_FSL_DRAM_BASE2, CONFIG_SYS_FSL_DRAM_BASE2, 192 - CONFIG_SYS_FSL_DRAM_SIZE2, 191 + { CFG_SYS_FSL_DRAM_BASE2, CFG_SYS_FSL_DRAM_BASE2, 192 + CFG_SYS_FSL_DRAM_SIZE2, 193 193 PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) | PTE_BLOCK_PXN | PTE_BLOCK_UXN | 194 194 PTE_BLOCK_OUTER_SHARE | PTE_BLOCK_NS 195 195 }, ··· 199 199 200 200 static struct mm_region final_map[] = { 201 201 #ifdef CONFIG_FSL_LSCH3 202 - { CONFIG_SYS_FSL_CCSR_BASE, CONFIG_SYS_FSL_CCSR_BASE, 203 - CONFIG_SYS_FSL_CCSR_SIZE, 202 + { CFG_SYS_FSL_CCSR_BASE, CFG_SYS_FSL_CCSR_BASE, 203 + CFG_SYS_FSL_CCSR_SIZE, 204 204 PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) | 205 205 PTE_BLOCK_NON_SHARE | PTE_BLOCK_PXN | PTE_BLOCK_UXN 206 206 }, ··· 208 208 SYS_FSL_OCRAM_SPACE_SIZE, 209 209 PTE_BLOCK_MEMTYPE(MT_NORMAL) | PTE_BLOCK_NON_SHARE 210 210 }, 211 - { CONFIG_SYS_FSL_DRAM_BASE1, CONFIG_SYS_FSL_DRAM_BASE1, 212 - CONFIG_SYS_FSL_DRAM_SIZE1, 211 + { CFG_SYS_FSL_DRAM_BASE1, CFG_SYS_FSL_DRAM_BASE1, 212 + CFG_SYS_FSL_DRAM_SIZE1, 213 213 PTE_BLOCK_MEMTYPE(MT_NORMAL) | 214 214 PTE_BLOCK_OUTER_SHARE | PTE_BLOCK_NS 215 215 }, 216 216 { CFG_SYS_FSL_QSPI_BASE1, CFG_SYS_FSL_QSPI_BASE1, 217 - CONFIG_SYS_FSL_QSPI_SIZE1, 217 + CFG_SYS_FSL_QSPI_SIZE1, 218 218 PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) | 219 219 PTE_BLOCK_NON_SHARE | PTE_BLOCK_PXN | PTE_BLOCK_UXN 220 220 }, 221 221 { CFG_SYS_FSL_QSPI_BASE2, CFG_SYS_FSL_QSPI_BASE2, 222 - CONFIG_SYS_FSL_QSPI_SIZE2, 222 + CFG_SYS_FSL_QSPI_SIZE2, 223 223 PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) | 224 224 PTE_BLOCK_NON_SHARE | PTE_BLOCK_PXN | PTE_BLOCK_UXN 225 225 }, 226 226 #ifdef CONFIG_FSL_IFC 227 - { CONFIG_SYS_FSL_IFC_BASE2, CONFIG_SYS_FSL_IFC_BASE2, 228 - CONFIG_SYS_FSL_IFC_SIZE2, 227 + { CFG_SYS_FSL_IFC_BASE2, CFG_SYS_FSL_IFC_BASE2, 228 + CFG_SYS_FSL_IFC_SIZE2, 229 229 PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) | 230 230 PTE_BLOCK_NON_SHARE | PTE_BLOCK_PXN | PTE_BLOCK_UXN 231 231 }, 232 232 #endif 233 - { CONFIG_SYS_FSL_DCSR_BASE, CONFIG_SYS_FSL_DCSR_BASE, 234 - CONFIG_SYS_FSL_DCSR_SIZE, 233 + { CFG_SYS_FSL_DCSR_BASE, CFG_SYS_FSL_DCSR_BASE, 234 + CFG_SYS_FSL_DCSR_SIZE, 235 235 PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) | 236 236 PTE_BLOCK_NON_SHARE | PTE_BLOCK_PXN | PTE_BLOCK_UXN 237 237 }, 238 - { CONFIG_SYS_FSL_MC_BASE, CONFIG_SYS_FSL_MC_BASE, 239 - CONFIG_SYS_FSL_MC_SIZE, 238 + { CFG_SYS_FSL_MC_BASE, CFG_SYS_FSL_MC_BASE, 239 + CFG_SYS_FSL_MC_SIZE, 240 240 PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) | 241 241 PTE_BLOCK_NON_SHARE | PTE_BLOCK_PXN | PTE_BLOCK_UXN 242 242 }, 243 - { CONFIG_SYS_FSL_NI_BASE, CONFIG_SYS_FSL_NI_BASE, 244 - CONFIG_SYS_FSL_NI_SIZE, 243 + { CFG_SYS_FSL_NI_BASE, CFG_SYS_FSL_NI_BASE, 244 + CFG_SYS_FSL_NI_SIZE, 245 245 PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) | 246 246 PTE_BLOCK_NON_SHARE | PTE_BLOCK_PXN | PTE_BLOCK_UXN 247 247 }, 248 248 /* For QBMAN portal, only the first 64MB is cache-enabled */ 249 - { CONFIG_SYS_FSL_QBMAN_BASE, CONFIG_SYS_FSL_QBMAN_BASE, 250 - CONFIG_SYS_FSL_QBMAN_SIZE_1, 249 + { CFG_SYS_FSL_QBMAN_BASE, CFG_SYS_FSL_QBMAN_BASE, 250 + CFG_SYS_FSL_QBMAN_SIZE_1, 251 251 PTE_BLOCK_MEMTYPE(MT_NORMAL) | 252 252 PTE_BLOCK_NON_SHARE | PTE_BLOCK_PXN | PTE_BLOCK_UXN | PTE_BLOCK_NS 253 253 }, 254 - { CONFIG_SYS_FSL_QBMAN_BASE + CONFIG_SYS_FSL_QBMAN_SIZE_1, 255 - CONFIG_SYS_FSL_QBMAN_BASE + CONFIG_SYS_FSL_QBMAN_SIZE_1, 256 - CONFIG_SYS_FSL_QBMAN_SIZE - CONFIG_SYS_FSL_QBMAN_SIZE_1, 254 + { CFG_SYS_FSL_QBMAN_BASE + CFG_SYS_FSL_QBMAN_SIZE_1, 255 + CFG_SYS_FSL_QBMAN_BASE + CFG_SYS_FSL_QBMAN_SIZE_1, 256 + CFG_SYS_FSL_QBMAN_SIZE - CFG_SYS_FSL_QBMAN_SIZE_1, 257 257 PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) | 258 258 PTE_BLOCK_NON_SHARE | PTE_BLOCK_PXN | PTE_BLOCK_UXN 259 259 }, ··· 295 295 PTE_BLOCK_NON_SHARE | PTE_BLOCK_PXN | PTE_BLOCK_UXN 296 296 }, 297 297 #endif 298 - { CONFIG_SYS_FSL_WRIOP1_BASE, CONFIG_SYS_FSL_WRIOP1_BASE, 299 - CONFIG_SYS_FSL_WRIOP1_SIZE, 298 + { CFG_SYS_FSL_WRIOP1_BASE, CFG_SYS_FSL_WRIOP1_BASE, 299 + CFG_SYS_FSL_WRIOP1_SIZE, 300 300 PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) | 301 301 PTE_BLOCK_NON_SHARE | PTE_BLOCK_PXN | PTE_BLOCK_UXN 302 302 }, 303 - { CONFIG_SYS_FSL_AIOP1_BASE, CONFIG_SYS_FSL_AIOP1_BASE, 304 - CONFIG_SYS_FSL_AIOP1_SIZE, 303 + { CFG_SYS_FSL_AIOP1_BASE, CFG_SYS_FSL_AIOP1_BASE, 304 + CFG_SYS_FSL_AIOP1_SIZE, 305 305 PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) | 306 306 PTE_BLOCK_NON_SHARE | PTE_BLOCK_PXN | PTE_BLOCK_UXN 307 307 }, 308 - { CONFIG_SYS_FSL_PEBUF_BASE, CONFIG_SYS_FSL_PEBUF_BASE, 309 - CONFIG_SYS_FSL_PEBUF_SIZE, 308 + { CFG_SYS_FSL_PEBUF_BASE, CFG_SYS_FSL_PEBUF_BASE, 309 + CFG_SYS_FSL_PEBUF_SIZE, 310 310 PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) | 311 311 PTE_BLOCK_NON_SHARE | PTE_BLOCK_PXN | PTE_BLOCK_UXN 312 312 }, 313 - { CONFIG_SYS_FSL_DRAM_BASE2, CONFIG_SYS_FSL_DRAM_BASE2, 314 - CONFIG_SYS_FSL_DRAM_SIZE2, 313 + { CFG_SYS_FSL_DRAM_BASE2, CFG_SYS_FSL_DRAM_BASE2, 314 + CFG_SYS_FSL_DRAM_SIZE2, 315 315 PTE_BLOCK_MEMTYPE(MT_NORMAL) | 316 316 PTE_BLOCK_OUTER_SHARE | PTE_BLOCK_NS 317 317 }, 318 - #ifdef CONFIG_SYS_FSL_DRAM_BASE3 319 - { CONFIG_SYS_FSL_DRAM_BASE3, CONFIG_SYS_FSL_DRAM_BASE3, 320 - CONFIG_SYS_FSL_DRAM_SIZE3, 318 + #ifdef CFG_SYS_FSL_DRAM_BASE3 319 + { CFG_SYS_FSL_DRAM_BASE3, CFG_SYS_FSL_DRAM_BASE3, 320 + CFG_SYS_FSL_DRAM_SIZE3, 321 321 PTE_BLOCK_MEMTYPE(MT_NORMAL) | 322 322 PTE_BLOCK_OUTER_SHARE | PTE_BLOCK_NS 323 323 }, ··· 328 328 PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) | 329 329 PTE_BLOCK_NON_SHARE | PTE_BLOCK_PXN | PTE_BLOCK_UXN 330 330 }, 331 - { CONFIG_SYS_FSL_CCSR_BASE, CONFIG_SYS_FSL_CCSR_BASE, 332 - CONFIG_SYS_FSL_CCSR_SIZE, 331 + { CFG_SYS_FSL_CCSR_BASE, CFG_SYS_FSL_CCSR_BASE, 332 + CFG_SYS_FSL_CCSR_SIZE, 333 333 PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) | 334 334 PTE_BLOCK_NON_SHARE | PTE_BLOCK_PXN | PTE_BLOCK_UXN 335 335 }, ··· 337 337 SYS_FSL_OCRAM_SPACE_SIZE, 338 338 PTE_BLOCK_MEMTYPE(MT_NORMAL) | PTE_BLOCK_NON_SHARE 339 339 }, 340 - { CONFIG_SYS_FSL_DCSR_BASE, CONFIG_SYS_FSL_DCSR_BASE, 341 - CONFIG_SYS_FSL_DCSR_SIZE, 340 + { CFG_SYS_FSL_DCSR_BASE, CFG_SYS_FSL_DCSR_BASE, 341 + CFG_SYS_FSL_DCSR_SIZE, 342 342 PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) | 343 343 PTE_BLOCK_NON_SHARE | PTE_BLOCK_PXN | PTE_BLOCK_UXN 344 344 }, 345 345 { CFG_SYS_FSL_QSPI_BASE, CFG_SYS_FSL_QSPI_BASE, 346 - CONFIG_SYS_FSL_QSPI_SIZE, 346 + CFG_SYS_FSL_QSPI_SIZE, 347 347 PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) | 348 348 PTE_BLOCK_NON_SHARE | PTE_BLOCK_PXN | PTE_BLOCK_UXN 349 349 }, 350 350 #ifdef CONFIG_FSL_IFC 351 - { CONFIG_SYS_FSL_IFC_BASE, CONFIG_SYS_FSL_IFC_BASE, 352 - CONFIG_SYS_FSL_IFC_SIZE, 351 + { CFG_SYS_FSL_IFC_BASE, CFG_SYS_FSL_IFC_BASE, 352 + CFG_SYS_FSL_IFC_SIZE, 353 353 PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) | PTE_BLOCK_NON_SHARE 354 354 }, 355 355 #endif 356 - { CONFIG_SYS_FSL_DRAM_BASE1, CONFIG_SYS_FSL_DRAM_BASE1, 357 - CONFIG_SYS_FSL_DRAM_SIZE1, 356 + { CFG_SYS_FSL_DRAM_BASE1, CFG_SYS_FSL_DRAM_BASE1, 357 + CFG_SYS_FSL_DRAM_SIZE1, 358 358 PTE_BLOCK_MEMTYPE(MT_NORMAL) | 359 359 PTE_BLOCK_OUTER_SHARE | PTE_BLOCK_NS 360 360 }, 361 - { CONFIG_SYS_FSL_QBMAN_BASE, CONFIG_SYS_FSL_QBMAN_BASE, 362 - CONFIG_SYS_FSL_QBMAN_SIZE, 361 + { CFG_SYS_FSL_QBMAN_BASE, CFG_SYS_FSL_QBMAN_BASE, 362 + CFG_SYS_FSL_QBMAN_SIZE, 363 363 PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) | 364 364 PTE_BLOCK_NON_SHARE | PTE_BLOCK_PXN | PTE_BLOCK_UXN 365 365 }, 366 - { CONFIG_SYS_FSL_DRAM_BASE2, CONFIG_SYS_FSL_DRAM_BASE2, 367 - CONFIG_SYS_FSL_DRAM_SIZE2, 366 + { CFG_SYS_FSL_DRAM_BASE2, CFG_SYS_FSL_DRAM_BASE2, 367 + CFG_SYS_FSL_DRAM_SIZE2, 368 368 PTE_BLOCK_MEMTYPE(MT_NORMAL) | 369 369 PTE_BLOCK_OUTER_SHARE | PTE_BLOCK_NS 370 370 }, ··· 385 385 PTE_BLOCK_NON_SHARE | PTE_BLOCK_PXN | PTE_BLOCK_UXN 386 386 }, 387 387 #endif 388 - { CONFIG_SYS_FSL_DRAM_BASE3, CONFIG_SYS_FSL_DRAM_BASE3, 389 - CONFIG_SYS_FSL_DRAM_SIZE3, 388 + { CFG_SYS_FSL_DRAM_BASE3, CFG_SYS_FSL_DRAM_BASE3, 389 + CFG_SYS_FSL_DRAM_SIZE3, 390 390 PTE_BLOCK_MEMTYPE(MT_NORMAL) | 391 391 PTE_BLOCK_OUTER_SHARE | PTE_BLOCK_NS 392 392 }, ··· 536 536 * table. 537 537 */ 538 538 switch (final_map[index].virt) { 539 - case CONFIG_SYS_FSL_DRAM_BASE1: 539 + case CFG_SYS_FSL_DRAM_BASE1: 540 540 final_map[index].virt = gd->bd->bi_dram[0].start; 541 541 final_map[index].phys = gd->bd->bi_dram[0].start; 542 542 final_map[index].size = gd->bd->bi_dram[0].size; 543 543 break; 544 - #ifdef CONFIG_SYS_FSL_DRAM_BASE2 545 - case CONFIG_SYS_FSL_DRAM_BASE2: 544 + #ifdef CFG_SYS_FSL_DRAM_BASE2 545 + case CFG_SYS_FSL_DRAM_BASE2: 546 546 #if (CONFIG_NR_DRAM_BANKS >= 2) 547 547 final_map[index].virt = gd->bd->bi_dram[1].start; 548 548 final_map[index].phys = gd->bd->bi_dram[1].start; ··· 552 552 #endif 553 553 break; 554 554 #endif 555 - #ifdef CONFIG_SYS_FSL_DRAM_BASE3 556 - case CONFIG_SYS_FSL_DRAM_BASE3: 555 + #ifdef CFG_SYS_FSL_DRAM_BASE3 556 + case CFG_SYS_FSL_DRAM_BASE3: 557 557 #if (CONFIG_NR_DRAM_BANKS >= 3) 558 558 final_map[index].virt = gd->bd->bi_dram[2].start; 559 559 final_map[index].phys = gd->bd->bi_dram[2].start; ··· 1566 1566 if (!gd->arch.tlb_addr) 1567 1567 return; 1568 1568 1569 - if (gd->ram_size <= CONFIG_SYS_FSL_DRAM_SIZE1) { 1569 + if (gd->ram_size <= CFG_SYS_FSL_DRAM_SIZE1) { 1570 1570 mmu_change_region_attr( 1571 1571 CFG_SYS_SDRAM_BASE, 1572 1572 gd->ram_size,
+48 -48
arch/arm/include/asm/arch-fsl-layerscape/cpu.h
··· 8 8 #define _FSL_LAYERSCAPE_CPU_H 9 9 10 10 #ifdef CONFIG_FSL_LSCH3 11 - #define CONFIG_SYS_FSL_CCSR_BASE 0x00000000 12 - #define CONFIG_SYS_FSL_CCSR_SIZE 0x10000000 11 + #define CFG_SYS_FSL_CCSR_BASE 0x00000000 12 + #define CFG_SYS_FSL_CCSR_SIZE 0x10000000 13 13 #define CFG_SYS_FSL_QSPI_BASE1 0x20000000 14 - #define CONFIG_SYS_FSL_QSPI_SIZE1 0x10000000 14 + #define CFG_SYS_FSL_QSPI_SIZE1 0x10000000 15 15 #ifndef CONFIG_NXP_LSCH3_2 16 - #define CONFIG_SYS_FSL_IFC_BASE1 0x30000000 17 - #define CONFIG_SYS_FSL_IFC_SIZE1 0x10000000 18 - #define CONFIG_SYS_FSL_IFC_SIZE1_1 0x400000 16 + #define CFG_SYS_FSL_IFC_BASE1 0x30000000 17 + #define CFG_SYS_FSL_IFC_SIZE1 0x10000000 18 + #define CFG_SYS_FSL_IFC_SIZE1_1 0x400000 19 19 #endif 20 - #define CONFIG_SYS_FSL_DRAM_BASE1 0x80000000 21 - #define CONFIG_SYS_FSL_DRAM_SIZE1 0x80000000 20 + #define CFG_SYS_FSL_DRAM_BASE1 0x80000000 21 + #define CFG_SYS_FSL_DRAM_SIZE1 0x80000000 22 22 #define CFG_SYS_FSL_QSPI_BASE2 0x400000000 23 - #define CONFIG_SYS_FSL_QSPI_SIZE2 0x100000000 23 + #define CFG_SYS_FSL_QSPI_SIZE2 0x100000000 24 24 #ifndef CONFIG_NXP_LSCH3_2 25 - #define CONFIG_SYS_FSL_IFC_BASE2 0x500000000 26 - #define CONFIG_SYS_FSL_IFC_SIZE2 0x100000000 25 + #define CFG_SYS_FSL_IFC_BASE2 0x500000000 26 + #define CFG_SYS_FSL_IFC_SIZE2 0x100000000 27 27 #endif 28 - #define CONFIG_SYS_FSL_DCSR_BASE 0x700000000 29 - #define CONFIG_SYS_FSL_DCSR_SIZE 0x40000000 30 - #define CONFIG_SYS_FSL_MC_BASE 0x80c000000 31 - #define CONFIG_SYS_FSL_MC_SIZE 0x4000000 32 - #define CONFIG_SYS_FSL_NI_BASE 0x810000000 33 - #define CONFIG_SYS_FSL_NI_SIZE 0x8000000 34 - #define CONFIG_SYS_FSL_QBMAN_BASE 0x818000000 35 - #define CONFIG_SYS_FSL_QBMAN_SIZE 0x8000000 36 - #define CONFIG_SYS_FSL_QBMAN_SIZE_1 0x4000000 28 + #define CFG_SYS_FSL_DCSR_BASE 0x700000000 29 + #define CFG_SYS_FSL_DCSR_SIZE 0x40000000 30 + #define CFG_SYS_FSL_MC_BASE 0x80c000000 31 + #define CFG_SYS_FSL_MC_SIZE 0x4000000 32 + #define CFG_SYS_FSL_NI_BASE 0x810000000 33 + #define CFG_SYS_FSL_NI_SIZE 0x8000000 34 + #define CFG_SYS_FSL_QBMAN_BASE 0x818000000 35 + #define CFG_SYS_FSL_QBMAN_SIZE 0x8000000 36 + #define CFG_SYS_FSL_QBMAN_SIZE_1 0x4000000 37 37 #ifdef CONFIG_ARCH_LS2080A 38 38 #define CFG_SYS_PCIE1_PHYS_SIZE 0x200000000 39 39 #define CFG_SYS_PCIE2_PHYS_SIZE 0x200000000 ··· 49 49 #define SYS_PCIE5_PHYS_SIZE 0x800000000 50 50 #define SYS_PCIE6_PHYS_SIZE 0x800000000 51 51 #endif 52 - #define CONFIG_SYS_FSL_WRIOP1_BASE 0x4300000000 53 - #define CONFIG_SYS_FSL_WRIOP1_SIZE 0x100000000 54 - #define CONFIG_SYS_FSL_AIOP1_BASE 0x4b00000000 55 - #define CONFIG_SYS_FSL_AIOP1_SIZE 0x100000000 52 + #define CFG_SYS_FSL_WRIOP1_BASE 0x4300000000 53 + #define CFG_SYS_FSL_WRIOP1_SIZE 0x100000000 54 + #define CFG_SYS_FSL_AIOP1_BASE 0x4b00000000 55 + #define CFG_SYS_FSL_AIOP1_SIZE 0x100000000 56 56 #if !defined(CONFIG_ARCH_LX2160A) || !defined(CONFIG_ARCH_LX2162) 57 - #define CONFIG_SYS_FSL_PEBUF_BASE 0x4c00000000 57 + #define CFG_SYS_FSL_PEBUF_BASE 0x4c00000000 58 58 #else 59 - #define CONFIG_SYS_FSL_PEBUF_BASE 0x1c00000000 59 + #define CFG_SYS_FSL_PEBUF_BASE 0x1c00000000 60 60 #endif 61 - #define CONFIG_SYS_FSL_PEBUF_SIZE 0x400000000 61 + #define CFG_SYS_FSL_PEBUF_SIZE 0x400000000 62 62 #ifdef CONFIG_NXP_LSCH3_2 63 - #define CONFIG_SYS_FSL_DRAM_BASE2 0x2080000000 64 - #define CONFIG_SYS_FSL_DRAM_SIZE2 0x1F80000000 65 - #define CONFIG_SYS_FSL_DRAM_BASE3 0x6000000000 66 - #define CONFIG_SYS_FSL_DRAM_SIZE3 0x2000000000 63 + #define CFG_SYS_FSL_DRAM_BASE2 0x2080000000 64 + #define CFG_SYS_FSL_DRAM_SIZE2 0x1F80000000 65 + #define CFG_SYS_FSL_DRAM_BASE3 0x6000000000 66 + #define CFG_SYS_FSL_DRAM_SIZE3 0x2000000000 67 67 #else 68 - #define CONFIG_SYS_FSL_DRAM_BASE2 0x8080000000 69 - #define CONFIG_SYS_FSL_DRAM_SIZE2 0x7F80000000 68 + #define CFG_SYS_FSL_DRAM_BASE2 0x8080000000 69 + #define CFG_SYS_FSL_DRAM_SIZE2 0x7F80000000 70 70 #endif 71 71 #elif defined(CONFIG_FSL_LSCH2) 72 - #define CONFIG_SYS_FSL_CCSR_BASE 0x1000000 73 - #define CONFIG_SYS_FSL_CCSR_SIZE 0xf000000 74 - #define CONFIG_SYS_FSL_DCSR_BASE 0x20000000 75 - #define CONFIG_SYS_FSL_DCSR_SIZE 0x4000000 72 + #define CFG_SYS_FSL_CCSR_BASE 0x1000000 73 + #define CFG_SYS_FSL_CCSR_SIZE 0xf000000 74 + #define CFG_SYS_FSL_DCSR_BASE 0x20000000 75 + #define CFG_SYS_FSL_DCSR_SIZE 0x4000000 76 76 #define CFG_SYS_FSL_QSPI_BASE 0x40000000 77 - #define CONFIG_SYS_FSL_QSPI_SIZE 0x20000000 78 - #define CONFIG_SYS_FSL_IFC_BASE 0x60000000 79 - #define CONFIG_SYS_FSL_IFC_SIZE 0x20000000 80 - #define CONFIG_SYS_FSL_DRAM_BASE1 0x80000000 81 - #define CONFIG_SYS_FSL_DRAM_SIZE1 0x80000000 82 - #define CONFIG_SYS_FSL_QBMAN_BASE 0x500000000 83 - #define CONFIG_SYS_FSL_QBMAN_SIZE 0x10000000 84 - #define CONFIG_SYS_FSL_DRAM_BASE2 0x880000000 85 - #define CONFIG_SYS_FSL_DRAM_SIZE2 0x780000000 /* 30GB */ 77 + #define CFG_SYS_FSL_QSPI_SIZE 0x20000000 78 + #define CFG_SYS_FSL_IFC_BASE 0x60000000 79 + #define CFG_SYS_FSL_IFC_SIZE 0x20000000 80 + #define CFG_SYS_FSL_DRAM_BASE1 0x80000000 81 + #define CFG_SYS_FSL_DRAM_SIZE1 0x80000000 82 + #define CFG_SYS_FSL_QBMAN_BASE 0x500000000 83 + #define CFG_SYS_FSL_QBMAN_SIZE 0x10000000 84 + #define CFG_SYS_FSL_DRAM_BASE2 0x880000000 85 + #define CFG_SYS_FSL_DRAM_SIZE2 0x780000000 /* 30GB */ 86 86 #define CFG_SYS_PCIE1_PHYS_SIZE 0x800000000 87 87 #define CFG_SYS_PCIE2_PHYS_SIZE 0x800000000 88 88 #define CFG_SYS_PCIE3_PHYS_SIZE 0x800000000 89 - #define CONFIG_SYS_FSL_DRAM_BASE3 0x8800000000 90 - #define CONFIG_SYS_FSL_DRAM_SIZE3 0x7800000000 /* 480GB */ 89 + #define CFG_SYS_FSL_DRAM_BASE3 0x8800000000 90 + #define CFG_SYS_FSL_DRAM_SIZE3 0x7800000000 /* 480GB */ 91 91 #endif 92 92 93 93 int fsl_qoriq_core_to_cluster(unsigned int core);
+1 -1
arch/arm/include/asm/arch-rockchip/ddr_rk3288.h
··· 360 360 #define PCTL_STAT_MSK 7 361 361 #define INIT_MEM 0 362 362 #define CONFIG 1 363 - #define CONFIG_REQ 2 363 + #define CFG_REQ 2 364 364 #define ACCESS 3 365 365 #define ACCESS_REQ 4 366 366 #define LOW_POWER 5
+1 -1
arch/arm/include/asm/arch-rockchip/sdram_rk322x.h
··· 415 415 #define PCTL_STAT_MASK 7 416 416 #define INIT_MEM 0 417 417 #define CONFIG 1 418 - #define CONFIG_REQ 2 418 + #define CFG_REQ 2 419 419 #define ACCESS 3 420 420 #define ACCESS_REQ 4 421 421 #define LOW_POWER 5
+1 -1
arch/arm/include/asm/arch-sunxi/i2c.h
··· 14 14 #define CFG_I2C_MVTWSI_BASE1 SUNXI_TWI1_BASE 15 15 #endif 16 16 #ifdef CONFIG_R_I2C_ENABLE 17 - #define CONFIG_I2C_MVTWSI_BASE2 SUNXI_R_TWI_BASE 17 + #define CFG_I2C_MVTWSI_BASE2 SUNXI_R_TWI_BASE 18 18 #endif 19 19 20 20 /* This is abp0-clk on sun4i/5i/7i / abp1-clk on sun6i/sun8i which is 24MHz */
+2 -2
arch/arm/mach-omap2/fdt-common.c
··· 17 17 #ifndef TI_OMAP5_SECURE_BOOT_RESV_SRAM_SZ 18 18 #define TI_OMAP5_SECURE_BOOT_RESV_SRAM_SZ (0) 19 19 #endif 20 - #ifndef CONFIG_SECURE_RUNTIME_RESV_SRAM_SZ 21 - #define CONFIG_SECURE_RUNTIME_RESV_SRAM_SZ (0) 20 + #ifndef CFG_SECURE_RUNTIME_RESV_SRAM_SZ 21 + #define CFG_SECURE_RUNTIME_RESV_SRAM_SZ (0) 22 22 #endif 23 23 24 24 int ft_hs_disable_rng(void *fdt, struct bd_info *bd)
+4 -4
arch/arm/mach-omap2/omap5/fdt.c
··· 19 19 #ifndef TI_OMAP5_SECURE_BOOT_RESV_SRAM_SZ 20 20 #define TI_OMAP5_SECURE_BOOT_RESV_SRAM_SZ (0) 21 21 #endif 22 - #ifndef CONFIG_SECURE_RUNTIME_RESV_SRAM_SZ 23 - #define CONFIG_SECURE_RUNTIME_RESV_SRAM_SZ (0) 22 + #ifndef CFG_SECURE_RUNTIME_RESV_SRAM_SZ 23 + #define CFG_SECURE_RUNTIME_RESV_SRAM_SZ (0) 24 24 #endif 25 25 26 26 static u32 hs_irq_skip[] = { ··· 92 92 } 93 93 94 94 #if ((TI_OMAP5_SECURE_BOOT_RESV_SRAM_SZ != 0) || \ 95 - (CONFIG_SECURE_RUNTIME_RESV_SRAM_SZ != 0)) 95 + (CFG_SECURE_RUNTIME_RESV_SRAM_SZ != 0)) 96 96 static int ft_hs_fixup_sram(void *fdt, struct bd_info *bd) 97 97 { 98 98 const char *path; ··· 116 116 temp[0] = cpu_to_fdt32(0); 117 117 /* reservation size */ 118 118 temp[1] = cpu_to_fdt32(max(TI_OMAP5_SECURE_BOOT_RESV_SRAM_SZ, 119 - CONFIG_SECURE_RUNTIME_RESV_SRAM_SZ)); 119 + CFG_SECURE_RUNTIME_RESV_SRAM_SZ)); 120 120 fdt_delprop(fdt, offs, "reg"); 121 121 ret = fdt_setprop(fdt, offs, "reg", temp, 2 * sizeof(u32)); 122 122 if (ret < 0) {
+48 -48
arch/arm/mach-rmobile/include/mach/rcar-mstp.h
··· 22 22 #define mstp_setclrbits_le32(addr, set, clear) \ 23 23 mstp_setclrbits(le32, addr, set, clear) 24 24 25 - #ifndef CONFIG_SMSTP0_ENA 26 - #define CONFIG_SMSTP0_ENA 0x00 25 + #ifndef CFG_SMSTP0_ENA 26 + #define CFG_SMSTP0_ENA 0x00 27 27 #endif 28 - #ifndef CONFIG_SMSTP1_ENA 29 - #define CONFIG_SMSTP1_ENA 0x00 28 + #ifndef CFG_SMSTP1_ENA 29 + #define CFG_SMSTP1_ENA 0x00 30 30 #endif 31 - #ifndef CONFIG_SMSTP2_ENA 32 - #define CONFIG_SMSTP2_ENA 0x00 31 + #ifndef CFG_SMSTP2_ENA 32 + #define CFG_SMSTP2_ENA 0x00 33 33 #endif 34 - #ifndef CONFIG_SMSTP3_ENA 35 - #define CONFIG_SMSTP3_ENA 0x00 34 + #ifndef CFG_SMSTP3_ENA 35 + #define CFG_SMSTP3_ENA 0x00 36 36 #endif 37 - #ifndef CONFIG_SMSTP4_ENA 38 - #define CONFIG_SMSTP4_ENA 0x00 37 + #ifndef CFG_SMSTP4_ENA 38 + #define CFG_SMSTP4_ENA 0x00 39 39 #endif 40 - #ifndef CONFIG_SMSTP5_ENA 41 - #define CONFIG_SMSTP5_ENA 0x00 40 + #ifndef CFG_SMSTP5_ENA 41 + #define CFG_SMSTP5_ENA 0x00 42 42 #endif 43 - #ifndef CONFIG_SMSTP6_ENA 44 - #define CONFIG_SMSTP6_ENA 0x00 43 + #ifndef CFG_SMSTP6_ENA 44 + #define CFG_SMSTP6_ENA 0x00 45 45 #endif 46 - #ifndef CONFIG_SMSTP7_ENA 47 - #define CONFIG_SMSTP7_ENA 0x00 46 + #ifndef CFG_SMSTP7_ENA 47 + #define CFG_SMSTP7_ENA 0x00 48 48 #endif 49 - #ifndef CONFIG_SMSTP8_ENA 50 - #define CONFIG_SMSTP8_ENA 0x00 49 + #ifndef CFG_SMSTP8_ENA 50 + #define CFG_SMSTP8_ENA 0x00 51 51 #endif 52 - #ifndef CONFIG_SMSTP9_ENA 53 - #define CONFIG_SMSTP9_ENA 0x00 52 + #ifndef CFG_SMSTP9_ENA 53 + #define CFG_SMSTP9_ENA 0x00 54 54 #endif 55 - #ifndef CONFIG_SMSTP10_ENA 56 - #define CONFIG_SMSTP10_ENA 0x00 55 + #ifndef CFG_SMSTP10_ENA 56 + #define CFG_SMSTP10_ENA 0x00 57 57 #endif 58 - #ifndef CONFIG_SMSTP11_ENA 59 - #define CONFIG_SMSTP11_ENA 0x00 58 + #ifndef CFG_SMSTP11_ENA 59 + #define CFG_SMSTP11_ENA 0x00 60 60 #endif 61 61 62 - #ifndef CONFIG_RMSTP0_ENA 63 - #define CONFIG_RMSTP0_ENA 0x00 62 + #ifndef CFG_RMSTP0_ENA 63 + #define CFG_RMSTP0_ENA 0x00 64 64 #endif 65 - #ifndef CONFIG_RMSTP1_ENA 66 - #define CONFIG_RMSTP1_ENA 0x00 65 + #ifndef CFG_RMSTP1_ENA 66 + #define CFG_RMSTP1_ENA 0x00 67 67 #endif 68 - #ifndef CONFIG_RMSTP2_ENA 69 - #define CONFIG_RMSTP2_ENA 0x00 68 + #ifndef CFG_RMSTP2_ENA 69 + #define CFG_RMSTP2_ENA 0x00 70 70 #endif 71 - #ifndef CONFIG_RMSTP3_ENA 72 - #define CONFIG_RMSTP3_ENA 0x00 71 + #ifndef CFG_RMSTP3_ENA 72 + #define CFG_RMSTP3_ENA 0x00 73 73 #endif 74 - #ifndef CONFIG_RMSTP4_ENA 75 - #define CONFIG_RMSTP4_ENA 0x00 74 + #ifndef CFG_RMSTP4_ENA 75 + #define CFG_RMSTP4_ENA 0x00 76 76 #endif 77 - #ifndef CONFIG_RMSTP5_ENA 78 - #define CONFIG_RMSTP5_ENA 0x00 77 + #ifndef CFG_RMSTP5_ENA 78 + #define CFG_RMSTP5_ENA 0x00 79 79 #endif 80 - #ifndef CONFIG_RMSTP6_ENA 81 - #define CONFIG_RMSTP6_ENA 0x00 80 + #ifndef CFG_RMSTP6_ENA 81 + #define CFG_RMSTP6_ENA 0x00 82 82 #endif 83 - #ifndef CONFIG_RMSTP7_ENA 84 - #define CONFIG_RMSTP7_ENA 0x00 83 + #ifndef CFG_RMSTP7_ENA 84 + #define CFG_RMSTP7_ENA 0x00 85 85 #endif 86 - #ifndef CONFIG_RMSTP8_ENA 87 - #define CONFIG_RMSTP8_ENA 0x00 86 + #ifndef CFG_RMSTP8_ENA 87 + #define CFG_RMSTP8_ENA 0x00 88 88 #endif 89 - #ifndef CONFIG_RMSTP9_ENA 90 - #define CONFIG_RMSTP9_ENA 0x00 89 + #ifndef CFG_RMSTP9_ENA 90 + #define CFG_RMSTP9_ENA 0x00 91 91 #endif 92 - #ifndef CONFIG_RMSTP10_ENA 93 - #define CONFIG_RMSTP10_ENA 0x00 92 + #ifndef CFG_RMSTP10_ENA 93 + #define CFG_RMSTP10_ENA 0x00 94 94 #endif 95 - #ifndef CONFIG_RMSTP11_ENA 96 - #define CONFIG_RMSTP11_ENA 0x00 95 + #ifndef CFG_RMSTP11_ENA 96 + #define CFG_RMSTP11_ENA 0x00 97 97 #endif 98 98 99 99 struct mstp_ctl {
+1 -1
arch/arm/mach-rockchip/rk3036/sdram_rk3036.c
··· 198 198 /* PCTL_STAT */ 199 199 INIT_MEM = 0, 200 200 CONFIG, 201 - CONFIG_REQ, 201 + CFG_REQ, 202 202 ACCESS, 203 203 ACCESS_REQ, 204 204 LOW_POWER,
+1 -1
arch/arm/mach-tegra/tegra20/warmboot_avp.c
··· 34 34 u32 reg; 35 35 36 36 /* enable JTAG & TBE */ 37 - writel(CONFIG_CTL_TBE | CONFIG_CTL_JTAG, &apb_misc->cfg_ctl); 37 + writel(CFG_CTL_TBE | CFG_CTL_JTAG, &apb_misc->cfg_ctl); 38 38 39 39 /* Are we running where we're supposed to be? */ 40 40 asm volatile (
+2 -2
arch/arm/mach-tegra/tegra20/warmboot_avp.h
··· 19 19 20 20 #define USEC_CFG_DIVISOR_MASK 0xffff 21 21 22 - #define CONFIG_CTL_TBE (1 << 7) 23 - #define CONFIG_CTL_JTAG (1 << 6) 22 + #define CFG_CTL_TBE (1 << 7) 23 + #define CFG_CTL_JTAG (1 << 6) 24 24 25 25 #define CPU_RST (1 << 0) 26 26 #define CLK_ENB_CPU (1 << 0)
+4 -4
arch/m68k/cpu/mcf523x/interrupts.c
··· 13 13 14 14 int interrupt_init(void) 15 15 { 16 - int0_t *intp = (int0_t *) (CONFIG_SYS_INTR_BASE); 16 + int0_t *intp = (int0_t *) (CFG_SYS_INTR_BASE); 17 17 18 18 /* Make sure all interrupts are disabled */ 19 19 setbits_be32(&intp->imrl0, 0x1); ··· 25 25 #if defined(CONFIG_MCFTMR) 26 26 void dtimer_intr_setup(void) 27 27 { 28 - int0_t *intp = (int0_t *) (CONFIG_SYS_INTR_BASE); 28 + int0_t *intp = (int0_t *) (CFG_SYS_INTR_BASE); 29 29 30 - out_8(&intp->icr0[CONFIG_SYS_TMRINTR_NO], CONFIG_SYS_TMRINTR_PRI); 30 + out_8(&intp->icr0[CFG_SYS_TMRINTR_NO], CFG_SYS_TMRINTR_PRI); 31 31 clrbits_be32(&intp->imrl0, INTC_IPRL_INT0); 32 - clrbits_be32(&intp->imrl0, CONFIG_SYS_TMRINTR_MASK); 32 + clrbits_be32(&intp->imrl0, CFG_SYS_TMRINTR_MASK); 33 33 } 34 34 #endif
+7 -7
arch/m68k/cpu/mcf52x2/interrupts.c
··· 37 37 #if defined(CONFIG_MCFTMR) 38 38 void dtimer_intr_setup(void) 39 39 { 40 - intctrl_t *intp = (intctrl_t *) (CONFIG_SYS_INTR_BASE); 40 + intctrl_t *intp = (intctrl_t *) (CFG_SYS_INTR_BASE); 41 41 42 42 clrbits_be32(&intp->int_icr1, INT_ICR1_TMR3MASK); 43 - setbits_be32(&intp->int_icr1, CONFIG_SYS_TMRINTR_PRI); 43 + setbits_be32(&intp->int_icr1, CFG_SYS_TMRINTR_PRI); 44 44 } 45 45 #endif /* CONFIG_MCFTMR */ 46 46 #endif /* CONFIG_M5272 */ ··· 49 49 defined(CONFIG_M5271) || defined(CONFIG_M5275) 50 50 int interrupt_init(void) 51 51 { 52 - int0_t *intp = (int0_t *) (CONFIG_SYS_INTR_BASE); 52 + int0_t *intp = (int0_t *) (CFG_SYS_INTR_BASE); 53 53 54 54 /* Make sure all interrupts are disabled */ 55 55 #if defined(CONFIG_M5208) ··· 66 66 #if defined(CONFIG_MCFTMR) 67 67 void dtimer_intr_setup(void) 68 68 { 69 - int0_t *intp = (int0_t *) (CONFIG_SYS_INTR_BASE); 69 + int0_t *intp = (int0_t *) (CFG_SYS_INTR_BASE); 70 70 71 - out_8(&intp->icr0[CONFIG_SYS_TMRINTR_NO], CONFIG_SYS_TMRINTR_PRI); 71 + out_8(&intp->icr0[CFG_SYS_TMRINTR_NO], CFG_SYS_TMRINTR_PRI); 72 72 clrbits_be32(&intp->imrl0, 0x00000001); 73 - clrbits_be32(&intp->imrl0, CONFIG_SYS_TMRINTR_MASK); 73 + clrbits_be32(&intp->imrl0, CFG_SYS_TMRINTR_MASK); 74 74 } 75 75 #endif /* CONFIG_MCFTMR */ 76 76 #endif /* CONFIG_M5282 | CONFIG_M5271 | CONFIG_M5275 */ ··· 87 87 void dtimer_intr_setup(void) 88 88 { 89 89 mbar_writeLong(MCFSIM_IMR, mbar_readLong(MCFSIM_IMR) & ~0x00000400); 90 - mbar_writeByte(MCFSIM_TIMER2ICR, CONFIG_SYS_TMRINTR_PRI); 90 + mbar_writeByte(MCFSIM_TIMER2ICR, CFG_SYS_TMRINTR_PRI); 91 91 } 92 92 #endif /* CONFIG_MCFTMR */ 93 93 #endif /* CONFIG_M5249 || CONFIG_M5253 */
+1 -1
arch/m68k/cpu/mcf530x/interrupts.c
··· 24 24 /* clearing TIMER2 mask, so enabling the related interrupt */ 25 25 out_be32(&icr->imr, in_be32(&icr->imr) & ~0x00000400); 26 26 /* set TIMER2 interrupt priority */ 27 - out_8(&icr->icr2, CONFIG_SYS_TMRINTR_PRI); 27 + out_8(&icr->icr2, CFG_SYS_TMRINTR_PRI); 28 28 } 29 29 #endif
+4 -4
arch/m68k/cpu/mcf532x/interrupts.c
··· 13 13 14 14 int interrupt_init(void) 15 15 { 16 - int0_t *intp = (int0_t *) (CONFIG_SYS_INTR_BASE); 16 + int0_t *intp = (int0_t *) (CFG_SYS_INTR_BASE); 17 17 18 18 /* Make sure all interrupts are disabled */ 19 19 setbits_be32(&intp->imrh0, 0xffffffff); ··· 26 26 #if defined(CONFIG_MCFTMR) 27 27 void dtimer_intr_setup(void) 28 28 { 29 - int0_t *intp = (int0_t *) (CONFIG_SYS_INTR_BASE); 29 + int0_t *intp = (int0_t *) (CFG_SYS_INTR_BASE); 30 30 31 - out_8(&intp->icr0[CONFIG_SYS_TMRINTR_NO], CONFIG_SYS_TMRINTR_PRI); 32 - clrbits_be32(&intp->imrh0, CONFIG_SYS_TMRINTR_MASK); 31 + out_8(&intp->icr0[CFG_SYS_TMRINTR_NO], CFG_SYS_TMRINTR_PRI); 32 + clrbits_be32(&intp->imrh0, CFG_SYS_TMRINTR_MASK); 33 33 } 34 34 #endif
+4 -4
arch/m68k/cpu/mcf5445x/interrupts.c
··· 16 16 17 17 int interrupt_init(void) 18 18 { 19 - int0_t *intp = (int0_t *) (CONFIG_SYS_INTR_BASE); 19 + int0_t *intp = (int0_t *) (CFG_SYS_INTR_BASE); 20 20 21 21 /* Make sure all interrupts are disabled */ 22 22 setbits_be32(&intp->imrh0, 0xffffffff); ··· 29 29 #if defined(CONFIG_MCFTMR) 30 30 void dtimer_intr_setup(void) 31 31 { 32 - int0_t *intp = (int0_t *) (CONFIG_SYS_INTR_BASE); 32 + int0_t *intp = (int0_t *) (CFG_SYS_INTR_BASE); 33 33 34 - out_8(&intp->icr0[CONFIG_SYS_TMRINTR_NO], CONFIG_SYS_TMRINTR_PRI); 35 - clrbits_be32(&intp->imrh0, CONFIG_SYS_TMRINTR_MASK); 34 + out_8(&intp->icr0[CFG_SYS_TMRINTR_NO], CFG_SYS_TMRINTR_PRI); 35 + clrbits_be32(&intp->imrh0, CFG_SYS_TMRINTR_MASK); 36 36 } 37 37 #endif
+21 -21
arch/m68k/include/asm/cache.h
··· 11 11 12 12 #if defined(CONFIG_MCF520x) || defined(CONFIG_MCF523x) || \ 13 13 defined(CONFIG_MCF52x2) 14 - #define CONFIG_CF_V2 14 + #define CFG_CF_V2 15 15 #endif 16 16 17 17 #if defined(CONFIG_MCF530x) || defined(CONFIG_MCF532x) || \ 18 18 defined(CONFIG_MCF5301x) 19 - #define CONFIG_CF_V3 19 + #define CFG_CF_V3 20 20 #endif 21 21 22 22 #if defined(CONFIG_MCF5441x) 23 - #define CONFIG_CF_V4E /* Four Extra ACRn */ 23 + #define CFG_CF_V4E /* Four Extra ACRn */ 24 24 #endif 25 25 26 26 /* ***** CACR ***** */ 27 27 /* V2 Core */ 28 - #ifdef CONFIG_CF_V2 28 + #ifdef CFG_CF_V2 29 29 30 30 #define CF_CACR_CENB (1 << 31) 31 31 #define CF_CACR_CPD (1 << 28) ··· 46 46 #define CF_CACR_EUSP (1 << 4) 47 47 #endif /* CONFIG_MCF5249 || CONFIG_MCF5253 */ 48 48 49 - #endif /* CONFIG_CF_V2 */ 49 + #endif /* CFG_CF_V2 */ 50 50 51 51 /* V3 Core */ 52 - #ifdef CONFIG_CF_V3 52 + #ifdef CFG_CF_V3 53 53 54 54 #define CF_CACR_EC (1 << 31) 55 55 #define CF_CACR_ESB (1 << 29) ··· 65 65 #define CF_CACR_DW (1 << 5) 66 66 #define CF_CACR_EUSP (1 << 4) 67 67 68 - #endif /* CONFIG_CF_V3 */ 68 + #endif /* CFG_CF_V3 */ 69 69 70 70 /* V4 Core */ 71 - #if defined(CONFIG_CF_V4) || defined(CONFIG_CF_V4E) 71 + #if defined(CONFIG_CF_V4) || defined(CFG_CF_V4E) 72 72 73 73 #define CF_CACR_DEC (1 << 31) 74 74 #define CF_CACR_DW (1 << 30) ··· 116 116 #define CF_ACR_WP (1 << 2) 117 117 118 118 /* V2 Core */ 119 - #ifdef CONFIG_CF_V2 119 + #ifdef CFG_CF_V2 120 120 #define CF_ACR_CM (1 << 6) 121 121 #define CF_ACR_BWE (1 << 5) 122 122 #else ··· 126 126 #define CF_ACR_CM_CB (1 << 5) 127 127 #define CF_ACR_CM_P (2 << 5) 128 128 #define CF_ACR_CM_IP (3 << 5) 129 - #endif /* CONFIG_CF_V2 */ 129 + #endif /* CFG_CF_V2 */ 130 130 131 131 /* V4 Core */ 132 - #if defined(CONFIG_CF_V4) || defined(CONFIG_CF_V4E) 132 + #if defined(CONFIG_CF_V4) || defined(CFG_CF_V4E) 133 133 #define CF_ACR_AMM (1 << 10) 134 134 #define CF_ACR_SP (1 << 3) 135 135 #endif /* CONFIG_CF_V4 */ ··· 159 159 #define CFG_SYS_CACHE_ACR2 0 160 160 #endif 161 161 162 - #ifndef CONFIG_SYS_CACHE_ACR3 163 - #define CONFIG_SYS_CACHE_ACR3 0 162 + #ifndef CFG_SYS_CACHE_ACR3 163 + #define CFG_SYS_CACHE_ACR3 0 164 164 #endif 165 165 166 - #ifndef CONFIG_SYS_CACHE_ACR4 167 - #define CONFIG_SYS_CACHE_ACR4 0 166 + #ifndef CFG_SYS_CACHE_ACR4 167 + #define CFG_SYS_CACHE_ACR4 0 168 168 #endif 169 169 170 - #ifndef CONFIG_SYS_CACHE_ACR5 171 - #define CONFIG_SYS_CACHE_ACR5 0 170 + #ifndef CFG_SYS_CACHE_ACR5 171 + #define CFG_SYS_CACHE_ACR5 0 172 172 #endif 173 173 174 - #ifndef CONFIG_SYS_CACHE_ACR6 175 - #define CONFIG_SYS_CACHE_ACR6 0 174 + #ifndef CFG_SYS_CACHE_ACR6 175 + #define CFG_SYS_CACHE_ACR6 0 176 176 #endif 177 177 178 - #ifndef CONFIG_SYS_CACHE_ACR7 179 - #define CONFIG_SYS_CACHE_ACR7 0 178 + #ifndef CFG_SYS_CACHE_ACR7 179 + #define CFG_SYS_CACHE_ACR7 0 180 180 #endif 181 181 182 182 #define CF_ADDRMASK(x) (((x > 0x10) ? ((x >> 4) - 1) : (x)) << 16)
+4 -4
arch/m68k/include/asm/coldfire/intctrl.h
··· 12 12 #if defined(CONFIG_M5235) || defined(CONFIG_M5271) || \ 13 13 defined(CONFIG_M5275) || defined(CONFIG_M5282) || \ 14 14 defined(CONFIG_M547x) 15 - # define CONFIG_SYS_CF_INTC_REG1 15 + # define CFG_SYS_CF_INTC_REG1 16 16 #endif 17 17 18 18 typedef struct int0_ctrl { ··· 23 23 u32 imrl0; /* 0x0C Mask Low */ 24 24 u32 frch0; /* 0x10 Force High */ 25 25 u32 frcl0; /* 0x14 Force Low */ 26 - #if defined(CONFIG_SYS_CF_INTC_REG1) 26 + #if defined(CFG_SYS_CF_INTC_REG1) 27 27 u8 irlr; /* 0x18 */ 28 28 u8 iacklpr; /* 0x19 */ 29 29 u16 res1[19]; /* 0x1a - 0x3c */ ··· 64 64 u32 imrl1; /* 0x0C Mask Low */ 65 65 u32 frch1; /* 0x10 Force High */ 66 66 u32 frcl1; /* 0x14 Force Low */ 67 - #if defined(CONFIG_SYS_CF_INTC_REG1) 67 + #if defined(CFG_SYS_CF_INTC_REG1) 68 68 u8 irlr; /* 0x18 */ 69 69 u8 iacklpr; /* 0x19 */ 70 70 u16 res1[19]; /* 0x1a - 0x3c */ ··· 192 192 #define INTC_IACKLPR_PRI(x) ((x) & 0x0F) 193 193 #define INTC_IACKLPR_PRI_MASK (0xF0) 194 194 195 - #if defined(CONFIG_SYS_CF_INTC_REG1) 195 + #if defined(CFG_SYS_CF_INTC_REG1) 196 196 #define INTC_ICR_IL(x) (((x) & 0x07) << 3) 197 197 #define INTC_ICR_IL_MASK (0xC7) 198 198 #define INTC_ICR_IP(x) ((x) & 0x07)
+145 -145
arch/m68k/include/asm/immap.h
··· 13 13 #include <asm/immap_520x.h> 14 14 #include <asm/m520x.h> 15 15 16 - #define CONFIG_SYS_UART_BASE (MMAP_UART0 + (CFG_SYS_UART_PORT * 0x4000)) 16 + #define CFG_SYS_UART_BASE (MMAP_UART0 + (CFG_SYS_UART_PORT * 0x4000)) 17 17 18 18 /* Timer */ 19 19 #ifdef CONFIG_MCFTMR 20 - #define CONFIG_SYS_UDELAY_BASE (MMAP_DTMR0) 21 - #define CONFIG_SYS_TMR_BASE (MMAP_DTMR1) 22 - #define CONFIG_SYS_TMRPND_REG (((volatile int0_t *)(CONFIG_SYS_INTR_BASE))->iprh0) 23 - #define CONFIG_SYS_TMRINTR_NO (INT0_HI_DTMR1) 24 - #define CONFIG_SYS_TMRINTR_MASK (INTC_IPRH_INT33) 25 - #define CONFIG_SYS_TMRINTR_PEND (CONFIG_SYS_TMRINTR_MASK) 26 - #define CONFIG_SYS_TMRINTR_PRI (6) 27 - #define CONFIG_SYS_TIMER_PRESCALER (((gd->bus_clk / 1000000) - 1) << 8) 20 + #define CFG_SYS_UDELAY_BASE (MMAP_DTMR0) 21 + #define CFG_SYS_TMR_BASE (MMAP_DTMR1) 22 + #define CFG_SYS_TMRPND_REG (((volatile int0_t *)(CFG_SYS_INTR_BASE))->iprh0) 23 + #define CFG_SYS_TMRINTR_NO (INT0_HI_DTMR1) 24 + #define CFG_SYS_TMRINTR_MASK (INTC_IPRH_INT33) 25 + #define CFG_SYS_TMRINTR_PEND (CFG_SYS_TMRINTR_MASK) 26 + #define CFG_SYS_TMRINTR_PRI (6) 27 + #define CFG_SYS_TIMER_PRESCALER (((gd->bus_clk / 1000000) - 1) << 8) 28 28 #endif 29 29 30 - #define CONFIG_SYS_INTR_BASE (MMAP_INTC0) 31 - #define CONFIG_SYS_NUM_IRQS (128) 30 + #define CFG_SYS_INTR_BASE (MMAP_INTC0) 31 + #define CFG_SYS_NUM_IRQS (128) 32 32 #endif /* CONFIG_M520x */ 33 33 34 34 #ifdef CONFIG_M5235 35 35 #include <asm/immap_5235.h> 36 36 #include <asm/m5235.h> 37 37 38 - #define CONFIG_SYS_UART_BASE (MMAP_UART0 + (CFG_SYS_UART_PORT * 0x40)) 38 + #define CFG_SYS_UART_BASE (MMAP_UART0 + (CFG_SYS_UART_PORT * 0x40)) 39 39 40 40 /* Timer */ 41 41 #ifdef CONFIG_MCFTMR 42 - #define CONFIG_SYS_UDELAY_BASE (MMAP_DTMR0) 43 - #define CONFIG_SYS_TMR_BASE (MMAP_DTMR3) 44 - #define CONFIG_SYS_TMRPND_REG (((volatile int0_t *)(CONFIG_SYS_INTR_BASE))->iprl0) 45 - #define CONFIG_SYS_TMRINTR_NO (INT0_LO_DTMR3) 46 - #define CONFIG_SYS_TMRINTR_MASK (INTC_IPRL_INT22) 47 - #define CONFIG_SYS_TMRINTR_PEND (CONFIG_SYS_TMRINTR_MASK) 48 - #define CONFIG_SYS_TMRINTR_PRI (0x1E) /* Level must include inorder to work */ 49 - #define CONFIG_SYS_TIMER_PRESCALER (((gd->bus_clk / 1000000) - 1) << 8) 42 + #define CFG_SYS_UDELAY_BASE (MMAP_DTMR0) 43 + #define CFG_SYS_TMR_BASE (MMAP_DTMR3) 44 + #define CFG_SYS_TMRPND_REG (((volatile int0_t *)(CFG_SYS_INTR_BASE))->iprl0) 45 + #define CFG_SYS_TMRINTR_NO (INT0_LO_DTMR3) 46 + #define CFG_SYS_TMRINTR_MASK (INTC_IPRL_INT22) 47 + #define CFG_SYS_TMRINTR_PEND (CFG_SYS_TMRINTR_MASK) 48 + #define CFG_SYS_TMRINTR_PRI (0x1E) /* Level must include inorder to work */ 49 + #define CFG_SYS_TIMER_PRESCALER (((gd->bus_clk / 1000000) - 1) << 8) 50 50 #endif 51 51 52 - #define CONFIG_SYS_INTR_BASE (MMAP_INTC0) 53 - #define CONFIG_SYS_NUM_IRQS (128) 52 + #define CFG_SYS_INTR_BASE (MMAP_INTC0) 53 + #define CFG_SYS_NUM_IRQS (128) 54 54 #endif /* CONFIG_M5235 */ 55 55 56 56 #ifdef CONFIG_M5249 57 57 #include <asm/immap_5249.h> 58 58 #include <asm/m5249.h> 59 59 60 - #define CONFIG_SYS_UART_BASE (MMAP_UART0 + (CFG_SYS_UART_PORT * 0x40)) 60 + #define CFG_SYS_UART_BASE (MMAP_UART0 + (CFG_SYS_UART_PORT * 0x40)) 61 61 62 - #define CONFIG_SYS_INTR_BASE (MMAP_INTC) 63 - #define CONFIG_SYS_NUM_IRQS (64) 62 + #define CFG_SYS_INTR_BASE (MMAP_INTC) 63 + #define CFG_SYS_NUM_IRQS (64) 64 64 65 65 /* Timer */ 66 66 #ifdef CONFIG_MCFTMR 67 - #define CONFIG_SYS_UDELAY_BASE (MMAP_DTMR0) 68 - #define CONFIG_SYS_TMR_BASE (MMAP_DTMR1) 69 - #define CONFIG_SYS_TMRPND_REG (mbar_readLong(MCFSIM_IPR)) 70 - #define CONFIG_SYS_TMRINTR_NO (31) 71 - #define CONFIG_SYS_TMRINTR_MASK (0x00000400) 72 - #define CONFIG_SYS_TMRINTR_PEND (CONFIG_SYS_TMRINTR_MASK) 73 - #define CONFIG_SYS_TMRINTR_PRI (MCFSIM_ICR_AUTOVEC | MCFSIM_ICR_LEVEL7 | MCFSIM_ICR_PRI3) 74 - #define CONFIG_SYS_TIMER_PRESCALER (((gd->bus_clk / 2000000) - 1) << 8) 67 + #define CFG_SYS_UDELAY_BASE (MMAP_DTMR0) 68 + #define CFG_SYS_TMR_BASE (MMAP_DTMR1) 69 + #define CFG_SYS_TMRPND_REG (mbar_readLong(MCFSIM_IPR)) 70 + #define CFG_SYS_TMRINTR_NO (31) 71 + #define CFG_SYS_TMRINTR_MASK (0x00000400) 72 + #define CFG_SYS_TMRINTR_PEND (CFG_SYS_TMRINTR_MASK) 73 + #define CFG_SYS_TMRINTR_PRI (MCFSIM_ICR_AUTOVEC | MCFSIM_ICR_LEVEL7 | MCFSIM_ICR_PRI3) 74 + #define CFG_SYS_TIMER_PRESCALER (((gd->bus_clk / 2000000) - 1) << 8) 75 75 #endif 76 76 #endif /* CONFIG_M5249 */ 77 77 ··· 80 80 #include <asm/m5249.h> 81 81 #include <asm/m5253.h> 82 82 83 - #define CONFIG_SYS_UART_BASE (MMAP_UART0 + (CFG_SYS_UART_PORT * 0x40)) 83 + #define CFG_SYS_UART_BASE (MMAP_UART0 + (CFG_SYS_UART_PORT * 0x40)) 84 84 85 - #define CONFIG_SYS_INTR_BASE (MMAP_INTC) 86 - #define CONFIG_SYS_NUM_IRQS (64) 85 + #define CFG_SYS_INTR_BASE (MMAP_INTC) 86 + #define CFG_SYS_NUM_IRQS (64) 87 87 88 88 /* Timer */ 89 89 #ifdef CONFIG_MCFTMR 90 - #define CONFIG_SYS_UDELAY_BASE (MMAP_DTMR0) 91 - #define CONFIG_SYS_TMR_BASE (MMAP_DTMR1) 92 - #define CONFIG_SYS_TMRPND_REG (mbar_readLong(MCFSIM_IPR)) 93 - #define CONFIG_SYS_TMRINTR_NO (27) 94 - #define CONFIG_SYS_TMRINTR_MASK (0x00000400) 95 - #define CONFIG_SYS_TMRINTR_PEND (CONFIG_SYS_TMRINTR_MASK) 96 - #define CONFIG_SYS_TMRINTR_PRI (MCFSIM_ICR_AUTOVEC | MCFSIM_ICR_LEVEL3 | MCFSIM_ICR_PRI3) 97 - #define CONFIG_SYS_TIMER_PRESCALER (((gd->bus_clk / 2000000) - 1) << 8) 90 + #define CFG_SYS_UDELAY_BASE (MMAP_DTMR0) 91 + #define CFG_SYS_TMR_BASE (MMAP_DTMR1) 92 + #define CFG_SYS_TMRPND_REG (mbar_readLong(MCFSIM_IPR)) 93 + #define CFG_SYS_TMRINTR_NO (27) 94 + #define CFG_SYS_TMRINTR_MASK (0x00000400) 95 + #define CFG_SYS_TMRINTR_PEND (CFG_SYS_TMRINTR_MASK) 96 + #define CFG_SYS_TMRINTR_PRI (MCFSIM_ICR_AUTOVEC | MCFSIM_ICR_LEVEL3 | MCFSIM_ICR_PRI3) 97 + #define CFG_SYS_TIMER_PRESCALER (((gd->bus_clk / 2000000) - 1) << 8) 98 98 #endif 99 99 #endif /* CONFIG_M5253 */ 100 100 ··· 102 102 #include <asm/immap_5271.h> 103 103 #include <asm/m5271.h> 104 104 105 - #define CONFIG_SYS_UART_BASE (MMAP_UART0 + (CFG_SYS_UART_PORT * 0x40)) 105 + #define CFG_SYS_UART_BASE (MMAP_UART0 + (CFG_SYS_UART_PORT * 0x40)) 106 106 107 107 /* Timer */ 108 108 #ifdef CONFIG_MCFTMR 109 - #define CONFIG_SYS_UDELAY_BASE (MMAP_DTMR0) 110 - #define CONFIG_SYS_TMR_BASE (MMAP_DTMR3) 111 - #define CONFIG_SYS_TMRPND_REG (((volatile int0_t *)(CONFIG_SYS_INTR_BASE))->iprl0) 112 - #define CONFIG_SYS_TMRINTR_NO (INT0_LO_DTMR3) 113 - #define CONFIG_SYS_TMRINTR_MASK (INTC_IPRL_INT22) 114 - #define CONFIG_SYS_TMRINTR_PEND (CONFIG_SYS_TMRINTR_MASK) 115 - #define CONFIG_SYS_TMRINTR_PRI (0x1E) /* Interrupt level 3, priority 6 */ 116 - #define CONFIG_SYS_TIMER_PRESCALER (((gd->bus_clk / 1000000) - 1) << 8) 109 + #define CFG_SYS_UDELAY_BASE (MMAP_DTMR0) 110 + #define CFG_SYS_TMR_BASE (MMAP_DTMR3) 111 + #define CFG_SYS_TMRPND_REG (((volatile int0_t *)(CFG_SYS_INTR_BASE))->iprl0) 112 + #define CFG_SYS_TMRINTR_NO (INT0_LO_DTMR3) 113 + #define CFG_SYS_TMRINTR_MASK (INTC_IPRL_INT22) 114 + #define CFG_SYS_TMRINTR_PEND (CFG_SYS_TMRINTR_MASK) 115 + #define CFG_SYS_TMRINTR_PRI (0x1E) /* Interrupt level 3, priority 6 */ 116 + #define CFG_SYS_TIMER_PRESCALER (((gd->bus_clk / 1000000) - 1) << 8) 117 117 #endif 118 118 119 - #define CONFIG_SYS_INTR_BASE (MMAP_INTC0) 120 - #define CONFIG_SYS_NUM_IRQS (128) 119 + #define CFG_SYS_INTR_BASE (MMAP_INTC0) 120 + #define CFG_SYS_NUM_IRQS (128) 121 121 #endif /* CONFIG_M5271 */ 122 122 123 123 #ifdef CONFIG_M5272 124 124 #include <asm/immap_5272.h> 125 125 #include <asm/m5272.h> 126 126 127 - #define CONFIG_SYS_UART_BASE (MMAP_UART0 + (CFG_SYS_UART_PORT * 0x40)) 127 + #define CFG_SYS_UART_BASE (MMAP_UART0 + (CFG_SYS_UART_PORT * 0x40)) 128 128 129 - #define CONFIG_SYS_INTR_BASE (MMAP_INTC) 130 - #define CONFIG_SYS_NUM_IRQS (64) 129 + #define CFG_SYS_INTR_BASE (MMAP_INTC) 130 + #define CFG_SYS_NUM_IRQS (64) 131 131 132 132 /* Timer */ 133 133 #ifdef CONFIG_MCFTMR 134 - #define CONFIG_SYS_UDELAY_BASE (MMAP_TMR0) 135 - #define CONFIG_SYS_TMR_BASE (MMAP_TMR3) 136 - #define CONFIG_SYS_TMRPND_REG (((volatile intctrl_t *)(CONFIG_SYS_INTR_BASE))->int_isr) 137 - #define CONFIG_SYS_TMRINTR_NO (INT_TMR3) 138 - #define CONFIG_SYS_TMRINTR_MASK (INT_ISR_INT24) 139 - #define CONFIG_SYS_TMRINTR_PEND (0) 140 - #define CONFIG_SYS_TMRINTR_PRI (INT_ICR1_TMR3PI | INT_ICR1_TMR3IPL(5)) 141 - #define CONFIG_SYS_TIMER_PRESCALER (((gd->bus_clk / 1000000) - 1) << 8) 134 + #define CFG_SYS_UDELAY_BASE (MMAP_TMR0) 135 + #define CFG_SYS_TMR_BASE (MMAP_TMR3) 136 + #define CFG_SYS_TMRPND_REG (((volatile intctrl_t *)(CFG_SYS_INTR_BASE))->int_isr) 137 + #define CFG_SYS_TMRINTR_NO (INT_TMR3) 138 + #define CFG_SYS_TMRINTR_MASK (INT_ISR_INT24) 139 + #define CFG_SYS_TMRINTR_PEND (0) 140 + #define CFG_SYS_TMRINTR_PRI (INT_ICR1_TMR3PI | INT_ICR1_TMR3IPL(5)) 141 + #define CFG_SYS_TIMER_PRESCALER (((gd->bus_clk / 1000000) - 1) << 8) 142 142 #endif 143 143 #endif /* CONFIG_M5272 */ 144 144 ··· 146 146 #include <asm/immap_5275.h> 147 147 #include <asm/m5275.h> 148 148 149 - #define CONFIG_SYS_UART_BASE (MMAP_UART0 + (CFG_SYS_UART_PORT * 0x40)) 149 + #define CFG_SYS_UART_BASE (MMAP_UART0 + (CFG_SYS_UART_PORT * 0x40)) 150 150 151 - #define CONFIG_SYS_INTR_BASE (MMAP_INTC0) 152 - #define CONFIG_SYS_NUM_IRQS (192) 151 + #define CFG_SYS_INTR_BASE (MMAP_INTC0) 152 + #define CFG_SYS_NUM_IRQS (192) 153 153 154 154 /* Timer */ 155 155 #ifdef CONFIG_MCFTMR 156 - #define CONFIG_SYS_UDELAY_BASE (MMAP_DTMR0) 157 - #define CONFIG_SYS_TMR_BASE (MMAP_DTMR3) 158 - #define CONFIG_SYS_TMRPND_REG (((volatile int0_t *)(CONFIG_SYS_INTR_BASE))->iprl0) 159 - #define CONFIG_SYS_TMRINTR_NO (INT0_LO_DTMR3) 160 - #define CONFIG_SYS_TMRINTR_MASK (INTC_IPRL_INT22) 161 - #define CONFIG_SYS_TMRINTR_PEND (CONFIG_SYS_TMRINTR_MASK) 162 - #define CONFIG_SYS_TMRINTR_PRI (0x1E) 163 - #define CONFIG_SYS_TIMER_PRESCALER (((gd->bus_clk / 1000000) - 1) << 8) 156 + #define CFG_SYS_UDELAY_BASE (MMAP_DTMR0) 157 + #define CFG_SYS_TMR_BASE (MMAP_DTMR3) 158 + #define CFG_SYS_TMRPND_REG (((volatile int0_t *)(CFG_SYS_INTR_BASE))->iprl0) 159 + #define CFG_SYS_TMRINTR_NO (INT0_LO_DTMR3) 160 + #define CFG_SYS_TMRINTR_MASK (INTC_IPRL_INT22) 161 + #define CFG_SYS_TMRINTR_PEND (CFG_SYS_TMRINTR_MASK) 162 + #define CFG_SYS_TMRINTR_PRI (0x1E) 163 + #define CFG_SYS_TIMER_PRESCALER (((gd->bus_clk / 1000000) - 1) << 8) 164 164 #endif 165 165 #endif /* CONFIG_M5275 */ 166 166 ··· 168 168 #include <asm/immap_5282.h> 169 169 #include <asm/m5282.h> 170 170 171 - #define CONFIG_SYS_UART_BASE (MMAP_UART0 + (CFG_SYS_UART_PORT * 0x40)) 171 + #define CFG_SYS_UART_BASE (MMAP_UART0 + (CFG_SYS_UART_PORT * 0x40)) 172 172 173 - #define CONFIG_SYS_INTR_BASE (MMAP_INTC0) 174 - #define CONFIG_SYS_NUM_IRQS (128) 173 + #define CFG_SYS_INTR_BASE (MMAP_INTC0) 174 + #define CFG_SYS_NUM_IRQS (128) 175 175 176 176 /* Timer */ 177 177 #ifdef CONFIG_MCFTMR 178 - #define CONFIG_SYS_UDELAY_BASE (MMAP_DTMR0) 179 - #define CONFIG_SYS_TMR_BASE (MMAP_DTMR3) 180 - #define CONFIG_SYS_TMRPND_REG (((volatile int0_t *)(CONFIG_SYS_INTR_BASE))->iprl0) 181 - #define CONFIG_SYS_TMRINTR_NO (INT0_LO_DTMR3) 182 - #define CONFIG_SYS_TMRINTR_MASK (1 << INT0_LO_DTMR3) 183 - #define CONFIG_SYS_TMRINTR_PEND (CONFIG_SYS_TMRINTR_MASK) 184 - #define CONFIG_SYS_TMRINTR_PRI (0x1E) /* Level must include inorder to work */ 185 - #define CONFIG_SYS_TIMER_PRESCALER (((gd->bus_clk / 1000000) - 1) << 8) 178 + #define CFG_SYS_UDELAY_BASE (MMAP_DTMR0) 179 + #define CFG_SYS_TMR_BASE (MMAP_DTMR3) 180 + #define CFG_SYS_TMRPND_REG (((volatile int0_t *)(CFG_SYS_INTR_BASE))->iprl0) 181 + #define CFG_SYS_TMRINTR_NO (INT0_LO_DTMR3) 182 + #define CFG_SYS_TMRINTR_MASK (1 << INT0_LO_DTMR3) 183 + #define CFG_SYS_TMRINTR_PEND (CFG_SYS_TMRINTR_MASK) 184 + #define CFG_SYS_TMRINTR_PRI (0x1E) /* Level must include inorder to work */ 185 + #define CFG_SYS_TIMER_PRESCALER (((gd->bus_clk / 1000000) - 1) << 8) 186 186 #endif 187 187 #endif /* CONFIG_M5282 */ 188 188 ··· 190 190 #include <asm/immap_5307.h> 191 191 #include <asm/m5307.h> 192 192 193 - #define CONFIG_SYS_UART_BASE (MMAP_UART0 + \ 193 + #define CFG_SYS_UART_BASE (MMAP_UART0 + \ 194 194 (CFG_SYS_UART_PORT * 0x40)) 195 - #define CONFIG_SYS_INTR_BASE (MMAP_INTC) 196 - #define CONFIG_SYS_NUM_IRQS (64) 195 + #define CFG_SYS_INTR_BASE (MMAP_INTC) 196 + #define CFG_SYS_NUM_IRQS (64) 197 197 198 198 /* Timer */ 199 199 #ifdef CONFIG_MCFTMR 200 - #define CONFIG_SYS_UDELAY_BASE (MMAP_DTMR0) 201 - #define CONFIG_SYS_TMR_BASE (MMAP_DTMR1) 202 - #define CONFIG_SYS_TMRPND_REG (((volatile intctrl_t *) \ 203 - (CONFIG_SYS_INTR_BASE))->ipr) 204 - #define CONFIG_SYS_TMRINTR_NO (31) 205 - #define CONFIG_SYS_TMRINTR_MASK (0x00000400) 206 - #define CONFIG_SYS_TMRINTR_PEND (CONFIG_SYS_TMRINTR_MASK) 207 - #define CONFIG_SYS_TMRINTR_PRI (MCFSIM_ICR_AUTOVEC | \ 200 + #define CFG_SYS_UDELAY_BASE (MMAP_DTMR0) 201 + #define CFG_SYS_TMR_BASE (MMAP_DTMR1) 202 + #define CFG_SYS_TMRPND_REG (((volatile intctrl_t *) \ 203 + (CFG_SYS_INTR_BASE))->ipr) 204 + #define CFG_SYS_TMRINTR_NO (31) 205 + #define CFG_SYS_TMRINTR_MASK (0x00000400) 206 + #define CFG_SYS_TMRINTR_PEND (CFG_SYS_TMRINTR_MASK) 207 + #define CFG_SYS_TMRINTR_PRI (MCFSIM_ICR_AUTOVEC | \ 208 208 MCFSIM_ICR_LEVEL7 | MCFSIM_ICR_PRI3) 209 - #define CONFIG_SYS_TIMER_PRESCALER (((gd->bus_clk / 1000000) - 1) << 8) 209 + #define CFG_SYS_TIMER_PRESCALER (((gd->bus_clk / 1000000) - 1) << 8) 210 210 #endif 211 211 #endif /* CONFIG_M5307 */ 212 212 ··· 214 214 #include <asm/immap_5301x.h> 215 215 #include <asm/m5301x.h> 216 216 217 - #define CONFIG_SYS_UART_BASE (MMAP_UART0 + (CFG_SYS_UART_PORT * 0x4000)) 217 + #define CFG_SYS_UART_BASE (MMAP_UART0 + (CFG_SYS_UART_PORT * 0x4000)) 218 218 219 219 /* Timer */ 220 220 #ifdef CONFIG_MCFTMR 221 - #define CONFIG_SYS_UDELAY_BASE (MMAP_DTMR0) 222 - #define CONFIG_SYS_TMR_BASE (MMAP_DTMR1) 223 - #define CONFIG_SYS_TMRPND_REG (((volatile int0_t *)(CONFIG_SYS_INTR_BASE))->iprh0) 224 - #define CONFIG_SYS_TMRINTR_NO (INT0_HI_DTMR1) 225 - #define CONFIG_SYS_TMRINTR_MASK (INTC_IPRH_INT33) 226 - #define CONFIG_SYS_TMRINTR_PEND (CONFIG_SYS_TMRINTR_MASK) 227 - #define CONFIG_SYS_TMRINTR_PRI (6) 228 - #define CONFIG_SYS_TIMER_PRESCALER (((gd->bus_clk / 1000000) - 1) << 8) 221 + #define CFG_SYS_UDELAY_BASE (MMAP_DTMR0) 222 + #define CFG_SYS_TMR_BASE (MMAP_DTMR1) 223 + #define CFG_SYS_TMRPND_REG (((volatile int0_t *)(CFG_SYS_INTR_BASE))->iprh0) 224 + #define CFG_SYS_TMRINTR_NO (INT0_HI_DTMR1) 225 + #define CFG_SYS_TMRINTR_MASK (INTC_IPRH_INT33) 226 + #define CFG_SYS_TMRINTR_PEND (CFG_SYS_TMRINTR_MASK) 227 + #define CFG_SYS_TMRINTR_PRI (6) 228 + #define CFG_SYS_TIMER_PRESCALER (((gd->bus_clk / 1000000) - 1) << 8) 229 229 #endif 230 230 231 - #define CONFIG_SYS_INTR_BASE (MMAP_INTC0) 232 - #define CONFIG_SYS_NUM_IRQS (128) 231 + #define CFG_SYS_INTR_BASE (MMAP_INTC0) 232 + #define CFG_SYS_NUM_IRQS (128) 233 233 #endif /* CONFIG_M5301x */ 234 234 235 235 #if defined(CONFIG_M5329) || defined(CONFIG_M5373) 236 236 #include <asm/immap_5329.h> 237 237 #include <asm/m5329.h> 238 238 239 - #define CONFIG_SYS_UART_BASE (MMAP_UART0 + (CFG_SYS_UART_PORT * 0x4000)) 239 + #define CFG_SYS_UART_BASE (MMAP_UART0 + (CFG_SYS_UART_PORT * 0x4000)) 240 240 241 241 /* Timer */ 242 242 #ifdef CONFIG_MCFTMR 243 - #define CONFIG_SYS_UDELAY_BASE (MMAP_DTMR0) 244 - #define CONFIG_SYS_TMR_BASE (MMAP_DTMR1) 245 - #define CONFIG_SYS_TMRPND_REG (((volatile int0_t *)(CONFIG_SYS_INTR_BASE))->iprh0) 246 - #define CONFIG_SYS_TMRINTR_NO (INT0_HI_DTMR1) 247 - #define CONFIG_SYS_TMRINTR_MASK (INTC_IPRH_INT33) 248 - #define CONFIG_SYS_TMRINTR_PEND (CONFIG_SYS_TMRINTR_MASK) 249 - #define CONFIG_SYS_TMRINTR_PRI (6) 250 - #define CONFIG_SYS_TIMER_PRESCALER (((gd->bus_clk / 1000000) - 1) << 8) 243 + #define CFG_SYS_UDELAY_BASE (MMAP_DTMR0) 244 + #define CFG_SYS_TMR_BASE (MMAP_DTMR1) 245 + #define CFG_SYS_TMRPND_REG (((volatile int0_t *)(CFG_SYS_INTR_BASE))->iprh0) 246 + #define CFG_SYS_TMRINTR_NO (INT0_HI_DTMR1) 247 + #define CFG_SYS_TMRINTR_MASK (INTC_IPRH_INT33) 248 + #define CFG_SYS_TMRINTR_PEND (CFG_SYS_TMRINTR_MASK) 249 + #define CFG_SYS_TMRINTR_PRI (6) 250 + #define CFG_SYS_TIMER_PRESCALER (((gd->bus_clk / 1000000) - 1) << 8) 251 251 #endif 252 252 253 - #define CONFIG_SYS_INTR_BASE (MMAP_INTC0) 254 - #define CONFIG_SYS_NUM_IRQS (128) 253 + #define CFG_SYS_INTR_BASE (MMAP_INTC0) 254 + #define CFG_SYS_NUM_IRQS (128) 255 255 #endif /* CONFIG_M5329 && CONFIG_M5373 */ 256 256 257 257 #if defined(CONFIG_M54418) ··· 259 259 #include <asm/m5441x.h> 260 260 261 261 #if (CFG_SYS_UART_PORT < 4) 262 - #define CONFIG_SYS_UART_BASE (MMAP_UART0 + \ 262 + #define CFG_SYS_UART_BASE (MMAP_UART0 + \ 263 263 (CFG_SYS_UART_PORT * 0x4000)) 264 264 #else 265 - #define CONFIG_SYS_UART_BASE (MMAP_UART4 + \ 265 + #define CFG_SYS_UART_BASE (MMAP_UART4 + \ 266 266 ((CFG_SYS_UART_PORT - 4) * 0x4000)) 267 267 #endif 268 268 ··· 270 270 271 271 /* Timer */ 272 272 #ifdef CONFIG_MCFTMR 273 - #define CONFIG_SYS_UDELAY_BASE (MMAP_DTMR0) 274 - #define CONFIG_SYS_TMR_BASE (MMAP_DTMR1) 275 - #define CONFIG_SYS_TMRPND_REG (((int0_t *)(CONFIG_SYS_INTR_BASE))->iprh0) 276 - #define CONFIG_SYS_TMRINTR_NO (INT0_HI_DTMR1) 277 - #define CONFIG_SYS_TMRINTR_MASK (INTC_IPRH_INT33) 278 - #define CONFIG_SYS_TMRINTR_PEND (CONFIG_SYS_TMRINTR_MASK) 279 - #define CONFIG_SYS_TMRINTR_PRI (6) 280 - #define CONFIG_SYS_TIMER_PRESCALER (((gd->bus_clk / 1000000) - 1) << 8) 273 + #define CFG_SYS_UDELAY_BASE (MMAP_DTMR0) 274 + #define CFG_SYS_TMR_BASE (MMAP_DTMR1) 275 + #define CFG_SYS_TMRPND_REG (((int0_t *)(CFG_SYS_INTR_BASE))->iprh0) 276 + #define CFG_SYS_TMRINTR_NO (INT0_HI_DTMR1) 277 + #define CFG_SYS_TMRINTR_MASK (INTC_IPRH_INT33) 278 + #define CFG_SYS_TMRINTR_PEND (CFG_SYS_TMRINTR_MASK) 279 + #define CFG_SYS_TMRINTR_PRI (6) 280 + #define CFG_SYS_TIMER_PRESCALER (((gd->bus_clk / 1000000) - 1) << 8) 281 281 #endif 282 282 283 - #define CONFIG_SYS_INTR_BASE (MMAP_INTC0) 284 - #define CONFIG_SYS_NUM_IRQS (192) 283 + #define CFG_SYS_INTR_BASE (MMAP_INTC0) 284 + #define CFG_SYS_NUM_IRQS (192) 285 285 286 286 #endif /* CONFIG_M54418 */ 287 287 ··· 304 304 #define FEC1_TX_INIT 31 305 305 #endif 306 306 307 - #define CONFIG_SYS_UART_BASE (MMAP_UART0 + (CFG_SYS_UART_PORT * 0x100)) 307 + #define CFG_SYS_UART_BASE (MMAP_UART0 + (CFG_SYS_UART_PORT * 0x100)) 308 308 309 309 #ifdef CONFIG_SLTTMR 310 - #define CONFIG_SYS_UDELAY_BASE (MMAP_SLT1) 311 - #define CONFIG_SYS_TMR_BASE (MMAP_SLT0) 312 - #define CONFIG_SYS_TMRPND_REG (((volatile int0_t *)(CONFIG_SYS_INTR_BASE))->iprh0) 313 - #define CONFIG_SYS_TMRINTR_NO (INT0_HI_SLT0) 314 - #define CONFIG_SYS_TMRINTR_MASK (INTC_IPRH_INT54) 315 - #define CONFIG_SYS_TMRINTR_PEND (CONFIG_SYS_TMRINTR_MASK) 316 - #define CONFIG_SYS_TMRINTR_PRI (0x1E) 317 - #define CONFIG_SYS_TIMER_PRESCALER (gd->bus_clk / 1000000) 310 + #define CFG_SYS_UDELAY_BASE (MMAP_SLT1) 311 + #define CFG_SYS_TMR_BASE (MMAP_SLT0) 312 + #define CFG_SYS_TMRPND_REG (((volatile int0_t *)(CFG_SYS_INTR_BASE))->iprh0) 313 + #define CFG_SYS_TMRINTR_NO (INT0_HI_SLT0) 314 + #define CFG_SYS_TMRINTR_MASK (INTC_IPRH_INT54) 315 + #define CFG_SYS_TMRINTR_PEND (CFG_SYS_TMRINTR_MASK) 316 + #define CFG_SYS_TMRINTR_PRI (0x1E) 317 + #define CFG_SYS_TIMER_PRESCALER (gd->bus_clk / 1000000) 318 318 #endif 319 319 320 - #define CONFIG_SYS_INTR_BASE (MMAP_INTC0) 321 - #define CONFIG_SYS_NUM_IRQS (128) 320 + #define CFG_SYS_INTR_BASE (MMAP_INTC0) 321 + #define CFG_SYS_NUM_IRQS (128) 322 322 323 323 #ifdef CONFIG_PCI 324 324 #define CFG_SYS_PCI_BAR0 (0x40000000)
+14 -14
arch/m68k/lib/cache.c
··· 33 33 34 34 *cf_icache_status = 1; 35 35 36 - #if defined(CONFIG_CF_V4) || defined(CONFIG_CF_V4E) 36 + #if defined(CONFIG_CF_V4) || defined(CFG_CF_V4E) 37 37 __asm__ __volatile__("movec %0, %%acr2"::"r"(CFG_SYS_CACHE_ACR2)); 38 - __asm__ __volatile__("movec %0, %%acr3"::"r"(CONFIG_SYS_CACHE_ACR3)); 39 - #if defined(CONFIG_CF_V4E) 40 - __asm__ __volatile__("movec %0, %%acr6"::"r"(CONFIG_SYS_CACHE_ACR6)); 41 - __asm__ __volatile__("movec %0, %%acr7"::"r"(CONFIG_SYS_CACHE_ACR7)); 38 + __asm__ __volatile__("movec %0, %%acr3"::"r"(CFG_SYS_CACHE_ACR3)); 39 + #if defined(CFG_CF_V4E) 40 + __asm__ __volatile__("movec %0, %%acr6"::"r"(CFG_SYS_CACHE_ACR6)); 41 + __asm__ __volatile__("movec %0, %%acr7"::"r"(CFG_SYS_CACHE_ACR7)); 42 42 #endif 43 43 #else 44 44 __asm__ __volatile__("movec %0, %%acr0"::"r"(CFG_SYS_CACHE_ACR0)); ··· 55 55 *cf_icache_status = 0; 56 56 icache_invalid(); 57 57 58 - #if defined(CONFIG_CF_V4) || defined(CONFIG_CF_V4E) 58 + #if defined(CONFIG_CF_V4) || defined(CFG_CF_V4E) 59 59 __asm__ __volatile__("movec %0, %%acr2"::"r"(temp)); 60 60 __asm__ __volatile__("movec %0, %%acr3"::"r"(temp)); 61 - #if defined(CONFIG_CF_V4E) 61 + #if defined(CFG_CF_V4E) 62 62 __asm__ __volatile__("movec %0, %%acr6"::"r"(temp)); 63 63 __asm__ __volatile__("movec %0, %%acr7"::"r"(temp)); 64 64 #endif ··· 88 88 dcache_invalid(); 89 89 *cf_dcache_status = 1; 90 90 91 - #if defined(CONFIG_CF_V4) || defined(CONFIG_CF_V4E) 91 + #if defined(CONFIG_CF_V4) || defined(CFG_CF_V4E) 92 92 __asm__ __volatile__("movec %0, %%acr0"::"r"(CFG_SYS_CACHE_ACR0)); 93 93 __asm__ __volatile__("movec %0, %%acr1"::"r"(CFG_SYS_CACHE_ACR1)); 94 - #if defined(CONFIG_CF_V4E) 95 - __asm__ __volatile__("movec %0, %%acr4"::"r"(CONFIG_SYS_CACHE_ACR4)); 96 - __asm__ __volatile__("movec %0, %%acr5"::"r"(CONFIG_SYS_CACHE_ACR5)); 94 + #if defined(CFG_CF_V4E) 95 + __asm__ __volatile__("movec %0, %%acr4"::"r"(CFG_SYS_CACHE_ACR4)); 96 + __asm__ __volatile__("movec %0, %%acr5"::"r"(CFG_SYS_CACHE_ACR5)); 97 97 #endif 98 98 #endif 99 99 ··· 109 109 110 110 __asm__ __volatile__("movec %0, %%cacr"::"r"(temp)); 111 111 112 - #if defined(CONFIG_CF_V4) || defined(CONFIG_CF_V4E) 112 + #if defined(CONFIG_CF_V4) || defined(CFG_CF_V4E) 113 113 __asm__ __volatile__("movec %0, %%acr0"::"r"(temp)); 114 114 __asm__ __volatile__("movec %0, %%acr1"::"r"(temp)); 115 - #if defined(CONFIG_CF_V4E) 115 + #if defined(CFG_CF_V4E) 116 116 __asm__ __volatile__("movec %0, %%acr4"::"r"(temp)); 117 117 __asm__ __volatile__("movec %0, %%acr5"::"r"(temp)); 118 118 #endif ··· 121 121 122 122 void dcache_invalid(void) 123 123 { 124 - #if defined(CONFIG_CF_V4) || defined(CONFIG_CF_V4E) 124 + #if defined(CONFIG_CF_V4) || defined(CFG_CF_V4E) 125 125 u32 temp; 126 126 127 127 temp = CFG_SYS_DCACHE_INV;
+1 -1
arch/m68k/lib/interrupts.c
··· 14 14 #include <asm/immap.h> 15 15 #include <asm/ptrace.h> 16 16 17 - #define NR_IRQS (CONFIG_SYS_NUM_IRQS) 17 + #define NR_IRQS (CFG_SYS_NUM_IRQS) 18 18 19 19 /* 20 20 * Interrupt vector functions.
+12 -12
arch/m68k/lib/time.c
··· 21 21 22 22 static volatile ulong timestamp = 0; 23 23 24 - #ifndef CONFIG_SYS_WATCHDOG_FREQ 25 - #define CONFIG_SYS_WATCHDOG_FREQ (CONFIG_SYS_HZ / 2) 24 + #ifndef CFG_SYS_WATCHDOG_FREQ 25 + #define CFG_SYS_WATCHDOG_FREQ (CONFIG_SYS_HZ / 2) 26 26 #endif 27 27 28 28 #if defined(CONFIG_MCFTMR) 29 - #ifndef CONFIG_SYS_UDELAY_BASE 29 + #ifndef CFG_SYS_UDELAY_BASE 30 30 # error "uDelay base not defined!" 31 31 #endif 32 32 33 - #if !defined(CONFIG_SYS_TMR_BASE) || !defined(CONFIG_SYS_INTR_BASE) || !defined(CONFIG_SYS_TMRINTR_NO) || !defined(CONFIG_SYS_TMRINTR_MASK) 33 + #if !defined(CFG_SYS_TMR_BASE) || !defined(CFG_SYS_INTR_BASE) || !defined(CFG_SYS_TMRINTR_NO) || !defined(CFG_SYS_TMRINTR_MASK) 34 34 # error "TMR_BASE, INTR_BASE, TMRINTR_NO or TMRINTR_MASk not defined!" 35 35 #endif 36 36 extern void dtimer_intr_setup(void); 37 37 38 38 void __udelay(unsigned long usec) 39 39 { 40 - volatile dtmr_t *timerp = (dtmr_t *) (CONFIG_SYS_UDELAY_BASE); 40 + volatile dtmr_t *timerp = (dtmr_t *) (CFG_SYS_UDELAY_BASE); 41 41 uint start, now, tmp; 42 42 43 43 while (usec > 0) { ··· 52 52 timerp->tcn = 0; 53 53 /* set period to 1 us */ 54 54 timerp->tmr = 55 - CONFIG_SYS_TIMER_PRESCALER | DTIM_DTMR_CLK_DIV1 | DTIM_DTMR_FRR | 55 + CFG_SYS_TIMER_PRESCALER | DTIM_DTMR_CLK_DIV1 | DTIM_DTMR_FRR | 56 56 DTIM_DTMR_RST_EN; 57 57 58 58 start = now = timerp->tcn; ··· 63 63 64 64 void dtimer_interrupt(void *not_used) 65 65 { 66 - volatile dtmr_t *timerp = (dtmr_t *) (CONFIG_SYS_TMR_BASE); 66 + volatile dtmr_t *timerp = (dtmr_t *) (CFG_SYS_TMR_BASE); 67 67 68 68 /* check for timer interrupt asserted */ 69 - if ((CONFIG_SYS_TMRPND_REG & CONFIG_SYS_TMRINTR_MASK) == CONFIG_SYS_TMRINTR_PEND) { 69 + if ((CFG_SYS_TMRPND_REG & CFG_SYS_TMRINTR_MASK) == CFG_SYS_TMRINTR_PEND) { 70 70 timerp->ter = (DTIM_DTER_CAP | DTIM_DTER_REF); 71 71 timestamp++; 72 72 73 73 #if defined(CONFIG_WATCHDOG) || defined (CONFIG_HW_WATCHDOG) 74 - if (CONFIG_SYS_WATCHDOG_FREQ && (timestamp % (CONFIG_SYS_WATCHDOG_FREQ)) == 0) { 74 + if (CFG_SYS_WATCHDOG_FREQ && (timestamp % (CFG_SYS_WATCHDOG_FREQ)) == 0) { 75 75 schedule(); 76 76 } 77 77 #endif /* CONFIG_WATCHDOG || CONFIG_HW_WATCHDOG */ ··· 81 81 82 82 int timer_init(void) 83 83 { 84 - volatile dtmr_t *timerp = (dtmr_t *) (CONFIG_SYS_TMR_BASE); 84 + volatile dtmr_t *timerp = (dtmr_t *) (CFG_SYS_TMR_BASE); 85 85 86 86 timestamp = 0; 87 87 ··· 92 92 timerp->tmr = DTIM_DTMR_RST_RST; 93 93 94 94 /* initialize and enable timer interrupt */ 95 - irq_install_handler(CONFIG_SYS_TMRINTR_NO, dtimer_interrupt, 0); 95 + irq_install_handler(CFG_SYS_TMRINTR_NO, dtimer_interrupt, 0); 96 96 97 97 timerp->tcn = 0; 98 98 timerp->trr = 1000; /* Interrupt every ms */ ··· 100 100 dtimer_intr_setup(); 101 101 102 102 /* set a period of 1us, set timer mode to restart and enable timer and interrupt */ 103 - timerp->tmr = CONFIG_SYS_TIMER_PRESCALER | DTIM_DTMR_CLK_DIV1 | 103 + timerp->tmr = CFG_SYS_TIMER_PRESCALER | DTIM_DTMR_CLK_DIV1 | 104 104 DTIM_DTMR_FRR | DTIM_DTMR_ORRI | DTIM_DTMR_RST_EN; 105 105 106 106 return 0;
+4 -4
arch/mips/mach-mtmips/mt7621/spl/start.S
··· 17 17 #include "../mt7621.h" 18 18 #include "dram.h" 19 19 20 - #ifndef CONFIG_SYS_INIT_SP_ADDR 21 - #define CONFIG_SYS_INIT_SP_ADDR (CFG_SYS_SDRAM_BASE + \ 20 + #ifndef CFG_SYS_INIT_SP_ADDR 21 + #define CFG_SYS_INIT_SP_ADDR (CFG_SYS_SDRAM_BASE + \ 22 22 CFG_SYS_INIT_SP_OFFSET) 23 23 #endif 24 24 ··· 31 31 32 32 .macro setup_stack_gd 33 33 li t0, -16 34 - PTR_LI t1, CONFIG_SYS_INIT_SP_ADDR 34 + PTR_LI t1, CFG_SYS_INIT_SP_ADDR 35 35 and sp, t1, t0 # force 16 byte alignment 36 36 PTR_SUBU \ 37 37 sp, sp, GD_SIZE # reserve space for gd ··· 201 201 202 202 #if CONFIG_IS_ENABLED(INIT_STACK_WITHOUT_MALLOC_F) 203 203 /* Set malloc base */ 204 - li t0, (CONFIG_SYS_INIT_SP_ADDR + 15) & (~15) 204 + li t0, (CFG_SYS_INIT_SP_ADDR + 15) & (~15) 205 205 PTR_S t0, GD_MALLOC_BASE(k0) # gd->malloc_base offset 206 206 #endif 207 207
+64 -64
arch/powerpc/cpu/mpc83xx/bats/bats.h
··· 1 1 #ifdef CONFIG_BAT0 2 - #define CONFIG_SYS_IBAT0L (\ 2 + #define CFG_SYS_IBAT0L (\ 3 3 (CONFIG_BAT0_BASE) |\ 4 4 (CONFIG_BAT0_PAGE_PROTECTION) |\ 5 5 (CONFIG_BAT0_WIMG_ICACHE) \ 6 6 ) 7 - #define CONFIG_SYS_IBAT0U (\ 7 + #define CFG_SYS_IBAT0U (\ 8 8 (CONFIG_BAT0_BASE) |\ 9 9 (CONFIG_BAT0_LENGTH) |\ 10 10 (CONFIG_BAT0_VALID_BITS) \ 11 11 ) 12 - #define CONFIG_SYS_DBAT0L (\ 12 + #define CFG_SYS_DBAT0L (\ 13 13 (CONFIG_BAT0_BASE) |\ 14 14 (CONFIG_BAT0_PAGE_PROTECTION) |\ 15 15 (CONFIG_BAT0_WIMG_DCACHE) \ 16 16 ) 17 - #define CONFIG_SYS_DBAT0U (\ 17 + #define CFG_SYS_DBAT0U (\ 18 18 (CONFIG_BAT0_BASE) |\ 19 19 (CONFIG_BAT0_LENGTH) |\ 20 20 (CONFIG_BAT0_VALID_BITS) \ 21 21 ) 22 22 #else 23 - #define CONFIG_SYS_IBAT0L (0) 24 - #define CONFIG_SYS_IBAT0U (0) 25 - #define CONFIG_SYS_DBAT0L (0) 26 - #define CONFIG_SYS_DBAT0U (0) 23 + #define CFG_SYS_IBAT0L (0) 24 + #define CFG_SYS_IBAT0U (0) 25 + #define CFG_SYS_DBAT0L (0) 26 + #define CFG_SYS_DBAT0U (0) 27 27 #endif /* CONFIG_BAT0 */ 28 28 29 29 #ifdef CONFIG_BAT1 30 - #define CONFIG_SYS_IBAT1L (\ 30 + #define CFG_SYS_IBAT1L (\ 31 31 (CONFIG_BAT1_BASE) |\ 32 32 (CONFIG_BAT1_PAGE_PROTECTION) |\ 33 33 (CONFIG_BAT1_WIMG_ICACHE) \ 34 34 ) 35 - #define CONFIG_SYS_IBAT1U (\ 35 + #define CFG_SYS_IBAT1U (\ 36 36 (CONFIG_BAT1_BASE) |\ 37 37 (CONFIG_BAT1_LENGTH) |\ 38 38 (CONFIG_BAT1_VALID_BITS) \ 39 39 ) 40 - #define CONFIG_SYS_DBAT1L (\ 40 + #define CFG_SYS_DBAT1L (\ 41 41 (CONFIG_BAT1_BASE) |\ 42 42 (CONFIG_BAT1_PAGE_PROTECTION) |\ 43 43 (CONFIG_BAT1_WIMG_DCACHE) \ 44 44 ) 45 - #define CONFIG_SYS_DBAT1U (\ 45 + #define CFG_SYS_DBAT1U (\ 46 46 (CONFIG_BAT1_BASE) |\ 47 47 (CONFIG_BAT1_LENGTH) |\ 48 48 (CONFIG_BAT1_VALID_BITS) \ 49 49 ) 50 50 #else 51 - #define CONFIG_SYS_IBAT1L (0) 52 - #define CONFIG_SYS_IBAT1U (0) 53 - #define CONFIG_SYS_DBAT1L (0) 54 - #define CONFIG_SYS_DBAT1U (0) 51 + #define CFG_SYS_IBAT1L (0) 52 + #define CFG_SYS_IBAT1U (0) 53 + #define CFG_SYS_DBAT1L (0) 54 + #define CFG_SYS_DBAT1U (0) 55 55 #endif /* CONFIG_BAT1 */ 56 56 57 57 #ifdef CONFIG_BAT2 58 - #define CONFIG_SYS_IBAT2L (\ 58 + #define CFG_SYS_IBAT2L (\ 59 59 (CONFIG_BAT2_BASE) |\ 60 60 (CONFIG_BAT2_PAGE_PROTECTION) |\ 61 61 (CONFIG_BAT2_WIMG_ICACHE) \ 62 62 ) 63 - #define CONFIG_SYS_IBAT2U (\ 63 + #define CFG_SYS_IBAT2U (\ 64 64 (CONFIG_BAT2_BASE) |\ 65 65 (CONFIG_BAT2_LENGTH) |\ 66 66 (CONFIG_BAT2_VALID_BITS) \ 67 67 ) 68 - #define CONFIG_SYS_DBAT2L (\ 68 + #define CFG_SYS_DBAT2L (\ 69 69 (CONFIG_BAT2_BASE) |\ 70 70 (CONFIG_BAT2_PAGE_PROTECTION) |\ 71 71 (CONFIG_BAT2_WIMG_DCACHE) \ 72 72 ) 73 - #define CONFIG_SYS_DBAT2U (\ 73 + #define CFG_SYS_DBAT2U (\ 74 74 (CONFIG_BAT2_BASE) |\ 75 75 (CONFIG_BAT2_LENGTH) |\ 76 76 (CONFIG_BAT2_VALID_BITS) \ 77 77 ) 78 78 #else 79 - #define CONFIG_SYS_IBAT2L (0) 80 - #define CONFIG_SYS_IBAT2U (0) 81 - #define CONFIG_SYS_DBAT2L (0) 82 - #define CONFIG_SYS_DBAT2U (0) 79 + #define CFG_SYS_IBAT2L (0) 80 + #define CFG_SYS_IBAT2U (0) 81 + #define CFG_SYS_DBAT2L (0) 82 + #define CFG_SYS_DBAT2U (0) 83 83 #endif /* CONFIG_BAT2 */ 84 84 85 85 #ifdef CONFIG_BAT3 86 - #define CONFIG_SYS_IBAT3L (\ 86 + #define CFG_SYS_IBAT3L (\ 87 87 (CONFIG_BAT3_BASE) |\ 88 88 (CONFIG_BAT3_PAGE_PROTECTION) |\ 89 89 (CONFIG_BAT3_WIMG_ICACHE) \ 90 90 ) 91 - #define CONFIG_SYS_IBAT3U (\ 91 + #define CFG_SYS_IBAT3U (\ 92 92 (CONFIG_BAT3_BASE) |\ 93 93 (CONFIG_BAT3_LENGTH) |\ 94 94 (CONFIG_BAT3_VALID_BITS) \ 95 95 ) 96 - #define CONFIG_SYS_DBAT3L (\ 96 + #define CFG_SYS_DBAT3L (\ 97 97 (CONFIG_BAT3_BASE) |\ 98 98 (CONFIG_BAT3_PAGE_PROTECTION) |\ 99 99 (CONFIG_BAT3_WIMG_DCACHE) \ 100 100 ) 101 - #define CONFIG_SYS_DBAT3U (\ 101 + #define CFG_SYS_DBAT3U (\ 102 102 (CONFIG_BAT3_BASE) |\ 103 103 (CONFIG_BAT3_LENGTH) |\ 104 104 (CONFIG_BAT3_VALID_BITS) \ 105 105 ) 106 106 #else 107 - #define CONFIG_SYS_IBAT3L (0) 108 - #define CONFIG_SYS_IBAT3U (0) 109 - #define CONFIG_SYS_DBAT3L (0) 110 - #define CONFIG_SYS_DBAT3U (0) 107 + #define CFG_SYS_IBAT3L (0) 108 + #define CFG_SYS_IBAT3U (0) 109 + #define CFG_SYS_DBAT3L (0) 110 + #define CFG_SYS_DBAT3U (0) 111 111 #endif /* CONFIG_BAT3 */ 112 112 113 113 #ifdef CONFIG_BAT4 114 - #define CONFIG_SYS_IBAT4L (\ 114 + #define CFG_SYS_IBAT4L (\ 115 115 (CONFIG_BAT4_BASE) |\ 116 116 (CONFIG_BAT4_PAGE_PROTECTION) |\ 117 117 (CONFIG_BAT4_WIMG_ICACHE) \ 118 118 ) 119 - #define CONFIG_SYS_IBAT4U (\ 119 + #define CFG_SYS_IBAT4U (\ 120 120 (CONFIG_BAT4_BASE) |\ 121 121 (CONFIG_BAT4_LENGTH) |\ 122 122 (CONFIG_BAT4_VALID_BITS) \ 123 123 ) 124 - #define CONFIG_SYS_DBAT4L (\ 124 + #define CFG_SYS_DBAT4L (\ 125 125 (CONFIG_BAT4_BASE) |\ 126 126 (CONFIG_BAT4_PAGE_PROTECTION) |\ 127 127 (CONFIG_BAT4_WIMG_DCACHE) \ 128 128 ) 129 - #define CONFIG_SYS_DBAT4U (\ 129 + #define CFG_SYS_DBAT4U (\ 130 130 (CONFIG_BAT4_BASE) |\ 131 131 (CONFIG_BAT4_LENGTH) |\ 132 132 (CONFIG_BAT4_VALID_BITS) \ 133 133 ) 134 134 #else 135 - #define CONFIG_SYS_IBAT4L (0) 136 - #define CONFIG_SYS_IBAT4U (0) 137 - #define CONFIG_SYS_DBAT4L (0) 138 - #define CONFIG_SYS_DBAT4U (0) 135 + #define CFG_SYS_IBAT4L (0) 136 + #define CFG_SYS_IBAT4U (0) 137 + #define CFG_SYS_DBAT4L (0) 138 + #define CFG_SYS_DBAT4U (0) 139 139 #endif /* CONFIG_BAT4 */ 140 140 141 141 #ifdef CONFIG_BAT5 142 - #define CONFIG_SYS_IBAT5L (\ 142 + #define CFG_SYS_IBAT5L (\ 143 143 (CONFIG_BAT5_BASE) |\ 144 144 (CONFIG_BAT5_PAGE_PROTECTION) |\ 145 145 (CONFIG_BAT5_WIMG_ICACHE) \ 146 146 ) 147 - #define CONFIG_SYS_IBAT5U (\ 147 + #define CFG_SYS_IBAT5U (\ 148 148 (CONFIG_BAT5_BASE) |\ 149 149 (CONFIG_BAT5_LENGTH) |\ 150 150 (CONFIG_BAT5_VALID_BITS) \ 151 151 ) 152 - #define CONFIG_SYS_DBAT5L (\ 152 + #define CFG_SYS_DBAT5L (\ 153 153 (CONFIG_BAT5_BASE) |\ 154 154 (CONFIG_BAT5_PAGE_PROTECTION) |\ 155 155 (CONFIG_BAT5_WIMG_DCACHE) \ 156 156 ) 157 - #define CONFIG_SYS_DBAT5U (\ 157 + #define CFG_SYS_DBAT5U (\ 158 158 (CONFIG_BAT5_BASE) |\ 159 159 (CONFIG_BAT5_LENGTH) |\ 160 160 (CONFIG_BAT5_VALID_BITS) \ 161 161 ) 162 162 #else 163 - #define CONFIG_SYS_IBAT5L (0) 164 - #define CONFIG_SYS_IBAT5U (0) 165 - #define CONFIG_SYS_DBAT5L (0) 166 - #define CONFIG_SYS_DBAT5U (0) 163 + #define CFG_SYS_IBAT5L (0) 164 + #define CFG_SYS_IBAT5U (0) 165 + #define CFG_SYS_DBAT5L (0) 166 + #define CFG_SYS_DBAT5U (0) 167 167 #endif /* CONFIG_BAT5 */ 168 168 169 169 #ifdef CONFIG_BAT6 170 - #define CONFIG_SYS_IBAT6L (\ 170 + #define CFG_SYS_IBAT6L (\ 171 171 (CONFIG_BAT6_BASE) |\ 172 172 (CONFIG_BAT6_PAGE_PROTECTION) |\ 173 173 (CONFIG_BAT6_WIMG_ICACHE) \ 174 174 ) 175 - #define CONFIG_SYS_IBAT6U (\ 175 + #define CFG_SYS_IBAT6U (\ 176 176 (CONFIG_BAT6_BASE) |\ 177 177 (CONFIG_BAT6_LENGTH) |\ 178 178 (CONFIG_BAT6_VALID_BITS) \ 179 179 ) 180 - #define CONFIG_SYS_DBAT6L (\ 180 + #define CFG_SYS_DBAT6L (\ 181 181 (CONFIG_BAT6_BASE) |\ 182 182 (CONFIG_BAT6_PAGE_PROTECTION) |\ 183 183 (CONFIG_BAT6_WIMG_DCACHE) \ 184 184 ) 185 - #define CONFIG_SYS_DBAT6U (\ 185 + #define CFG_SYS_DBAT6U (\ 186 186 (CONFIG_BAT6_BASE) |\ 187 187 (CONFIG_BAT6_LENGTH) |\ 188 188 (CONFIG_BAT6_VALID_BITS) \ 189 189 ) 190 190 #else 191 - #define CONFIG_SYS_IBAT6L (0) 192 - #define CONFIG_SYS_IBAT6U (0) 193 - #define CONFIG_SYS_DBAT6L (0) 194 - #define CONFIG_SYS_DBAT6U (0) 191 + #define CFG_SYS_IBAT6L (0) 192 + #define CFG_SYS_IBAT6U (0) 193 + #define CFG_SYS_DBAT6L (0) 194 + #define CFG_SYS_DBAT6U (0) 195 195 #endif /* CONFIG_BAT6 */ 196 196 197 197 #ifdef CONFIG_BAT7 198 - #define CONFIG_SYS_IBAT7L (\ 198 + #define CFG_SYS_IBAT7L (\ 199 199 (CONFIG_BAT7_BASE) |\ 200 200 (CONFIG_BAT7_PAGE_PROTECTION) |\ 201 201 (CONFIG_BAT7_WIMG_ICACHE) \ 202 202 ) 203 - #define CONFIG_SYS_IBAT7U (\ 203 + #define CFG_SYS_IBAT7U (\ 204 204 (CONFIG_BAT7_BASE) |\ 205 205 (CONFIG_BAT7_LENGTH) |\ 206 206 (CONFIG_BAT7_VALID_BITS) \ 207 207 ) 208 - #define CONFIG_SYS_DBAT7L (\ 208 + #define CFG_SYS_DBAT7L (\ 209 209 (CONFIG_BAT7_BASE) |\ 210 210 (CONFIG_BAT7_PAGE_PROTECTION) |\ 211 211 (CONFIG_BAT7_WIMG_DCACHE) \ 212 212 ) 213 - #define CONFIG_SYS_DBAT7U (\ 213 + #define CFG_SYS_DBAT7U (\ 214 214 (CONFIG_BAT7_BASE) |\ 215 215 (CONFIG_BAT7_LENGTH) |\ 216 216 (CONFIG_BAT7_VALID_BITS) \ 217 217 ) 218 218 #else 219 - #define CONFIG_SYS_IBAT7L (0) 220 - #define CONFIG_SYS_IBAT7U (0) 221 - #define CONFIG_SYS_DBAT7L (0) 222 - #define CONFIG_SYS_DBAT7U (0) 219 + #define CFG_SYS_IBAT7L (0) 220 + #define CFG_SYS_IBAT7U (0) 221 + #define CFG_SYS_DBAT7L (0) 222 + #define CFG_SYS_DBAT7U (0) 223 223 #endif /* CONFIG_BAT7 */
+13 -13
arch/powerpc/cpu/mpc83xx/cpu_init.c
··· 208 208 init_early_memctl_regs(); 209 209 210 210 /* Local Access window setup */ 211 - #if defined(CONFIG_SYS_LBLAWBAR0_PRELIM) && defined(CONFIG_SYS_LBLAWAR0_PRELIM) 212 - im->sysconf.lblaw[0].bar = CONFIG_SYS_LBLAWBAR0_PRELIM; 213 - im->sysconf.lblaw[0].ar = CONFIG_SYS_LBLAWAR0_PRELIM; 211 + #if defined(CFG_SYS_LBLAWBAR0_PRELIM) && defined(CFG_SYS_LBLAWAR0_PRELIM) 212 + im->sysconf.lblaw[0].bar = CFG_SYS_LBLAWBAR0_PRELIM; 213 + im->sysconf.lblaw[0].ar = CFG_SYS_LBLAWAR0_PRELIM; 214 214 #else 215 - #error CONFIG_SYS_LBLAWBAR0_PRELIM & CONFIG_SYS_LBLAWAR0_PRELIM must be defined 215 + #error CFG_SYS_LBLAWBAR0_PRELIM & CFG_SYS_LBLAWAR0_PRELIM must be defined 216 216 #endif 217 217 218 - #if defined(CONFIG_SYS_LBLAWBAR1_PRELIM) && defined(CONFIG_SYS_LBLAWAR1_PRELIM) 219 - im->sysconf.lblaw[1].bar = CONFIG_SYS_LBLAWBAR1_PRELIM; 220 - im->sysconf.lblaw[1].ar = CONFIG_SYS_LBLAWAR1_PRELIM; 218 + #if defined(CFG_SYS_LBLAWBAR1_PRELIM) && defined(CFG_SYS_LBLAWAR1_PRELIM) 219 + im->sysconf.lblaw[1].bar = CFG_SYS_LBLAWBAR1_PRELIM; 220 + im->sysconf.lblaw[1].ar = CFG_SYS_LBLAWAR1_PRELIM; 221 221 #endif 222 - #if defined(CONFIG_SYS_LBLAWBAR2_PRELIM) && defined(CONFIG_SYS_LBLAWAR2_PRELIM) 223 - im->sysconf.lblaw[2].bar = CONFIG_SYS_LBLAWBAR2_PRELIM; 224 - im->sysconf.lblaw[2].ar = CONFIG_SYS_LBLAWAR2_PRELIM; 222 + #if defined(CFG_SYS_LBLAWBAR2_PRELIM) && defined(CFG_SYS_LBLAWAR2_PRELIM) 223 + im->sysconf.lblaw[2].bar = CFG_SYS_LBLAWBAR2_PRELIM; 224 + im->sysconf.lblaw[2].ar = CFG_SYS_LBLAWAR2_PRELIM; 225 225 #endif 226 - #if defined(CONFIG_SYS_LBLAWBAR3_PRELIM) && defined(CONFIG_SYS_LBLAWAR3_PRELIM) 227 - im->sysconf.lblaw[3].bar = CONFIG_SYS_LBLAWBAR3_PRELIM; 228 - im->sysconf.lblaw[3].ar = CONFIG_SYS_LBLAWAR3_PRELIM; 226 + #if defined(CFG_SYS_LBLAWBAR3_PRELIM) && defined(CFG_SYS_LBLAWAR3_PRELIM) 227 + im->sysconf.lblaw[3].bar = CFG_SYS_LBLAWBAR3_PRELIM; 228 + im->sysconf.lblaw[3].ar = CFG_SYS_LBLAWAR3_PRELIM; 229 229 #endif 230 230 #if defined(CONFIG_SYS_LBLAWBAR4_PRELIM) && defined(CONFIG_SYS_LBLAWAR4_PRELIM) 231 231 im->sysconf.lblaw[4].bar = CONFIG_SYS_LBLAWBAR4_PRELIM;
+6 -6
arch/powerpc/cpu/mpc83xx/hid/hid.h
··· 1 - #define CONFIG_SYS_HID0_FINAL ( \ 1 + #define CFG_SYS_HID0_FINAL ( \ 2 2 CONFIG_HID0_FINAL_ABE_BIT |\ 3 3 CONFIG_HID0_FINAL_CLKOUT |\ 4 4 CONFIG_HID0_FINAL_DCE_BIT |\ ··· 24 24 CONFIG_HID0_FINAL_SLEEP_BIT \ 25 25 ) 26 26 27 - #define CONFIG_SYS_HID0_INIT ( \ 27 + #define CFG_SYS_HID0_INIT ( \ 28 28 CONFIG_HID0_INIT_ABE_BIT |\ 29 29 CONFIG_HID0_INIT_CLKOUT |\ 30 30 CONFIG_HID0_INIT_DCE_BIT |\ ··· 50 50 51 51 #ifdef CONFIG_TARGET_IDS8313 52 52 /* IDS8313 defines a reserved bit; keep to not break compatibility */ 53 - #define CONFIG_HID2_SPECIAL 0x00020000 53 + #define CFG_HID2_SPECIAL 0x00020000 54 54 #else 55 - #define CONFIG_HID2_SPECIAL 0x0 55 + #define CFG_HID2_SPECIAL 0x0 56 56 #endif 57 57 58 - #define CONFIG_SYS_HID2 ( \ 58 + #define CFG_SYS_HID2 ( \ 59 59 CONFIG_HID2_LET_BIT |\ 60 60 CONFIG_HID2_IFEB_BIT |\ 61 61 CONFIG_HID2_MESISTATE_BIT |\ ··· 68 68 CONFIG_HID2_IWLCK |\ 69 69 CONFIG_HID2_ICWP_BIT |\ 70 70 CONFIG_HID2_DWLCK |\ 71 - CONFIG_HID2_SPECIAL \ 71 + CFG_HID2_SPECIAL \ 72 72 )
+2 -2
arch/powerpc/cpu/mpc83xx/hrcw/hrcw.h
··· 1 - #define CONFIG_SYS_HRCW_LOW (\ 1 + #define CFG_SYS_HRCW_LOW (\ 2 2 (CONFIG_LBMC_CLOCK_MODE << (31 - 0)) |\ 3 3 (CONFIG_DDR_MC_CLOCK_MODE << (31 - 1)) |\ 4 4 (CONFIG_SYSTEM_PLL_VCO_DIV << (31 - 3)) |\ ··· 9 9 (CONFIG_QUICC_MULT_FACTOR << (31 - 31)) \ 10 10 ) 11 11 12 - #define CONFIG_SYS_HRCW_HIGH (\ 12 + #define CFG_SYS_HRCW_HIGH (\ 13 13 (CONFIG_PCI_HOST_MODE << (31 - 0)) |\ 14 14 (CONFIG_PCI_64BIT_MODE << (31 - 1)) |\ 15 15 (CONFIG_PCI_INT_ARBITER1 << (31 - 2)) |\
+16 -16
arch/powerpc/cpu/mpc83xx/lblaw/lblaw.h
··· 1 1 #if defined(CONFIG_LBLAW0) 2 - #define CONFIG_SYS_LBLAWBAR0_PRELIM \ 2 + #define CFG_SYS_LBLAWBAR0_PRELIM \ 3 3 CONFIG_LBLAW0_BASE 4 - #define CONFIG_SYS_LBLAWAR0_PRELIM (\ 4 + #define CFG_SYS_LBLAWAR0_PRELIM (\ 5 5 CONFIG_LBLAW0_ENABLE_BIT |\ 6 6 CONFIG_LBLAW0_LENGTH \ 7 7 ) 8 8 #endif 9 9 10 10 #if defined(CONFIG_LBLAW1) 11 - #define CONFIG_SYS_LBLAWBAR1_PRELIM \ 11 + #define CFG_SYS_LBLAWBAR1_PRELIM \ 12 12 CONFIG_LBLAW1_BASE 13 - #define CONFIG_SYS_LBLAWAR1_PRELIM (\ 13 + #define CFG_SYS_LBLAWAR1_PRELIM (\ 14 14 CONFIG_LBLAW1_ENABLE_BIT |\ 15 15 CONFIG_LBLAW1_LENGTH \ 16 16 ) 17 17 #endif 18 18 19 19 #if defined(CONFIG_LBLAW2) 20 - #define CONFIG_SYS_LBLAWBAR2_PRELIM \ 20 + #define CFG_SYS_LBLAWBAR2_PRELIM \ 21 21 CONFIG_LBLAW2_BASE 22 - #define CONFIG_SYS_LBLAWAR2_PRELIM (\ 22 + #define CFG_SYS_LBLAWAR2_PRELIM (\ 23 23 CONFIG_LBLAW2_ENABLE_BIT |\ 24 24 CONFIG_LBLAW2_LENGTH \ 25 25 ) 26 26 #endif 27 27 28 28 #if defined(CONFIG_LBLAW3) 29 - #define CONFIG_SYS_LBLAWBAR3_PRELIM \ 29 + #define CFG_SYS_LBLAWBAR3_PRELIM \ 30 30 CONFIG_LBLAW3_BASE 31 - #define CONFIG_SYS_LBLAWAR3_PRELIM (\ 31 + #define CFG_SYS_LBLAWAR3_PRELIM (\ 32 32 CONFIG_LBLAW3_ENABLE_BIT |\ 33 33 CONFIG_LBLAW3_LENGTH \ 34 34 ) 35 35 #endif 36 36 37 37 #ifdef CONFIG_NAND_LBLAWBAR_PRELIM_0 38 - #define CONFIG_SYS_NAND_LBLAWBAR_PRELIM CONFIG_SYS_LBLAWBAR0_PRELIM 39 - #define CONFIG_SYS_NAND_LBLAWAR_PRELIM CONFIG_SYS_LBLAWAR0_PRELIM 38 + #define CFG_SYS_NAND_LBLAWBAR_PRELIM CFG_SYS_LBLAWBAR0_PRELIM 39 + #define CFG_SYS_NAND_LBLAWAR_PRELIM CFG_SYS_LBLAWAR0_PRELIM 40 40 #endif 41 41 42 42 #ifdef CONFIG_NAND_LBLAWBAR_PRELIM_1 43 - #define CONFIG_SYS_NAND_LBLAWBAR_PRELIM CONFIG_SYS_LBLAWBAR1_PRELIM 44 - #define CONFIG_SYS_NAND_LBLAWAR_PRELIM CONFIG_SYS_LBLAWAR1_PRELIM 43 + #define CFG_SYS_NAND_LBLAWBAR_PRELIM CFG_SYS_LBLAWBAR1_PRELIM 44 + #define CFG_SYS_NAND_LBLAWAR_PRELIM CFG_SYS_LBLAWAR1_PRELIM 45 45 #endif 46 46 47 47 #ifdef CONFIG_NAND_LBLAWBAR_PRELIM_2 48 - #define CONFIG_SYS_NAND_LBLAWBAR_PRELIM CONFIG_SYS_LBLAWBAR2_PRELIM 49 - #define CONFIG_SYS_NAND_LBLAWAR_PRELIM CONFIG_SYS_LBLAWAR2_PRELIM 48 + #define CFG_SYS_NAND_LBLAWBAR_PRELIM CFG_SYS_LBLAWBAR2_PRELIM 49 + #define CFG_SYS_NAND_LBLAWAR_PRELIM CFG_SYS_LBLAWAR2_PRELIM 50 50 #endif 51 51 52 52 #ifdef CONFIG_NAND_LBLAWBAR_PRELIM_3 53 - #define CONFIG_SYS_NAND_LBLAWBAR_PRELIM CONFIG_SYS_LBLAWBAR3_PRELIM 54 - #define CONFIG_SYS_NAND_LBLAWAR_PRELIM CONFIG_SYS_LBLAWAR3_PRELIM 53 + #define CFG_SYS_NAND_LBLAWBAR_PRELIM CFG_SYS_LBLAWBAR3_PRELIM 54 + #define CFG_SYS_NAND_LBLAWAR_PRELIM CFG_SYS_LBLAWAR3_PRELIM 55 55 #endif
+3 -3
arch/powerpc/cpu/mpc83xx/spd_sdram.c
··· 66 66 } 67 67 68 68 #ifdef CONFIG_SPD_EEPROM 69 - #ifndef CONFIG_SYS_READ_SPD 70 - #define CONFIG_SYS_READ_SPD i2c_read 69 + #ifndef CFG_SYS_READ_SPD 70 + #define CFG_SYS_READ_SPD i2c_read 71 71 #endif 72 72 #ifndef SPD_EEPROM_OFFSET 73 73 #define SPD_EEPROM_OFFSET 0 ··· 167 167 isync(); 168 168 169 169 /* Read SPD parameters with I2C */ 170 - CONFIG_SYS_READ_SPD(SPD_EEPROM_ADDRESS, SPD_EEPROM_OFFSET, 170 + CFG_SYS_READ_SPD(SPD_EEPROM_ADDRESS, SPD_EEPROM_OFFSET, 171 171 SPD_EEPROM_ADDR_LEN, (uchar *) &spd, sizeof(spd)); 172 172 #ifdef SPD_DEBUG 173 173 spd_debug(&spd);
+5 -5
arch/powerpc/cpu/mpc83xx/spl_minimal.c
··· 73 73 74 74 #if defined(CFG_SYS_NAND_BR_PRELIM) \ 75 75 && defined(CFG_SYS_NAND_OR_PRELIM) \ 76 - && defined(CONFIG_SYS_NAND_LBLAWBAR_PRELIM) \ 77 - && defined(CONFIG_SYS_NAND_LBLAWAR_PRELIM) 76 + && defined(CFG_SYS_NAND_LBLAWBAR_PRELIM) \ 77 + && defined(CFG_SYS_NAND_LBLAWAR_PRELIM) 78 78 set_lbc_br(0, CFG_SYS_NAND_BR_PRELIM); 79 79 set_lbc_or(0, CFG_SYS_NAND_OR_PRELIM); 80 - im->sysconf.lblaw[0].bar = CONFIG_SYS_NAND_LBLAWBAR_PRELIM; 81 - im->sysconf.lblaw[0].ar = CONFIG_SYS_NAND_LBLAWAR_PRELIM; 80 + im->sysconf.lblaw[0].bar = CFG_SYS_NAND_LBLAWBAR_PRELIM; 81 + im->sysconf.lblaw[0].ar = CFG_SYS_NAND_LBLAWAR_PRELIM; 82 82 #else 83 - #error CFG_SYS_NAND_BR_PRELIM, CFG_SYS_NAND_OR_PRELIM, CONFIG_SYS_NAND_LBLAWBAR_PRELIM & CONFIG_SYS_NAND_LBLAWAR_PRELIM must be defined 83 + #error CFG_SYS_NAND_BR_PRELIM, CFG_SYS_NAND_OR_PRELIM, CFG_SYS_NAND_LBLAWBAR_PRELIM & CFG_SYS_NAND_LBLAWAR_PRELIM must be defined 84 84 #endif 85 85 } 86 86
+77 -77
arch/powerpc/cpu/mpc83xx/start.S
··· 46 46 47 47 #if !defined(CONFIG_SPL_BUILD) && !defined(CONFIG_NAND_SPL) && \ 48 48 !defined(CONFIG_SYS_RAMBOOT) 49 - #define CONFIG_SYS_FLASHBOOT 49 + #define CFG_SYS_FLASHBOOT 50 50 #endif 51 51 52 52 /* ··· 81 81 .fill 8,1,(((w)>> 8)&0xff); \ 82 82 .fill 8,1,(((w) )&0xff) 83 83 84 - _HRCW_TABLE_ENTRY(CONFIG_SYS_HRCW_LOW) 85 - _HRCW_TABLE_ENTRY(CONFIG_SYS_HRCW_HIGH) 84 + _HRCW_TABLE_ENTRY(CFG_SYS_HRCW_LOW) 85 + _HRCW_TABLE_ENTRY(CFG_SYS_HRCW_HIGH) 86 86 87 87 /* 88 88 * Magic number and version string - put it after the HRCW since it ··· 180 180 181 181 bl init_e300_core 182 182 183 - #ifdef CONFIG_SYS_FLASHBOOT 183 + #ifdef CFG_SYS_FLASHBOOT 184 184 185 185 /* Inflate flash location so it appears everywhere, calculate */ 186 186 /* the absolute address in final location of the FLASH, jump */ ··· 196 196 #if 1 /* Remapping flash with LAW0. */ 197 197 bl remap_flash_by_law0 198 198 #endif 199 - #endif /* CONFIG_SYS_FLASHBOOT */ 199 + #endif /* CFG_SYS_FLASHBOOT */ 200 200 201 201 /* setup the bats */ 202 202 bl setup_bats ··· 525 525 /* - force invalidation of data and instruction caches */ 526 526 /*------------------------------------------------------*/ 527 527 528 - lis r3, CONFIG_SYS_HID0_INIT@h 529 - ori r3, r3, (CONFIG_SYS_HID0_INIT | HID0_ICFI | HID0_DCFI)@l 528 + lis r3, CFG_SYS_HID0_INIT@h 529 + ori r3, r3, (CFG_SYS_HID0_INIT | HID0_ICFI | HID0_DCFI)@l 530 530 SYNC 531 531 mtspr HID0, r3 532 532 533 - lis r3, CONFIG_SYS_HID0_FINAL@h 534 - ori r3, r3, (CONFIG_SYS_HID0_FINAL & ~(HID0_ICFI | HID0_DCFI))@l 533 + lis r3, CFG_SYS_HID0_FINAL@h 534 + ori r3, r3, (CFG_SYS_HID0_FINAL & ~(HID0_ICFI | HID0_DCFI))@l 535 535 SYNC 536 536 mtspr HID0, r3 537 537 538 - lis r3, CONFIG_SYS_HID2@h 539 - ori r3, r3, CONFIG_SYS_HID2@l 538 + lis r3, CFG_SYS_HID2@h 539 + ori r3, r3, CFG_SYS_HID2@l 540 540 SYNC 541 541 mtspr HID2, r3 542 542 ··· 550 550 addis r0, r0, 0x0000 551 551 552 552 /* IBAT 0 */ 553 - addis r4, r0, CONFIG_SYS_IBAT0L@h 554 - ori r4, r4, CONFIG_SYS_IBAT0L@l 555 - addis r3, r0, CONFIG_SYS_IBAT0U@h 556 - ori r3, r3, CONFIG_SYS_IBAT0U@l 553 + addis r4, r0, CFG_SYS_IBAT0L@h 554 + ori r4, r4, CFG_SYS_IBAT0L@l 555 + addis r3, r0, CFG_SYS_IBAT0U@h 556 + ori r3, r3, CFG_SYS_IBAT0U@l 557 557 mtspr IBAT0L, r4 558 558 mtspr IBAT0U, r3 559 559 560 560 /* DBAT 0 */ 561 - addis r4, r0, CONFIG_SYS_DBAT0L@h 562 - ori r4, r4, CONFIG_SYS_DBAT0L@l 563 - addis r3, r0, CONFIG_SYS_DBAT0U@h 564 - ori r3, r3, CONFIG_SYS_DBAT0U@l 561 + addis r4, r0, CFG_SYS_DBAT0L@h 562 + ori r4, r4, CFG_SYS_DBAT0L@l 563 + addis r3, r0, CFG_SYS_DBAT0U@h 564 + ori r3, r3, CFG_SYS_DBAT0U@l 565 565 mtspr DBAT0L, r4 566 566 mtspr DBAT0U, r3 567 567 568 568 /* IBAT 1 */ 569 - addis r4, r0, CONFIG_SYS_IBAT1L@h 570 - ori r4, r4, CONFIG_SYS_IBAT1L@l 571 - addis r3, r0, CONFIG_SYS_IBAT1U@h 572 - ori r3, r3, CONFIG_SYS_IBAT1U@l 569 + addis r4, r0, CFG_SYS_IBAT1L@h 570 + ori r4, r4, CFG_SYS_IBAT1L@l 571 + addis r3, r0, CFG_SYS_IBAT1U@h 572 + ori r3, r3, CFG_SYS_IBAT1U@l 573 573 mtspr IBAT1L, r4 574 574 mtspr IBAT1U, r3 575 575 576 576 /* DBAT 1 */ 577 - addis r4, r0, CONFIG_SYS_DBAT1L@h 578 - ori r4, r4, CONFIG_SYS_DBAT1L@l 579 - addis r3, r0, CONFIG_SYS_DBAT1U@h 580 - ori r3, r3, CONFIG_SYS_DBAT1U@l 577 + addis r4, r0, CFG_SYS_DBAT1L@h 578 + ori r4, r4, CFG_SYS_DBAT1L@l 579 + addis r3, r0, CFG_SYS_DBAT1U@h 580 + ori r3, r3, CFG_SYS_DBAT1U@l 581 581 mtspr DBAT1L, r4 582 582 mtspr DBAT1U, r3 583 583 584 584 /* IBAT 2 */ 585 - addis r4, r0, CONFIG_SYS_IBAT2L@h 586 - ori r4, r4, CONFIG_SYS_IBAT2L@l 587 - addis r3, r0, CONFIG_SYS_IBAT2U@h 588 - ori r3, r3, CONFIG_SYS_IBAT2U@l 585 + addis r4, r0, CFG_SYS_IBAT2L@h 586 + ori r4, r4, CFG_SYS_IBAT2L@l 587 + addis r3, r0, CFG_SYS_IBAT2U@h 588 + ori r3, r3, CFG_SYS_IBAT2U@l 589 589 mtspr IBAT2L, r4 590 590 mtspr IBAT2U, r3 591 591 592 592 /* DBAT 2 */ 593 - addis r4, r0, CONFIG_SYS_DBAT2L@h 594 - ori r4, r4, CONFIG_SYS_DBAT2L@l 595 - addis r3, r0, CONFIG_SYS_DBAT2U@h 596 - ori r3, r3, CONFIG_SYS_DBAT2U@l 593 + addis r4, r0, CFG_SYS_DBAT2L@h 594 + ori r4, r4, CFG_SYS_DBAT2L@l 595 + addis r3, r0, CFG_SYS_DBAT2U@h 596 + ori r3, r3, CFG_SYS_DBAT2U@l 597 597 mtspr DBAT2L, r4 598 598 mtspr DBAT2U, r3 599 599 600 600 /* IBAT 3 */ 601 - addis r4, r0, CONFIG_SYS_IBAT3L@h 602 - ori r4, r4, CONFIG_SYS_IBAT3L@l 603 - addis r3, r0, CONFIG_SYS_IBAT3U@h 604 - ori r3, r3, CONFIG_SYS_IBAT3U@l 601 + addis r4, r0, CFG_SYS_IBAT3L@h 602 + ori r4, r4, CFG_SYS_IBAT3L@l 603 + addis r3, r0, CFG_SYS_IBAT3U@h 604 + ori r3, r3, CFG_SYS_IBAT3U@l 605 605 mtspr IBAT3L, r4 606 606 mtspr IBAT3U, r3 607 607 608 608 /* DBAT 3 */ 609 - addis r4, r0, CONFIG_SYS_DBAT3L@h 610 - ori r4, r4, CONFIG_SYS_DBAT3L@l 611 - addis r3, r0, CONFIG_SYS_DBAT3U@h 612 - ori r3, r3, CONFIG_SYS_DBAT3U@l 609 + addis r4, r0, CFG_SYS_DBAT3L@h 610 + ori r4, r4, CFG_SYS_DBAT3L@l 611 + addis r3, r0, CFG_SYS_DBAT3U@h 612 + ori r3, r3, CFG_SYS_DBAT3U@l 613 613 mtspr DBAT3L, r4 614 614 mtspr DBAT3U, r3 615 615 616 616 #ifdef CONFIG_HIGH_BATS 617 617 /* IBAT 4 */ 618 - addis r4, r0, CONFIG_SYS_IBAT4L@h 619 - ori r4, r4, CONFIG_SYS_IBAT4L@l 620 - addis r3, r0, CONFIG_SYS_IBAT4U@h 621 - ori r3, r3, CONFIG_SYS_IBAT4U@l 618 + addis r4, r0, CFG_SYS_IBAT4L@h 619 + ori r4, r4, CFG_SYS_IBAT4L@l 620 + addis r3, r0, CFG_SYS_IBAT4U@h 621 + ori r3, r3, CFG_SYS_IBAT4U@l 622 622 mtspr IBAT4L, r4 623 623 mtspr IBAT4U, r3 624 624 625 625 /* DBAT 4 */ 626 - addis r4, r0, CONFIG_SYS_DBAT4L@h 627 - ori r4, r4, CONFIG_SYS_DBAT4L@l 628 - addis r3, r0, CONFIG_SYS_DBAT4U@h 629 - ori r3, r3, CONFIG_SYS_DBAT4U@l 626 + addis r4, r0, CFG_SYS_DBAT4L@h 627 + ori r4, r4, CFG_SYS_DBAT4L@l 628 + addis r3, r0, CFG_SYS_DBAT4U@h 629 + ori r3, r3, CFG_SYS_DBAT4U@l 630 630 mtspr DBAT4L, r4 631 631 mtspr DBAT4U, r3 632 632 633 633 /* IBAT 5 */ 634 - addis r4, r0, CONFIG_SYS_IBAT5L@h 635 - ori r4, r4, CONFIG_SYS_IBAT5L@l 636 - addis r3, r0, CONFIG_SYS_IBAT5U@h 637 - ori r3, r3, CONFIG_SYS_IBAT5U@l 634 + addis r4, r0, CFG_SYS_IBAT5L@h 635 + ori r4, r4, CFG_SYS_IBAT5L@l 636 + addis r3, r0, CFG_SYS_IBAT5U@h 637 + ori r3, r3, CFG_SYS_IBAT5U@l 638 638 mtspr IBAT5L, r4 639 639 mtspr IBAT5U, r3 640 640 641 641 /* DBAT 5 */ 642 - addis r4, r0, CONFIG_SYS_DBAT5L@h 643 - ori r4, r4, CONFIG_SYS_DBAT5L@l 644 - addis r3, r0, CONFIG_SYS_DBAT5U@h 645 - ori r3, r3, CONFIG_SYS_DBAT5U@l 642 + addis r4, r0, CFG_SYS_DBAT5L@h 643 + ori r4, r4, CFG_SYS_DBAT5L@l 644 + addis r3, r0, CFG_SYS_DBAT5U@h 645 + ori r3, r3, CFG_SYS_DBAT5U@l 646 646 mtspr DBAT5L, r4 647 647 mtspr DBAT5U, r3 648 648 649 649 /* IBAT 6 */ 650 - addis r4, r0, CONFIG_SYS_IBAT6L@h 651 - ori r4, r4, CONFIG_SYS_IBAT6L@l 652 - addis r3, r0, CONFIG_SYS_IBAT6U@h 653 - ori r3, r3, CONFIG_SYS_IBAT6U@l 650 + addis r4, r0, CFG_SYS_IBAT6L@h 651 + ori r4, r4, CFG_SYS_IBAT6L@l 652 + addis r3, r0, CFG_SYS_IBAT6U@h 653 + ori r3, r3, CFG_SYS_IBAT6U@l 654 654 mtspr IBAT6L, r4 655 655 mtspr IBAT6U, r3 656 656 657 657 /* DBAT 6 */ 658 - addis r4, r0, CONFIG_SYS_DBAT6L@h 659 - ori r4, r4, CONFIG_SYS_DBAT6L@l 660 - addis r3, r0, CONFIG_SYS_DBAT6U@h 661 - ori r3, r3, CONFIG_SYS_DBAT6U@l 658 + addis r4, r0, CFG_SYS_DBAT6L@h 659 + ori r4, r4, CFG_SYS_DBAT6L@l 660 + addis r3, r0, CFG_SYS_DBAT6U@h 661 + ori r3, r3, CFG_SYS_DBAT6U@l 662 662 mtspr DBAT6L, r4 663 663 mtspr DBAT6U, r3 664 664 665 665 /* IBAT 7 */ 666 - addis r4, r0, CONFIG_SYS_IBAT7L@h 667 - ori r4, r4, CONFIG_SYS_IBAT7L@l 668 - addis r3, r0, CONFIG_SYS_IBAT7U@h 669 - ori r3, r3, CONFIG_SYS_IBAT7U@l 666 + addis r4, r0, CFG_SYS_IBAT7L@h 667 + ori r4, r4, CFG_SYS_IBAT7L@l 668 + addis r3, r0, CFG_SYS_IBAT7U@h 669 + ori r3, r3, CFG_SYS_IBAT7U@l 670 670 mtspr IBAT7L, r4 671 671 mtspr IBAT7U, r3 672 672 673 673 /* DBAT 7 */ 674 - addis r4, r0, CONFIG_SYS_DBAT7L@h 675 - ori r4, r4, CONFIG_SYS_DBAT7L@l 676 - addis r3, r0, CONFIG_SYS_DBAT7U@h 677 - ori r3, r3, CONFIG_SYS_DBAT7U@l 674 + addis r4, r0, CFG_SYS_DBAT7L@h 675 + ori r4, r4, CFG_SYS_DBAT7L@l 676 + addis r3, r0, CFG_SYS_DBAT7U@h 677 + ori r3, r3, CFG_SYS_DBAT7U@l 678 678 mtspr DBAT7L, r4 679 679 mtspr DBAT7U, r3 680 680 #endif ··· 1095 1095 #endif /* !MINIMAL_SPL */ 1096 1096 #endif /* CONFIG_SYS_INIT_RAM_LOCK */ 1097 1097 1098 - #ifdef CONFIG_SYS_FLASHBOOT 1098 + #ifdef CFG_SYS_FLASHBOOT 1099 1099 map_flash_by_law1: 1100 1100 /* When booting from ROM (Flash or EPROM), clear the */ 1101 1101 /* Address Mask in OR0 so ROM appears everywhere */ ··· 1182 1182 twi 0,r4,0 1183 1183 isync 1184 1184 blr 1185 - #endif /* CONFIG_SYS_FLASHBOOT */ 1185 + #endif /* CFG_SYS_FLASHBOOT */
+28 -28
arch/powerpc/cpu/mpc85xx/cpu_init.c
··· 73 73 get_sys_info(&sysinfo); 74 74 if (sysinfo.diff_sysclk == 1) { 75 75 clrbits_be32(&usb_phy->pllprg[1], 76 - CONFIG_SYS_FSL_USB_PLLPRG2_MFI); 76 + CFG_SYS_FSL_USB_PLLPRG2_MFI); 77 77 setbits_be32(&usb_phy->pllprg[1], 78 - CONFIG_SYS_FSL_USB_PLLPRG2_REF_DIV_INTERNAL_CLK | 79 - CONFIG_SYS_FSL_USB_PLLPRG2_MFI_INTERNAL_CLK | 80 - CONFIG_SYS_FSL_USB_INTERNAL_SOC_CLK_EN); 78 + CFG_SYS_FSL_USB_PLLPRG2_REF_DIV_INTERNAL_CLK | 79 + CFG_SYS_FSL_USB_PLLPRG2_MFI_INTERNAL_CLK | 80 + CFG_SYS_FSL_USB_INTERNAL_SOC_CLK_EN); 81 81 } 82 82 } 83 83 #endif ··· 89 89 u32 xcvrprg = in_be32(&usb_phy->port1.xcvrprg); 90 90 91 91 /* Increase Disconnect Threshold by 50mV */ 92 - xcvrprg &= ~CONFIG_SYS_FSL_USB_XCVRPRG_HS_DCNT_PROG_MASK | 92 + xcvrprg &= ~CFG_SYS_FSL_USB_XCVRPRG_HS_DCNT_PROG_MASK | 93 93 INC_DCNT_THRESHOLD_50MV; 94 94 /* Enable programming of USB High speed Disconnect threshold */ 95 - xcvrprg |= CONFIG_SYS_FSL_USB_XCVRPRG_HS_DCNT_PROG_EN; 95 + xcvrprg |= CFG_SYS_FSL_USB_XCVRPRG_HS_DCNT_PROG_EN; 96 96 out_be32(&usb_phy->port1.xcvrprg, xcvrprg); 97 97 98 98 xcvrprg = in_be32(&usb_phy->port2.xcvrprg); 99 99 /* Increase Disconnect Threshold by 50mV */ 100 - xcvrprg &= ~CONFIG_SYS_FSL_USB_XCVRPRG_HS_DCNT_PROG_MASK | 100 + xcvrprg &= ~CFG_SYS_FSL_USB_XCVRPRG_HS_DCNT_PROG_MASK | 101 101 INC_DCNT_THRESHOLD_50MV; 102 102 /* Enable programming of USB High speed Disconnect threshold */ 103 - xcvrprg |= CONFIG_SYS_FSL_USB_XCVRPRG_HS_DCNT_PROG_EN; 103 + xcvrprg |= CFG_SYS_FSL_USB_XCVRPRG_HS_DCNT_PROG_EN; 104 104 out_be32(&usb_phy->port2.xcvrprg, xcvrprg); 105 105 #else 106 106 ··· 108 108 u32 status = in_be32(&usb_phy->status1); 109 109 110 110 u32 squelch_prog_rd_0_2 = 111 - (status >> CONFIG_SYS_FSL_USB_SQUELCH_PROG_RD_0) 112 - & CONFIG_SYS_FSL_USB_SQUELCH_PROG_MASK; 111 + (status >> CFG_SYS_FSL_USB_SQUELCH_PROG_RD_0) 112 + & CFG_SYS_FSL_USB_SQUELCH_PROG_MASK; 113 113 114 114 u32 squelch_prog_rd_3_5 = 115 - (status >> CONFIG_SYS_FSL_USB_SQUELCH_PROG_RD_3) 116 - & CONFIG_SYS_FSL_USB_SQUELCH_PROG_MASK; 115 + (status >> CFG_SYS_FSL_USB_SQUELCH_PROG_RD_3) 116 + & CFG_SYS_FSL_USB_SQUELCH_PROG_MASK; 117 117 118 118 setbits_be32(&usb_phy->config1, 119 - CONFIG_SYS_FSL_USB_HS_DISCNCT_INC); 119 + CFG_SYS_FSL_USB_HS_DISCNCT_INC); 120 120 setbits_be32(&usb_phy->config2, 121 - CONFIG_SYS_FSL_USB_RX_AUTO_CAL_RD_WR_SEL); 121 + CFG_SYS_FSL_USB_RX_AUTO_CAL_RD_WR_SEL); 122 122 123 - temp = squelch_prog_rd_0_2 << CONFIG_SYS_FSL_USB_SQUELCH_PROG_WR_3; 123 + temp = squelch_prog_rd_0_2 << CFG_SYS_FSL_USB_SQUELCH_PROG_WR_3; 124 124 out_be32(&usb_phy->config2, in_be32(&usb_phy->config2) | temp); 125 125 126 - temp = squelch_prog_rd_3_5 << CONFIG_SYS_FSL_USB_SQUELCH_PROG_WR_0; 126 + temp = squelch_prog_rd_3_5 << CFG_SYS_FSL_USB_SQUELCH_PROG_WR_0; 127 127 out_be32(&usb_phy->config2, in_be32(&usb_phy->config2) | temp); 128 128 #endif 129 129 } ··· 827 827 fsl_erratum_a006261_workaround(usb_phy1); 828 828 #endif 829 829 out_be32(&usb_phy1->usb_enable_override, 830 - CONFIG_SYS_FSL_USB_ENABLE_OVERRIDE); 830 + CFG_SYS_FSL_USB_ENABLE_OVERRIDE); 831 831 } 832 832 #endif 833 833 #ifdef CONFIG_SYS_FSL_USB2_PHY_ENABLE ··· 839 839 fsl_erratum_a006261_workaround(usb_phy2); 840 840 #endif 841 841 out_be32(&usb_phy2->usb_enable_override, 842 - CONFIG_SYS_FSL_USB_ENABLE_OVERRIDE); 842 + CFG_SYS_FSL_USB_ENABLE_OVERRIDE); 843 843 } 844 844 #endif 845 845 ··· 861 861 struct ccsr_usb_phy __iomem *usb_phy = 862 862 (void *)CFG_SYS_MPC85xx_USB1_PHY_ADDR; 863 863 setbits_be32(&usb_phy->pllprg[1], 864 - CONFIG_SYS_FSL_USB_PLLPRG2_PHY2_CLK_EN | 865 - CONFIG_SYS_FSL_USB_PLLPRG2_PHY1_CLK_EN | 866 - CONFIG_SYS_FSL_USB_PLLPRG2_MFI | 867 - CONFIG_SYS_FSL_USB_PLLPRG2_PLL_EN); 864 + CFG_SYS_FSL_USB_PLLPRG2_PHY2_CLK_EN | 865 + CFG_SYS_FSL_USB_PLLPRG2_PHY1_CLK_EN | 866 + CFG_SYS_FSL_USB_PLLPRG2_MFI | 867 + CFG_SYS_FSL_USB_PLLPRG2_PLL_EN); 868 868 #ifdef CONFIG_SYS_FSL_SINGLE_SOURCE_CLK 869 869 usb_single_source_clk_configure(usb_phy); 870 870 #endif 871 871 setbits_be32(&usb_phy->port1.ctrl, 872 - CONFIG_SYS_FSL_USB_CTRL_PHY_EN); 872 + CFG_SYS_FSL_USB_CTRL_PHY_EN); 873 873 setbits_be32(&usb_phy->port1.drvvbuscfg, 874 - CONFIG_SYS_FSL_USB_DRVVBUS_CR_EN); 874 + CFG_SYS_FSL_USB_DRVVBUS_CR_EN); 875 875 setbits_be32(&usb_phy->port1.pwrfltcfg, 876 - CONFIG_SYS_FSL_USB_PWRFLT_CR_EN); 876 + CFG_SYS_FSL_USB_PWRFLT_CR_EN); 877 877 setbits_be32(&usb_phy->port2.ctrl, 878 - CONFIG_SYS_FSL_USB_CTRL_PHY_EN); 878 + CFG_SYS_FSL_USB_CTRL_PHY_EN); 879 879 setbits_be32(&usb_phy->port2.drvvbuscfg, 880 - CONFIG_SYS_FSL_USB_DRVVBUS_CR_EN); 880 + CFG_SYS_FSL_USB_DRVVBUS_CR_EN); 881 881 setbits_be32(&usb_phy->port2.pwrfltcfg, 882 - CONFIG_SYS_FSL_USB_PWRFLT_CR_EN); 882 + CFG_SYS_FSL_USB_PWRFLT_CR_EN); 883 883 884 884 #ifdef CONFIG_SYS_FSL_ERRATUM_A006261 885 885 if (has_erratum_a006261())
+5 -5
arch/powerpc/cpu/mpc85xx/fdt.c
··· 532 532 int nodeoff; 533 533 ccsr_gur_t __iomem *gur = (void *)(CFG_SYS_MPC85xx_GUTS_ADDR); 534 534 535 - #define CONFIG_SYS_ELO3_DMA3 (0xffe000000 + 0x102300) 535 + #define CFG_SYS_ELO3_DMA3 (0xffe000000 + 0x102300) 536 536 #if defined(CONFIG_ARCH_T2080) 537 537 u32 srds_prtcl_s2 = in_be32(&gur->rcwsr[4]) & 538 538 FSL_CORENET2_RCWSR4_SRDS2_PRTCL; ··· 554 554 case 16: 555 555 #endif 556 556 nodeoff = fdt_node_offset_by_compat_reg(blob, "fsl,elo3-dma", 557 - CONFIG_SYS_ELO3_DMA3); 557 + CFG_SYS_ELO3_DMA3); 558 558 if (nodeoff > 0) 559 559 fdt_status_disabled(blob, nodeoff); 560 560 else ··· 616 616 617 617 fdt_add_enet_stashing(blob); 618 618 619 - #ifndef CONFIG_FSL_TBCLK_EXTRA_DIV 620 - #define CONFIG_FSL_TBCLK_EXTRA_DIV 1 619 + #ifndef CFG_FSL_TBCLK_EXTRA_DIV 620 + #define CFG_FSL_TBCLK_EXTRA_DIV 1 621 621 #endif 622 622 do_fixup_by_prop_u32(blob, "device_type", "cpu", 4, 623 - "timebase-frequency", get_tbclk() / CONFIG_FSL_TBCLK_EXTRA_DIV, 623 + "timebase-frequency", get_tbclk() / CFG_FSL_TBCLK_EXTRA_DIV, 624 624 1); 625 625 do_fixup_by_prop_u32(blob, "device_type", "cpu", 4, 626 626 "bus-frequency", bd->bi_busfreq, 1);
+3 -3
arch/powerpc/cpu/mpc85xx/liodn.c
··· 255 255 } 256 256 #endif 257 257 258 - #define CONFIG_SYS_MAX_PCI_EPS 8 258 + #define CFG_SYS_MAX_PCI_EPS 8 259 259 260 260 static void fdt_fixup_pci_liodn_offsets(void *fdt, const char *compat, 261 261 int ep_liodn_start) 262 262 { 263 263 int off, pci_idx = 0, pci_cnt = 0, i, rc; 264 264 const uint32_t *base_liodn; 265 - uint32_t liodn_offs[CONFIG_SYS_MAX_PCI_EPS + 1] = { 0 }; 265 + uint32_t liodn_offs[CFG_SYS_MAX_PCI_EPS + 1] = { 0 }; 266 266 267 267 /* 268 268 * Count the number of pci nodes. ··· 282 282 path, fdt_strerror(rc)); 283 283 continue; 284 284 } 285 - for (i = 0; i < CONFIG_SYS_MAX_PCI_EPS; i++) 285 + for (i = 0; i < CFG_SYS_MAX_PCI_EPS; i++) 286 286 liodn_offs[i + 1] = ep_liodn_start + 287 287 i * pci_cnt + pci_idx - *base_liodn; 288 288 rc = fdt_setprop(fdt, off, "fsl,liodn-offset-list",
+8 -8
arch/powerpc/cpu/mpc8xxx/fsl_pamu.c
··· 240 240 spaact_size = sizeof(struct paace) * NUM_SPAACT_ENTRIES; 241 241 242 242 /* Allocate space for Primary PAACT Table */ 243 - #if (defined(CONFIG_SPL_BUILD) && defined(CONFIG_SPL_PPAACT_ADDR)) 244 - ppaact = (void *)CONFIG_SPL_PPAACT_ADDR; 243 + #if (defined(CONFIG_SPL_BUILD) && defined(CFG_SPL_PPAACT_ADDR)) 244 + ppaact = (void *)CFG_SPL_PPAACT_ADDR; 245 245 #else 246 246 ppaact = memalign(PAMU_TABLE_ALIGNMENT, ppaact_size); 247 247 if (!ppaact) ··· 250 250 memset(ppaact, 0, ppaact_size); 251 251 252 252 /* Allocate space for Secondary PAACT Table */ 253 - #if (defined(CONFIG_SPL_BUILD) && defined(CONFIG_SPL_SPAACT_ADDR)) 254 - sec = (void *)CONFIG_SPL_SPAACT_ADDR; 253 + #if (defined(CONFIG_SPL_BUILD) && defined(CFG_SPL_SPAACT_ADDR)) 254 + sec = (void *)CFG_SPL_SPAACT_ADDR; 255 255 #else 256 256 sec = memalign(PAMU_TABLE_ALIGNMENT, spaact_size); 257 257 if (!sec) ··· 266 266 spaact_lim = spaact_phys + spaact_size; 267 267 268 268 /* Configure all PAMU's */ 269 - for (i = 0; i < CONFIG_NUM_PAMU; i++) { 269 + for (i = 0; i < CFG_NUM_PAMU; i++) { 270 270 regs = (struct ccsr_pamu *)base_addr; 271 271 272 272 out_be32(&regs->ppbah, ppaact_phys >> 32); ··· 293 293 { 294 294 u32 i = 0; 295 295 u32 base_addr = CFG_SYS_PAMU_ADDR; 296 - for (i = 0; i < CONFIG_NUM_PAMU; i++) { 296 + for (i = 0; i < CFG_NUM_PAMU; i++) { 297 297 setbits_be32((void *)base_addr + PAMU_PCR_OFFSET, 298 298 PAMU_PCR_PE); 299 299 sync(); ··· 307 307 u32 base_addr = CFG_SYS_PAMU_ADDR; 308 308 struct ccsr_pamu *regs; 309 309 310 - for (i = 0; i < CONFIG_NUM_PAMU; i++) { 310 + for (i = 0; i < CFG_NUM_PAMU; i++) { 311 311 regs = (struct ccsr_pamu *)base_addr; 312 312 /* Clear PPAACT Base register */ 313 313 out_be32(&regs->ppbah, 0); ··· 331 331 u32 base_addr = CFG_SYS_PAMU_ADDR; 332 332 333 333 334 - for (i = 0; i < CONFIG_NUM_PAMU; i++) { 334 + for (i = 0; i < CFG_NUM_PAMU; i++) { 335 335 clrbits_be32((void *)base_addr + PAMU_PCR_OFFSET, PAMU_PCR_PE); 336 336 sync(); 337 337 base_addr += PAMU_OFFSET;
+1 -1
arch/powerpc/include/asm/fsl_pamu.h
··· 6 6 #ifndef __PAMU_H 7 7 #define __PAMU_H 8 8 9 - #define CONFIG_NUM_PAMU 16 9 + #define CFG_NUM_PAMU 16 10 10 #define NUM_PPAACT_ENTRIES 512 11 11 #define NUM_SPAACT_ENTRIES 256 12 12
+4 -4
arch/powerpc/include/asm/fsl_secure_boot.h
··· 41 41 * PPAACT and SPAACT table for PAMU must be placed on DDR after DDR init 42 42 * due to space crunch on CPC and thus malloc will not work. 43 43 */ 44 - #define CONFIG_SPL_PPAACT_ADDR 0x2e000000 45 - #define CONFIG_SPL_SPAACT_ADDR 0x2f000000 46 - #define CONFIG_SPL_JR0_LIODN_S 454 47 - #define CONFIG_SPL_JR0_LIODN_NS 458 44 + #define CFG_SPL_PPAACT_ADDR 0x2e000000 45 + #define CFG_SPL_SPAACT_ADDR 0x2f000000 46 + #define CFG_SPL_JR0_LIODN_S 454 47 + #define CFG_SPL_JR0_LIODN_NS 458 48 48 #endif /* ifdef CONFIG_SPL_BUILD */ 49 49 50 50 #ifndef CONFIG_SPL_BUILD
+3 -3
arch/powerpc/lib/bootm.c
··· 41 41 extern void ft_fixup_num_cores(void *blob); 42 42 static void set_clocks_in_mhz (struct bd_info *kbd); 43 43 44 - #ifndef CONFIG_SYS_LINUX_LOWMEM_MAX_SIZE 45 - #define CONFIG_SYS_LINUX_LOWMEM_MAX_SIZE (768*1024*1024) 44 + #ifndef CFG_SYS_LINUX_LOWMEM_MAX_SIZE 45 + #define CFG_SYS_LINUX_LOWMEM_MAX_SIZE (768*1024*1024) 46 46 #endif 47 47 48 48 static void boot_jump_linux(struct bootm_headers *images) ··· 133 133 #endif 134 134 135 135 size = min(bootm_size, get_effective_memsize()); 136 - size = min(size, (ulong)CONFIG_SYS_LINUX_LOWMEM_MAX_SIZE); 136 + size = min(size, (ulong)CFG_SYS_LINUX_LOWMEM_MAX_SIZE); 137 137 138 138 if (size < bootm_size) { 139 139 ulong base = bootmap_base + size;
+3 -3
arch/powerpc/lib/interrupts.c
··· 17 17 #include <asm/ptrace.h> 18 18 19 19 #ifndef CONFIG_MPC83XX_TIMER 20 - #ifndef CONFIG_SYS_WATCHDOG_FREQ 21 - #define CONFIG_SYS_WATCHDOG_FREQ (CONFIG_SYS_HZ / 2) 20 + #ifndef CFG_SYS_WATCHDOG_FREQ 21 + #define CFG_SYS_WATCHDOG_FREQ (CONFIG_SYS_HZ / 2) 22 22 #endif 23 23 24 24 static unsigned decrementer_count; /* count value for 1e6/HZ microseconds */ ··· 80 80 timestamp++; 81 81 82 82 #if defined(CONFIG_WATCHDOG) || defined (CONFIG_HW_WATCHDOG) 83 - if (CONFIG_SYS_WATCHDOG_FREQ && (timestamp % (CONFIG_SYS_WATCHDOG_FREQ)) == 0) 83 + if (CFG_SYS_WATCHDOG_FREQ && (timestamp % (CFG_SYS_WATCHDOG_FREQ)) == 0) 84 84 schedule(); 85 85 #endif /* CONFIG_WATCHDOG || CONFIG_HW_WATCHDOG */ 86 86
+1 -1
arch/riscv/include/asm/encoding.h
··· 93 93 #define DEFAULT_RSTVEC 0x00001000 94 94 #define DEFAULT_NMIVEC 0x00001004 95 95 #define DEFAULT_MTVEC 0x00001010 96 - #define CONFIG_STRING_ADDR 0x0000100C 96 + #define CFG_STRING_ADDR 0x0000100C 97 97 #define EXT_IO_BASE 0x40000000 98 98 #define DRAM_BASE 0x80000000 99 99
+2 -2
arch/x86/include/asm/acpi/chromeos.asl
··· 5 5 6 6 #ifdef CONFIG_CHROMEOS 7 7 8 - #define CONFIG_VBOOT_VBNV_OFFSET 0x26 8 + #define CFG_VBOOT_VBNV_OFFSET 0x26 9 9 10 10 #include <asm/acpi/vbnv_layout.h> 11 11 ··· 68 68 Name(VNBV, Package() { 69 69 // See src/vendorcode/google/chromeos/Kconfig 70 70 // for the definition of these: 71 - CONFIG_VBOOT_VBNV_OFFSET, 71 + CFG_VBOOT_VBNV_OFFSET, 72 72 VBOOT_VBNV_BLOCK_SIZE 73 73 }) 74 74 Return(VNBV)
+3 -3
board/alliedtelesis/x530/x530.c
··· 26 26 27 27 #define MVEBU_DEV_BUS_BASE (MVEBU_REGISTER(0x10400)) 28 28 29 - #define CONFIG_NVS_LOCATION 0xf4800000 30 - #define CONFIG_NVS_SIZE (512 << 10) 29 + #define CFG_NVS_LOCATION 0xf4800000 30 + #define CFG_NVS_SIZE (512 << 10) 31 31 32 32 static struct serdes_map board_serdes_map[] = { 33 33 {PEX0, SERDES_SPEED_5_GBPS, PEX_ROOT_COMPLEX_X1, 0, 0}, ··· 109 109 gd->bd->bi_boot_params = mvebu_sdram_bar(0) + 0x100; 110 110 111 111 /* window for NVS */ 112 - mbus_dt_setup_win(CONFIG_NVS_LOCATION, CONFIG_NVS_SIZE, 112 + mbus_dt_setup_win(CFG_NVS_LOCATION, CFG_NVS_SIZE, 113 113 CPU_TARGET_DEVICEBUS_BOOTROM_SPI, CPU_ATTR_DEV_CS1); 114 114 115 115 /* DEV_READYn is not needed for NVS, ignore it when accessing CS1 */
+1 -1
board/armltd/vexpress64/vexpress64.c
··· 220 220 int rc = 0; 221 221 #ifndef CONFIG_DM_ETH 222 222 #ifdef CONFIG_SMC911X 223 - rc = smc911x_initialize(0, CONFIG_SMC911X_BASE); 223 + rc = smc911x_initialize(0, CFG_SMC911X_BASE); 224 224 #endif 225 225 #endif 226 226 return rc;
+3 -3
board/compulab/imx8mm-cl-iot-gate/eeprom_spl.c
··· 12 12 13 13 #ifdef CONFIG_SPL_BUILD 14 14 15 - #define CONFIG_SYS_I2C_EEPROM_ADDR_P1 0x51 15 + #define CFG_SYS_I2C_EEPROM_ADDR_P1 0x51 16 16 17 17 static iomux_v3_cfg_t const eeprom_pads[] = { 18 18 IMX8MQ_PAD_GPIO1_IO13__GPIO1_IO13 | MUX_PAD_CTRL(NO_PAD_CTRL), ··· 40 40 struct udevice *dev; 41 41 int ret; 42 42 43 - ret = i2c_get_chip_for_busnum(1, CONFIG_SYS_I2C_EEPROM_ADDR_P1, 43 + ret = i2c_get_chip_for_busnum(1, CFG_SYS_I2C_EEPROM_ADDR_P1, 44 44 CONFIG_SYS_I2C_EEPROM_ADDR_LEN, &dev); 45 45 if (ret) { 46 46 printf("%s: Cannot find EEPROM: %d\n", __func__, ret); ··· 57 57 58 58 cl_eeprom_we(1); 59 59 60 - ret = i2c_get_chip_for_busnum(1, CONFIG_SYS_I2C_EEPROM_ADDR_P1, 60 + ret = i2c_get_chip_for_busnum(1, CFG_SYS_I2C_EEPROM_ADDR_P1, 61 61 CONFIG_SYS_I2C_EEPROM_ADDR_LEN, &dev); 62 62 if (ret) { 63 63 printf("%s: Cannot find EEPROM: %d\n", __func__, ret);
+3 -3
board/davinci/da8xxevm/da850evm.c
··· 226 226 227 227 const int lpsc_size = ARRAY_SIZE(lpsc); 228 228 229 - #ifndef CONFIG_DA850_EVM_MAX_CPU_CLK 230 - #define CONFIG_DA850_EVM_MAX_CPU_CLK 300000000 229 + #ifndef CFG_DA850_EVM_MAX_CPU_CLK 230 + #define CFG_DA850_EVM_MAX_CPU_CLK 300000000 231 231 #endif 232 232 233 233 #define REV_AM18X_EVM 0x100 ··· 245 245 u32 get_board_rev(void) 246 246 { 247 247 char *s; 248 - u32 maxcpuclk = CONFIG_DA850_EVM_MAX_CPU_CLK; 248 + u32 maxcpuclk = CFG_DA850_EVM_MAX_CPU_CLK; 249 249 u32 rev = 0; 250 250 251 251 s = env_get("maxcpuclk");
+2 -2
board/davinci/da8xxevm/omapl138_lcdk.c
··· 139 139 140 140 const int lpsc_size = ARRAY_SIZE(lpsc); 141 141 142 - #ifndef CONFIG_DA850_EVM_MAX_CPU_CLK 143 - #define CONFIG_DA850_EVM_MAX_CPU_CLK 456000000 142 + #ifndef CFG_DA850_EVM_MAX_CPU_CLK 143 + #define CFG_DA850_EVM_MAX_CPU_CLK 456000000 144 144 #endif 145 145 146 146 int board_early_init_f(void)
+2 -2
board/eets/pdu001/board.c
··· 62 62 * To get the boot device from 'am33xx_spl_board_init' to 63 63 * 'board_late_init' we therefore use a scratch register from the RTC. 64 64 */ 65 - #define CONFIG_SYS_RTC_SCRATCH0 0x60 66 - #define BOOT_DEVICE_SAVE_REGISTER (RTC_BASE + CONFIG_SYS_RTC_SCRATCH0) 65 + #define CFG_SYS_RTC_SCRATCH0 0x60 66 + #define BOOT_DEVICE_SAVE_REGISTER (RTC_BASE + CFG_SYS_RTC_SCRATCH0) 67 67 68 68 #ifdef CONFIG_SPL_BUILD 69 69 static void save_boot_device(void)
+6 -6
board/freescale/common/cadmus.c
··· 10 10 /* 11 11 * CADMUS Board System Registers 12 12 */ 13 - #ifndef CONFIG_SYS_CADMUS_BASE_REG 14 - #define CONFIG_SYS_CADMUS_BASE_REG (CADMUS_BASE_ADDR + 0x4000) 13 + #ifndef CFG_SYS_CADMUS_BASE_REG 14 + #define CFG_SYS_CADMUS_BASE_REG (CADMUS_BASE_ADDR + 0x4000) 15 15 #endif 16 16 17 17 typedef struct cadmus_reg { ··· 30 30 unsigned int 31 31 get_board_version(void) 32 32 { 33 - volatile cadmus_reg_t *cadmus = (cadmus_reg_t *)CONFIG_SYS_CADMUS_BASE_REG; 33 + volatile cadmus_reg_t *cadmus = (cadmus_reg_t *)CFG_SYS_CADMUS_BASE_REG; 34 34 35 35 return cadmus->cm_ver; 36 36 } ··· 39 39 unsigned long 40 40 get_board_sys_clk(void) 41 41 { 42 - volatile cadmus_reg_t *cadmus = (cadmus_reg_t *)CONFIG_SYS_CADMUS_BASE_REG; 42 + volatile cadmus_reg_t *cadmus = (cadmus_reg_t *)CFG_SYS_CADMUS_BASE_REG; 43 43 44 44 uint pci1_speed = (cadmus->cm_pci >> 2) & 0x3; /* PSPEED in [4:5] */ 45 45 ··· 57 57 unsigned int 58 58 get_pci_slot(void) 59 59 { 60 - volatile cadmus_reg_t *cadmus = (cadmus_reg_t *)CONFIG_SYS_CADMUS_BASE_REG; 60 + volatile cadmus_reg_t *cadmus = (cadmus_reg_t *)CFG_SYS_CADMUS_BASE_REG; 61 61 62 62 /* 63 63 * PCI slot in USER bits CSR[6:7] by convention. ··· 69 69 unsigned int 70 70 get_pci_dual(void) 71 71 { 72 - volatile cadmus_reg_t *cadmus = (cadmus_reg_t *)CONFIG_SYS_CADMUS_BASE_REG; 72 + volatile cadmus_reg_t *cadmus = (cadmus_reg_t *)CFG_SYS_CADMUS_BASE_REG; 73 73 74 74 /* 75 75 * PCI DUAL in CM_PCI[3]
+3 -3
board/freescale/common/fsl_chain_of_trust.c
··· 28 28 #endif 29 29 30 30 #if defined(CONFIG_MPC85xx) 31 - #define CONFIG_DCFG_ADDR CFG_SYS_MPC85xx_GUTS_ADDR 31 + #define CFG_DCFG_ADDR CFG_SYS_MPC85xx_GUTS_ADDR 32 32 #else 33 - #define CONFIG_DCFG_ADDR CFG_SYS_FSL_GUTS_ADDR 33 + #define CFG_DCFG_ADDR CFG_SYS_FSL_GUTS_ADDR 34 34 #endif 35 35 36 36 #ifdef CONFIG_SYS_FSL_CCSR_GUR_LE ··· 44 44 { 45 45 uint32_t val; 46 46 struct ccsr_sfp_regs *sfp_regs = (void *)(CFG_SYS_SFP_ADDR); 47 - struct ccsr_gur __iomem *gur = (void *)(CONFIG_DCFG_ADDR); 47 + struct ccsr_gur __iomem *gur = (void *)(CFG_DCFG_ADDR); 48 48 49 49 val = sfp_in32(&sfp_regs->ospr) & ITS_MASK; 50 50 if (val == ITS_MASK)
+15 -15
board/freescale/common/pixis.c
··· 149 149 return 1; 150 150 } 151 151 152 - #ifndef CONFIG_SYS_PIXIS_VCFGEN0_ENABLE 153 - #define CONFIG_SYS_PIXIS_VCFGEN0_ENABLE 0x1C 152 + #ifndef CFG_SYS_PIXIS_VCFGEN0_ENABLE 153 + #define CFG_SYS_PIXIS_VCFGEN0_ENABLE 0x1C 154 154 #endif 155 155 156 156 /* Tell the PIXIS where to find the COREPLL, MPXPLL, SYSCLK values ··· 159 159 * or various other PIXIS registers to determine the values for COREPLL, 160 160 * MPXPLL, and SYSCLK. 161 161 * 162 - * CONFIG_SYS_PIXIS_VCFGEN0_ENABLE is the value to write to the PIXIS_VCFGEN0 162 + * CFG_SYS_PIXIS_VCFGEN0_ENABLE is the value to write to the PIXIS_VCFGEN0 163 163 * register that tells the pixis to use the various PIXIS register. 164 164 */ 165 165 static void read_from_px_regs(int set) ··· 167 167 u8 tmp = in_8(pixis_base + PIXIS_VCFGEN0); 168 168 169 169 if (set) 170 - tmp = tmp | CONFIG_SYS_PIXIS_VCFGEN0_ENABLE; 170 + tmp = tmp | CFG_SYS_PIXIS_VCFGEN0_ENABLE; 171 171 else 172 - tmp = tmp & ~CONFIG_SYS_PIXIS_VCFGEN0_ENABLE; 172 + tmp = tmp & ~CFG_SYS_PIXIS_VCFGEN0_ENABLE; 173 173 174 174 out_8(pixis_base + PIXIS_VCFGEN0, tmp); 175 175 } 176 176 177 - /* CONFIG_SYS_PIXIS_VBOOT_ENABLE is the value to write to the PX_VCFGEN1 177 + /* CFG_SYS_PIXIS_VBOOT_ENABLE is the value to write to the PX_VCFGEN1 178 178 * register that tells the pixis to use the PX_VBOOT[LBMAP] register. 179 179 */ 180 - #ifndef CONFIG_SYS_PIXIS_VBOOT_ENABLE 181 - #define CONFIG_SYS_PIXIS_VBOOT_ENABLE 0x04 180 + #ifndef CFG_SYS_PIXIS_VBOOT_ENABLE 181 + #define CFG_SYS_PIXIS_VBOOT_ENABLE 0x04 182 182 #endif 183 183 184 184 /* Configure the source of the boot location ··· 194 194 u8 tmp = in_8(pixis_base + PIXIS_VCFGEN1); 195 195 196 196 if (set) 197 - tmp = tmp | CONFIG_SYS_PIXIS_VBOOT_ENABLE; 197 + tmp = tmp | CFG_SYS_PIXIS_VBOOT_ENABLE; 198 198 else 199 - tmp = tmp & ~CONFIG_SYS_PIXIS_VBOOT_ENABLE; 199 + tmp = tmp & ~CFG_SYS_PIXIS_VBOOT_ENABLE; 200 200 201 201 out_8(pixis_base + PIXIS_VCFGEN1, tmp); 202 202 } 203 203 204 - /* CONFIG_SYS_PIXIS_VBOOT_MASK contains the bits to set in VBOOT register that 204 + /* CFG_SYS_PIXIS_VBOOT_MASK contains the bits to set in VBOOT register that 205 205 * tells the PIXIS what the alternate flash bank is. 206 206 * 207 207 * Note that it's not really a mask. It contains the actual LBMAP bits that ··· 209 209 * primary bank has these bits set to 0, and the alternate bank has these 210 210 * bits set to 1. 211 211 */ 212 - #ifndef CONFIG_SYS_PIXIS_VBOOT_MASK 213 - #define CONFIG_SYS_PIXIS_VBOOT_MASK (0x40) 212 + #ifndef CFG_SYS_PIXIS_VBOOT_MASK 213 + #define CFG_SYS_PIXIS_VBOOT_MASK (0x40) 214 214 #endif 215 215 216 216 /* Tell the PIXIS to boot from the default flash bank ··· 220 220 */ 221 221 static void clear_altbank(void) 222 222 { 223 - clrbits_8(pixis_base + PIXIS_VBOOT, CONFIG_SYS_PIXIS_VBOOT_MASK); 223 + clrbits_8(pixis_base + PIXIS_VBOOT, CFG_SYS_PIXIS_VBOOT_MASK); 224 224 } 225 225 226 226 /* Tell the PIXIS to boot from the alternate flash bank ··· 230 230 */ 231 231 static void set_altbank(void) 232 232 { 233 - setbits_8(pixis_base + PIXIS_VBOOT, CONFIG_SYS_PIXIS_VBOOT_MASK); 233 + setbits_8(pixis_base + PIXIS_VBOOT, CFG_SYS_PIXIS_VBOOT_MASK); 234 234 } 235 235 236 236 /* Reset the board with watchdog disabled.
+2 -2
board/freescale/ls1043aqds/eth.c
··· 314 314 mdio_mux[i] = EMI_NONE; 315 315 316 316 dtsec_mdio_info.regs = 317 - (struct memac_mdio_controller *)CONFIG_SYS_FM1_DTSEC_MDIO_ADDR; 317 + (struct memac_mdio_controller *)CFG_SYS_FM1_DTSEC_MDIO_ADDR; 318 318 319 319 dtsec_mdio_info.name = DEFAULT_FM_MDIO_NAME; 320 320 ··· 322 322 fm_memac_mdio_init(bis, &dtsec_mdio_info); 323 323 324 324 tgec_mdio_info.regs = 325 - (struct memac_mdio_controller *)CONFIG_SYS_FM1_TGEC_MDIO_ADDR; 325 + (struct memac_mdio_controller *)CFG_SYS_FM1_TGEC_MDIO_ADDR; 326 326 tgec_mdio_info.name = DEFAULT_FM_TGEC_MDIO_NAME; 327 327 328 328 /* Register the 10G MDIO bus */
+2 -2
board/freescale/ls1043ardb/eth.c
··· 28 28 srds_s1 >>= FSL_CHASSIS2_RCWSR4_SRDS1_PRTCL_SHIFT; 29 29 30 30 dtsec_mdio_info.regs = 31 - (struct memac_mdio_controller *)CONFIG_SYS_FM1_DTSEC_MDIO_ADDR; 31 + (struct memac_mdio_controller *)CFG_SYS_FM1_DTSEC_MDIO_ADDR; 32 32 33 33 dtsec_mdio_info.name = DEFAULT_FM_MDIO_NAME; 34 34 ··· 36 36 fm_memac_mdio_init(bis, &dtsec_mdio_info); 37 37 38 38 tgec_mdio_info.regs = 39 - (struct memac_mdio_controller *)CONFIG_SYS_FM1_TGEC_MDIO_ADDR; 39 + (struct memac_mdio_controller *)CFG_SYS_FM1_TGEC_MDIO_ADDR; 40 40 tgec_mdio_info.name = DEFAULT_FM_TGEC_MDIO_NAME; 41 41 42 42 /* Register the 10G MDIO bus */
+1 -1
board/freescale/ls1046afrwy/eth.c
··· 27 27 srds_s1 >>= FSL_CHASSIS2_RCWSR4_SRDS1_PRTCL_SHIFT; 28 28 29 29 dtsec_mdio_info.regs = 30 - (struct memac_mdio_controller *)CONFIG_SYS_FM1_DTSEC_MDIO_ADDR; 30 + (struct memac_mdio_controller *)CFG_SYS_FM1_DTSEC_MDIO_ADDR; 31 31 32 32 dtsec_mdio_info.name = DEFAULT_FM_MDIO_NAME; 33 33
+1 -1
board/freescale/ls1046aqds/eth.c
··· 285 285 mdio_mux[i] = EMI_NONE; 286 286 287 287 dtsec_mdio_info.regs = 288 - (struct memac_mdio_controller *)CONFIG_SYS_FM1_DTSEC_MDIO_ADDR; 288 + (struct memac_mdio_controller *)CFG_SYS_FM1_DTSEC_MDIO_ADDR; 289 289 290 290 dtsec_mdio_info.name = DEFAULT_FM_MDIO_NAME; 291 291
+2 -2
board/freescale/ls1046ardb/eth.c
··· 29 29 srds_s1 >>= FSL_CHASSIS2_RCWSR4_SRDS1_PRTCL_SHIFT; 30 30 31 31 dtsec_mdio_info.regs = 32 - (struct memac_mdio_controller *)CONFIG_SYS_FM1_DTSEC_MDIO_ADDR; 32 + (struct memac_mdio_controller *)CFG_SYS_FM1_DTSEC_MDIO_ADDR; 33 33 34 34 dtsec_mdio_info.name = DEFAULT_FM_MDIO_NAME; 35 35 ··· 37 37 fm_memac_mdio_init(bis, &dtsec_mdio_info); 38 38 39 39 tgec_mdio_info.regs = 40 - (struct memac_mdio_controller *)CONFIG_SYS_FM1_TGEC_MDIO_ADDR; 40 + (struct memac_mdio_controller *)CFG_SYS_FM1_TGEC_MDIO_ADDR; 41 41 tgec_mdio_info.name = DEFAULT_FM_TGEC_MDIO_NAME; 42 42 43 43 /* Register the 10G MDIO bus */
+2 -2
board/freescale/p2041rdb/eth.c
··· 139 139 initialize_lane_to_slot(); 140 140 141 141 dtsec_mdio_info.regs = 142 - (struct tsec_mii_mng *)CONFIG_SYS_FM1_DTSEC1_MDIO_ADDR; 142 + (struct tsec_mii_mng *)CFG_SYS_FM1_DTSEC1_MDIO_ADDR; 143 143 dtsec_mdio_info.name = DEFAULT_FM_MDIO_NAME; 144 144 145 145 /* Register the real 1G MDIO bus */ 146 146 fsl_pq_mdio_init(bis, &dtsec_mdio_info); 147 147 148 148 tgec_mdio_info.regs = 149 - (struct tgec_mdio_controller *)CONFIG_SYS_FM1_TGEC_MDIO_ADDR; 149 + (struct tgec_mdio_controller *)CFG_SYS_FM1_TGEC_MDIO_ADDR; 150 150 tgec_mdio_info.name = DEFAULT_FM_TGEC_MDIO_NAME; 151 151 152 152 /* Register the real 10G MDIO bus */
+2 -2
board/freescale/t102xrdb/eth_t102xrdb.c
··· 41 41 srds_s1 >>= FSL_CORENET2_RCWSR4_SRDS1_PRTCL_SHIFT; 42 42 43 43 dtsec_mdio_info.regs = 44 - (struct memac_mdio_controller *)CONFIG_SYS_FM1_DTSEC_MDIO_ADDR; 44 + (struct memac_mdio_controller *)CFG_SYS_FM1_DTSEC_MDIO_ADDR; 45 45 46 46 dtsec_mdio_info.name = DEFAULT_FM_MDIO_NAME; 47 47 ··· 49 49 fm_memac_mdio_init(bis, &dtsec_mdio_info); 50 50 51 51 tgec_mdio_info.regs = 52 - (struct memac_mdio_controller *)CONFIG_SYS_FM1_TGEC_MDIO_ADDR; 52 + (struct memac_mdio_controller *)CFG_SYS_FM1_TGEC_MDIO_ADDR; 53 53 tgec_mdio_info.name = DEFAULT_FM_TGEC_MDIO_NAME; 54 54 55 55 /* Register the 10G MDIO bus */
+1 -1
board/freescale/t104xrdb/eth.c
··· 26 26 printf("Initializing Fman\n"); 27 27 28 28 memac_mdio_info.regs = 29 - (struct memac_mdio_controller *)CONFIG_SYS_FM1_DTSEC_MDIO_ADDR; 29 + (struct memac_mdio_controller *)CFG_SYS_FM1_DTSEC_MDIO_ADDR; 30 30 memac_mdio_info.name = DEFAULT_FM_MDIO_NAME; 31 31 32 32 /* Register the real 1G MDIO bus */
+2 -2
board/freescale/t208xqds/eth_t208xqds.c
··· 474 474 mdio_mux[i] = EMI_NONE; 475 475 476 476 dtsec_mdio_info.regs = 477 - (struct memac_mdio_controller *)CONFIG_SYS_FM1_DTSEC_MDIO_ADDR; 477 + (struct memac_mdio_controller *)CFG_SYS_FM1_DTSEC_MDIO_ADDR; 478 478 479 479 dtsec_mdio_info.name = DEFAULT_FM_MDIO_NAME; 480 480 ··· 482 482 fm_memac_mdio_init(bis, &dtsec_mdio_info); 483 483 484 484 tgec_mdio_info.regs = 485 - (struct memac_mdio_controller *)CONFIG_SYS_FM1_TGEC_MDIO_ADDR; 485 + (struct memac_mdio_controller *)CFG_SYS_FM1_TGEC_MDIO_ADDR; 486 486 tgec_mdio_info.name = DEFAULT_FM_TGEC_MDIO_NAME; 487 487 488 488 /* Register the 10G MDIO bus */
+2 -2
board/freescale/t4rdb/eth.c
··· 54 54 srds_prtcl_s2 >>= FSL_CORENET2_RCWSR4_SRDS2_PRTCL_SHIFT; 55 55 56 56 dtsec_mdio_info.regs = 57 - (struct memac_mdio_controller *)CONFIG_SYS_FM2_DTSEC_MDIO_ADDR; 57 + (struct memac_mdio_controller *)CFG_SYS_FM2_DTSEC_MDIO_ADDR; 58 58 59 59 dtsec_mdio_info.name = DEFAULT_FM_MDIO_NAME; 60 60 ··· 62 62 fm_memac_mdio_init(bis, &dtsec_mdio_info); 63 63 64 64 tgec_mdio_info.regs = 65 - (struct memac_mdio_controller *)CONFIG_SYS_FM2_TGEC_MDIO_ADDR; 65 + (struct memac_mdio_controller *)CFG_SYS_FM2_TGEC_MDIO_ADDR; 66 66 tgec_mdio_info.name = DEFAULT_FM_TGEC_MDIO_NAME; 67 67 68 68 /* Register the 10G MDIO bus */
+2 -2
board/logicpd/omap3som/omap3logic.c
··· 58 58 #define LOGIC_MT28_OMAP35_ASYNC_GPMC_CONFIG6 0x09030000 59 59 #define LOGIC_MT28_OMAP35_ASYNC_GPMC_CONFIG7 0x00000C50 60 60 61 - #define CONFIG_SMC911X_BASE 0x08000000 61 + #define CFG_SMC911X_BASE 0x08000000 62 62 63 63 #ifdef CONFIG_SPL_OS_BOOT 64 64 int spl_start_uboot(void) ··· 226 226 227 227 #ifdef CONFIG_SMC911X 228 228 enable_gpmc_cs_config(gpmc_lan92xx_config, &gpmc_cfg->cs[1], 229 - CONFIG_SMC911X_BASE, GPMC_SIZE_16M); 229 + CFG_SMC911X_BASE, GPMC_SIZE_16M); 230 230 #endif 231 231 return 0; 232 232 }
+1 -1
board/renesas/blanche/blanche.c
··· 327 327 struct eth_device *dev; 328 328 uchar eth_addr[6]; 329 329 330 - rc = smc911x_initialize(0, CONFIG_SMC911X_BASE); 330 + rc = smc911x_initialize(0, CFG_SMC911X_BASE); 331 331 332 332 if (!eth_env_get_enetaddr("ethaddr", eth_addr)) { 333 333 dev = eth_get_dev_by_index(0);
+1 -1
board/sysam/amcore/amcore.c
··· 109 109 } 110 110 111 111 static struct coldfire_serial_plat mcf5307_serial_plat = { 112 - .base = CONFIG_SYS_UART_BASE, 112 + .base = CFG_SYS_UART_BASE, 113 113 .port = 0, 114 114 .baudrate = CONFIG_BAUDRATE, 115 115 };
+2 -2
board/ti/omap3evm/evm.c
··· 33 33 #define OMAP3EVM_GPIO_ETH_RST_GEN1 64 34 34 #define OMAP3EVM_GPIO_ETH_RST_GEN2 7 35 35 36 - #define CONFIG_SMC911X_BASE 0x2C000000 36 + #define CFG_SMC911X_BASE 0x2C000000 37 37 38 38 DECLARE_GLOBAL_DATA_PTR; 39 39 ··· 54 54 unsigned int smsc_id; 55 55 56 56 /* Ethernet PHY ID is stored at ID_REV register */ 57 - smsc_id = readl(CONFIG_SMC911X_BASE + 0x50) & 0xFFFF0000; 57 + smsc_id = readl(CFG_SMC911X_BASE + 0x50) & 0xFFFF0000; 58 58 printf("Read back SMSC id 0x%x\n", smsc_id); 59 59 60 60 switch (smsc_id) {
+3 -3
cmd/ximg.c
··· 27 27 #include <asm/cache.h> 28 28 #include <asm/io.h> 29 29 30 - #ifndef CONFIG_SYS_XIMG_LEN 30 + #ifndef CFG_SYS_XIMG_LEN 31 31 /* use 8MByte as default max gunzip size */ 32 - #define CONFIG_SYS_XIMG_LEN 0x800000 32 + #define CFG_SYS_XIMG_LEN 0x800000 33 33 #endif 34 34 35 35 static int ··· 52 52 size_t fit_len; 53 53 #endif 54 54 #ifdef CONFIG_GZIP 55 - uint unc_len = CONFIG_SYS_XIMG_LEN; 55 + uint unc_len = CFG_SYS_XIMG_LEN; 56 56 #endif 57 57 uint8_t comp; 58 58
+1 -1
common/command.c
··· 68 68 return 1; 69 69 if (usage == NULL) 70 70 continue; 71 - printf("%-*s- %s\n", CONFIG_SYS_HELP_CMD_WIDTH, 71 + printf("%-*s- %s\n", CFG_SYS_HELP_CMD_WIDTH, 72 72 cmd_array[i]->name, usage); 73 73 } 74 74 return 0;
+1 -1
doc/README.davinci
··· 58 58 device specific datasheet before setting up this variable. This information is 59 59 passed to the Linux kernel using the ATAG_REVISION atag. 60 60 61 - If "maxcpuclk" is not defined, the configuration CONFIG_DA850_EVM_MAX_CPU_CLK 61 + If "maxcpuclk" is not defined, the configuration CFG_DA850_EVM_MAX_CPU_CLK 62 62 is used to obtain this information. 63 63 64 64 Links
+1 -1
doc/README.fec_mxc
··· 7 7 CONFIG_MII 8 8 Must be defined if CONFIG_FEC_MXC is defined. 9 9 10 - CONFIG_FEC_MXC_SWAP_PACKET 10 + CFG_FEC_MXC_SWAP_PACKET 11 11 Forced on iff MX28. 12 12 Swaps the bytes order of all words(4 byte units) in the packet. 13 13 This should not be specified by a board file. It is cpu specific.
+1 -1
doc/develop/environment.rst
··· 18 18 U_BOOT_ENV_CALLBACK macro in your board or driver code. 19 19 20 20 These callbacks are associated with variables in one of two ways. The 21 - static list can be added to by defining CONFIG_ENV_CALLBACK_LIST_STATIC 21 + static list can be added to by defining CFG_ENV_CALLBACK_LIST_STATIC 22 22 in the board configuration to a string that defines a list of 23 23 associations. The list must be in the following format:: 24 24
+1 -1
doc/usage/netconsole.rst
··· 9 9 switched independently. 10 10 11 11 The default buffer size can be overridden by setting 12 - CONFIG_NETCONSOLE_BUFFER_SIZE. 12 + CFG_NETCONSOLE_BUFFER_SIZE. 13 13 14 14 We use an environment variable 'ncip' to set the IP address and the 15 15 port of the destination. The format is <ip_addr>:<port>. If <port> is
+3 -3
drivers/crypto/fsl/jr.c
··· 328 328 caam = &caam_st; 329 329 #endif 330 330 unsigned long long timeval = 0; 331 - unsigned long long timeout = CONFIG_USEC_DEQ_TIMEOUT; 331 + unsigned long long timeout = CFG_USEC_DEQ_TIMEOUT; 332 332 struct result op; 333 333 int ret = 0; 334 334 ··· 743 743 * creating PAMU entries corresponding to these. 744 744 * For normal build, these are set in set_liodns(). 745 745 */ 746 - liodn_ns = CONFIG_SPL_JR0_LIODN_NS & JRNSLIODN_MASK; 747 - liodn_s = CONFIG_SPL_JR0_LIODN_S & JRSLIODN_MASK; 746 + liodn_ns = CFG_SPL_JR0_LIODN_NS & JRNSLIODN_MASK; 747 + liodn_s = CFG_SPL_JR0_LIODN_S & JRSLIODN_MASK; 748 748 749 749 liodnr = sec_in32(&sec->jrliodnr[caam->jrid].ls) & 750 750 ~(JRNSLIODN_MASK | JRSLIODN_MASK);
+1 -1
drivers/crypto/fsl/jr.h
··· 15 15 16 16 #define JR_SIZE 4 17 17 /* Timeout currently defined as 10 sec */ 18 - #define CONFIG_USEC_DEQ_TIMEOUT 10000000U 18 + #define CFG_USEC_DEQ_TIMEOUT 10000000U 19 19 20 20 #define DEFAULT_JR_ID 0 21 21 #define DEFAULT_JR_LIODN 0
+5 -5
drivers/ddr/fsl/ctrl_regs.c
··· 822 822 twot_en = popts->twot_en; 823 823 } 824 824 825 - sdram_type = CONFIG_FSL_SDRAM_TYPE; 825 + sdram_type = CFG_FSL_SDRAM_TYPE; 826 826 827 827 dyn_pwr = popts->dynamic_power; 828 828 dbw = popts->data_bus_width; ··· 926 926 rcw_en = 1; 927 927 928 928 /* DDR4 can have address parity for UDIMM and discrete */ 929 - if ((CONFIG_FSL_SDRAM_TYPE != SDRAM_TYPE_DDR4) && 929 + if ((CFG_FSL_SDRAM_TYPE != SDRAM_TYPE_DDR4) && 930 930 (!popts->registered_dimm_en)) { 931 931 ap_en = 0; 932 932 } else { ··· 1188 1188 * handled by register chip and RCW settings. 1189 1189 */ 1190 1190 if ((ddr->ddr_sdram_cfg_2 & SDRAM_CFG2_AP_EN) && 1191 - ((CONFIG_FSL_SDRAM_TYPE != SDRAM_TYPE_DDR4) || 1191 + ((CFG_FSL_SDRAM_TYPE != SDRAM_TYPE_DDR4) || 1192 1192 !popts->registered_dimm_en)) { 1193 1193 if (mclk_ps >= 935) { 1194 1194 /* for DDR4-1600/1866/2133 */ ··· 1223 1223 } 1224 1224 1225 1225 if ((ddr->ddr_sdram_cfg_2 & SDRAM_CFG2_AP_EN) && 1226 - ((CONFIG_FSL_SDRAM_TYPE != SDRAM_TYPE_DDR4) || 1226 + ((CFG_FSL_SDRAM_TYPE != SDRAM_TYPE_DDR4) || 1227 1227 !popts->registered_dimm_en)) { 1228 1228 if (mclk_ps >= 935) { 1229 1229 /* for DDR4-1600/1866/2133 */ ··· 1983 1983 tcksrx = max(5U, picos_to_mclk(ctrl_num, 10000)); 1984 1984 1985 1985 if (ddr->ddr_sdram_cfg_2 & SDRAM_CFG2_AP_EN && 1986 - CONFIG_FSL_SDRAM_TYPE == SDRAM_TYPE_DDR4) { 1986 + CFG_FSL_SDRAM_TYPE == SDRAM_TYPE_DDR4) { 1987 1987 /* for DDR4 only */ 1988 1988 par_lat = (ddr->ddr_sdram_rcw_2 & 0xf) + 1; 1989 1989 debug("PAR_LAT = %u for mclk_ps = %d\n", par_lat, mclk_ps);
+3 -3
drivers/ddr/fsl/options.c
··· 753 753 defined(CONFIG_SYS_FSL_DDR4) 754 754 const struct dynamic_odt *pdodt = odt_unknown; 755 755 #endif 756 - #if (CONFIG_FSL_SDRAM_TYPE != SDRAM_TYPE_DDR4) 756 + #if (CFG_FSL_SDRAM_TYPE != SDRAM_TYPE_DDR4) 757 757 ulong ddr_freq; 758 758 #endif 759 759 ··· 1024 1024 if (hwconfig_sub_f("fsl_ddr", "parity", buf)) { 1025 1025 if (hwconfig_subarg_cmp_f("fsl_ddr", "parity", "on", buf)) { 1026 1026 if (popts->registered_dimm_en || 1027 - (CONFIG_FSL_SDRAM_TYPE == SDRAM_TYPE_DDR4)) 1027 + (CFG_FSL_SDRAM_TYPE == SDRAM_TYPE_DDR4)) 1028 1028 popts->ap_en = 1; 1029 1029 } 1030 1030 } ··· 1302 1302 1303 1303 popts->package_3ds = pdimm->package_3ds; 1304 1304 1305 - #if (CONFIG_FSL_SDRAM_TYPE != SDRAM_TYPE_DDR4) 1305 + #if (CFG_FSL_SDRAM_TYPE != SDRAM_TYPE_DDR4) 1306 1306 ddr_freq = get_ddr_freq(ctrl_num) / 1000000; 1307 1307 if (popts->registered_dimm_en) { 1308 1308 popts->rcw_override = 1;
+4 -4
drivers/fpga/virtex2.c
··· 34 34 /* 35 35 * Check for errors during configuration by default 36 36 */ 37 - #ifndef CONFIG_SYS_FPGA_CHECK_ERROR 38 - #define CONFIG_SYS_FPGA_CHECK_ERROR 37 + #ifndef CFG_SYS_FPGA_CHECK_ERROR 38 + #define CFG_SYS_FPGA_CHECK_ERROR 39 39 #endif 40 40 41 41 /* ··· 323 323 break; 324 324 } 325 325 326 - #ifdef CONFIG_SYS_FPGA_CHECK_ERROR 326 + #ifdef CFG_SYS_FPGA_CHECK_ERROR 327 327 if ((*fn->init)(cookie)) { 328 328 printf("\n%s:%d: ** Error: INIT asserted during configuration\n", 329 329 __func__, __LINE__); ··· 458 458 break; 459 459 } 460 460 461 - #ifdef CONFIG_SYS_FPGA_CHECK_ERROR 461 + #ifdef CFG_SYS_FPGA_CHECK_ERROR 462 462 if ((*fn->init)(cookie)) { 463 463 printf("\n%s:%d: ** Error: INIT asserted during configuration\n", 464 464 __func__, __LINE__);
+3 -3
drivers/fpga/zynqpl.c
··· 40 40 #define CFG_SYS_FPGA_WAIT CONFIG_SYS_HZ/100 /* 10 ms */ 41 41 #endif 42 42 43 - #ifndef CONFIG_SYS_FPGA_PROG_TIME 44 - #define CONFIG_SYS_FPGA_PROG_TIME (CONFIG_SYS_HZ * 4) /* 4 s */ 43 + #ifndef CFG_SYS_FPGA_PROG_TIME 44 + #define CFG_SYS_FPGA_PROG_TIME (CONFIG_SYS_HZ * 4) /* 4 s */ 45 45 #endif 46 46 47 47 #define DUMMY_WORD 0xffffffff ··· 181 181 182 182 return FPGA_FAIL; 183 183 } 184 - if (get_timer(ts) > CONFIG_SYS_FPGA_PROG_TIME) { 184 + if (get_timer(ts) > CFG_SYS_FPGA_PROG_TIME) { 185 185 printf("%s: Timeout wait for DMA to complete\n", 186 186 __func__); 187 187 return FPGA_FAIL;
+20 -20
drivers/gpio/mpc83xx_gpio.c
··· 9 9 #include <asm/gpio.h> 10 10 #include <asm/io.h> 11 11 12 - #ifndef CONFIG_MPC83XX_GPIO_0_INIT_DIRECTION 13 - #define CONFIG_MPC83XX_GPIO_0_INIT_DIRECTION 0 12 + #ifndef CFG_MPC83XX_GPIO_0_INIT_DIRECTION 13 + #define CFG_MPC83XX_GPIO_0_INIT_DIRECTION 0 14 14 #endif 15 - #ifndef CONFIG_MPC83XX_GPIO_1_INIT_DIRECTION 16 - #define CONFIG_MPC83XX_GPIO_1_INIT_DIRECTION 0 15 + #ifndef CFG_MPC83XX_GPIO_1_INIT_DIRECTION 16 + #define CFG_MPC83XX_GPIO_1_INIT_DIRECTION 0 17 17 #endif 18 - #ifndef CONFIG_MPC83XX_GPIO_0_INIT_OPEN_DRAIN 19 - #define CONFIG_MPC83XX_GPIO_0_INIT_OPEN_DRAIN 0 18 + #ifndef CFG_MPC83XX_GPIO_0_INIT_OPEN_DRAIN 19 + #define CFG_MPC83XX_GPIO_0_INIT_OPEN_DRAIN 0 20 20 #endif 21 - #ifndef CONFIG_MPC83XX_GPIO_1_INIT_OPEN_DRAIN 22 - #define CONFIG_MPC83XX_GPIO_1_INIT_OPEN_DRAIN 0 21 + #ifndef CFG_MPC83XX_GPIO_1_INIT_OPEN_DRAIN 22 + #define CFG_MPC83XX_GPIO_1_INIT_OPEN_DRAIN 0 23 23 #endif 24 - #ifndef CONFIG_MPC83XX_GPIO_0_INIT_VALUE 25 - #define CONFIG_MPC83XX_GPIO_0_INIT_VALUE 0 24 + #ifndef CFG_MPC83XX_GPIO_0_INIT_VALUE 25 + #define CFG_MPC83XX_GPIO_0_INIT_VALUE 0 26 26 #endif 27 - #ifndef CONFIG_MPC83XX_GPIO_1_INIT_VALUE 28 - #define CONFIG_MPC83XX_GPIO_1_INIT_VALUE 0 27 + #ifndef CFG_MPC83XX_GPIO_1_INIT_VALUE 28 + #define CFG_MPC83XX_GPIO_1_INIT_VALUE 0 29 29 #endif 30 30 31 31 static unsigned int gpio_output_value[MPC83XX_GPIO_CTRLRS]; ··· 152 152 immap_t *im = (immap_t *)CONFIG_SYS_IMMR; 153 153 154 154 #if MPC83XX_GPIO_CTRLRS >= 1 155 - out_be32(&im->gpio[0].dir, CONFIG_MPC83XX_GPIO_0_INIT_DIRECTION); 156 - out_be32(&im->gpio[0].odr, CONFIG_MPC83XX_GPIO_0_INIT_OPEN_DRAIN); 157 - out_be32(&im->gpio[0].dat, CONFIG_MPC83XX_GPIO_0_INIT_VALUE); 155 + out_be32(&im->gpio[0].dir, CFG_MPC83XX_GPIO_0_INIT_DIRECTION); 156 + out_be32(&im->gpio[0].odr, CFG_MPC83XX_GPIO_0_INIT_OPEN_DRAIN); 157 + out_be32(&im->gpio[0].dat, CFG_MPC83XX_GPIO_0_INIT_VALUE); 158 158 out_be32(&im->gpio[0].ier, 0xFFFFFFFF); /* Clear all events */ 159 159 out_be32(&im->gpio[0].imr, 0); 160 160 out_be32(&im->gpio[0].icr, 0); 161 161 #endif 162 162 163 163 #if MPC83XX_GPIO_CTRLRS >= 2 164 - out_be32(&im->gpio[1].dir, CONFIG_MPC83XX_GPIO_1_INIT_DIRECTION); 165 - out_be32(&im->gpio[1].odr, CONFIG_MPC83XX_GPIO_1_INIT_OPEN_DRAIN); 166 - out_be32(&im->gpio[1].dat, CONFIG_MPC83XX_GPIO_1_INIT_VALUE); 164 + out_be32(&im->gpio[1].dir, CFG_MPC83XX_GPIO_1_INIT_DIRECTION); 165 + out_be32(&im->gpio[1].odr, CFG_MPC83XX_GPIO_1_INIT_OPEN_DRAIN); 166 + out_be32(&im->gpio[1].dat, CFG_MPC83XX_GPIO_1_INIT_VALUE); 167 167 out_be32(&im->gpio[1].ier, 0xFFFFFFFF); /* Clear all events */ 168 168 out_be32(&im->gpio[1].imr, 0); 169 169 out_be32(&im->gpio[1].icr, 0); ··· 174 174 void mpc83xx_gpio_init_r(void) 175 175 { 176 176 #if MPC83XX_GPIO_CTRLRS >= 1 177 - gpio_output_value[0] = CONFIG_MPC83XX_GPIO_0_INIT_VALUE; 177 + gpio_output_value[0] = CFG_MPC83XX_GPIO_0_INIT_VALUE; 178 178 #endif 179 179 180 180 #if MPC83XX_GPIO_CTRLRS >= 2 181 - gpio_output_value[1] = CONFIG_MPC83XX_GPIO_1_INIT_VALUE; 181 + gpio_output_value[1] = CFG_MPC83XX_GPIO_1_INIT_VALUE; 182 182 #endif 183 183 }
+8 -8
drivers/i2c/fsl_i2c.c
··· 23 23 * released the bus. If not defined in the board header file, then use a 24 24 * generic value. 25 25 */ 26 - #ifndef CONFIG_I2C_MBB_TIMEOUT 27 - #define CONFIG_I2C_MBB_TIMEOUT 100000 26 + #ifndef CFG_I2C_MBB_TIMEOUT 27 + #define CFG_I2C_MBB_TIMEOUT 100000 28 28 #endif 29 29 30 30 /* The maximum number of microseconds we will wait for a read or write 31 31 * operation to complete. If not defined in the board header file, then use a 32 32 * generic value. 33 33 */ 34 - #ifndef CONFIG_I2C_TIMEOUT 35 - #define CONFIG_I2C_TIMEOUT 100000 34 + #ifndef CFG_I2C_TIMEOUT 35 + #define CFG_I2C_TIMEOUT 100000 36 36 #endif 37 37 38 38 #define I2C_READ_BIT 1 ··· 221 221 222 222 static int fsl_i2c_fixup(const struct fsl_i2c_base *base) 223 223 { 224 - const unsigned long long timeout = usec2ticks(CONFIG_I2C_MBB_TIMEOUT); 224 + const unsigned long long timeout = usec2ticks(CFG_I2C_MBB_TIMEOUT); 225 225 unsigned long long timeval = 0; 226 226 int ret = -1; 227 227 uint flags = 0; ··· 270 270 static void __i2c_init(const struct fsl_i2c_base *base, int speed, int 271 271 slaveadd, int i2c_clk, int busnum) 272 272 { 273 - const unsigned long long timeout = usec2ticks(CONFIG_I2C_MBB_TIMEOUT); 273 + const unsigned long long timeout = usec2ticks(CFG_I2C_MBB_TIMEOUT); 274 274 unsigned long long timeval; 275 275 276 276 writeb(0, &base->cr); /* stop I2C controller */ ··· 296 296 static int i2c_wait4bus(const struct fsl_i2c_base *base) 297 297 { 298 298 unsigned long long timeval = get_ticks(); 299 - const unsigned long long timeout = usec2ticks(CONFIG_I2C_MBB_TIMEOUT); 299 + const unsigned long long timeout = usec2ticks(CFG_I2C_MBB_TIMEOUT); 300 300 301 301 while (readb(&base->sr) & I2C_SR_MBB) { 302 302 if ((get_ticks() - timeval) > timeout) ··· 310 310 { 311 311 u32 csr; 312 312 unsigned long long timeval = get_ticks(); 313 - const unsigned long long timeout = usec2ticks(CONFIG_I2C_TIMEOUT); 313 + const unsigned long long timeout = usec2ticks(CFG_I2C_TIMEOUT); 314 314 315 315 do { 316 316 csr = readb(&base->sr);
+8 -8
drivers/i2c/lpc32xx_i2c.c
··· 20 20 * Provide default speed and slave if target did not 21 21 */ 22 22 23 - #if !defined(CONFIG_SYS_I2C_LPC32XX_SPEED) 24 - #define CONFIG_SYS_I2C_LPC32XX_SPEED 350000 23 + #if !defined(CFG_SYS_I2C_LPC32XX_SPEED) 24 + #define CFG_SYS_I2C_LPC32XX_SPEED 350000 25 25 #endif 26 26 27 - #if !defined(CONFIG_SYS_I2C_LPC32XX_SLAVE) 28 - #define CONFIG_SYS_I2C_LPC32XX_SLAVE 0 27 + #if !defined(CFG_SYS_I2C_LPC32XX_SLAVE) 28 + #define CFG_SYS_I2C_LPC32XX_SLAVE 0 29 29 #endif 30 30 31 31 /* TX register fields */ ··· 260 260 U_BOOT_I2C_ADAP_COMPLETE(lpc32xx_0, lpc32xx_i2c_init, lpc32xx_i2c_probe_chip, 261 261 lpc32xx_i2c_read, lpc32xx_i2c_write, 262 262 lpc32xx_i2c_set_bus_speed, 263 - CONFIG_SYS_I2C_LPC32XX_SPEED, 264 - CONFIG_SYS_I2C_LPC32XX_SLAVE, 263 + CFG_SYS_I2C_LPC32XX_SPEED, 264 + CFG_SYS_I2C_LPC32XX_SLAVE, 265 265 0) 266 266 267 267 U_BOOT_I2C_ADAP_COMPLETE(lpc32xx_1, lpc32xx_i2c_init, lpc32xx_i2c_probe_chip, 268 268 lpc32xx_i2c_read, lpc32xx_i2c_write, 269 269 lpc32xx_i2c_set_bus_speed, 270 - CONFIG_SYS_I2C_LPC32XX_SPEED, 271 - CONFIG_SYS_I2C_LPC32XX_SLAVE, 270 + CFG_SYS_I2C_LPC32XX_SPEED, 271 + CFG_SYS_I2C_LPC32XX_SLAVE, 272 272 1) 273 273 274 274 U_BOOT_I2C_ADAP_COMPLETE(lpc32xx_2, lpc32xx_i2c_init, NULL,
+3 -3
drivers/i2c/mvtwsi.c
··· 205 205 case 1: 206 206 return (struct mvtwsi_registers *)CFG_I2C_MVTWSI_BASE1; 207 207 #endif 208 - #ifdef CONFIG_I2C_MVTWSI_BASE2 208 + #ifdef CFG_I2C_MVTWSI_BASE2 209 209 case 2: 210 - return (struct mvtwsi_registers *)CONFIG_I2C_MVTWSI_BASE2; 210 + return (struct mvtwsi_registers *)CFG_I2C_MVTWSI_BASE2; 211 211 #endif 212 212 #ifdef CONFIG_I2C_MVTWSI_BASE3 213 213 case 3: ··· 750 750 CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE, 1) 751 751 752 752 #endif 753 - #ifdef CONFIG_I2C_MVTWSI_BASE2 753 + #ifdef CFG_I2C_MVTWSI_BASE2 754 754 U_BOOT_I2C_ADAP_COMPLETE(twsi2, twsi_i2c_init, twsi_i2c_probe, 755 755 twsi_i2c_read, twsi_i2c_write, 756 756 twsi_i2c_set_bus_speed,
+2 -2
drivers/i2c/octeon_i2c.c
··· 146 146 TWSI_STAT_IDLE = 0xf8 147 147 }; 148 148 149 - #define CONFIG_SYS_I2C_OCTEON_SLAVE_ADDR 0x77 149 + #define CFG_SYS_I2C_OCTEON_SLAVE_ADDR 0x77 150 150 151 151 enum { 152 152 PROBE_PCI = 0, /* PCI based probing */ ··· 800 800 twsi->base += twsi->data->reg_offs; 801 801 802 802 i2c_slave_addr = dev_read_u32_default(dev, "i2c-sda-hold-time-ns", 803 - CONFIG_SYS_I2C_OCTEON_SLAVE_ADDR); 803 + CFG_SYS_I2C_OCTEON_SLAVE_ADDR); 804 804 805 805 ret = clk_get_by_index(dev, 0, &twsi->clk); 806 806 if (ret < 0)
+3 -3
drivers/misc/gpio_led.c
··· 9 9 #include <status_led.h> 10 10 #include <asm/gpio.h> 11 11 12 - #ifndef CONFIG_GPIO_LED_INVERTED_TABLE 13 - #define CONFIG_GPIO_LED_INVERTED_TABLE {} 12 + #ifndef CFG_GPIO_LED_INVERTED_TABLE 13 + #define CFG_GPIO_LED_INVERTED_TABLE {} 14 14 #endif 15 15 16 - static led_id_t gpio_led_inv[] = CONFIG_GPIO_LED_INVERTED_TABLE; 16 + static led_id_t gpio_led_inv[] = CFG_GPIO_LED_INVERTED_TABLE; 17 17 18 18 static int gpio_led_gpio_value(led_id_t mask, int state) 19 19 {
+6 -6
drivers/mtd/nand/raw/kmeter1_nand.c
··· 10 10 #include <linux/delay.h> 11 11 #include <linux/mtd/rawnand.h> 12 12 13 - #define CONFIG_NAND_MODE_REG (void *)(CFG_SYS_NAND_BASE + 0x20000) 14 - #define CONFIG_NAND_DATA_REG (void *)(CFG_SYS_NAND_BASE + 0x30000) 13 + #define CFG_NAND_MODE_REG (void *)(CFG_SYS_NAND_BASE + 0x20000) 14 + #define CFG_NAND_DATA_REG (void *)(CFG_SYS_NAND_BASE + 0x30000) 15 15 16 - #define read_mode() in_8(CONFIG_NAND_MODE_REG) 17 - #define write_mode(val) out_8(CONFIG_NAND_MODE_REG, val) 18 - #define read_data() in_8(CONFIG_NAND_DATA_REG) 19 - #define write_data(val) out_8(CONFIG_NAND_DATA_REG, val) 16 + #define read_mode() in_8(CFG_NAND_MODE_REG) 17 + #define write_mode(val) out_8(CFG_NAND_MODE_REG, val) 18 + #define read_data() in_8(CFG_NAND_DATA_REG) 19 + #define write_data(val) out_8(CFG_NAND_DATA_REG, val) 20 20 21 21 #define KPN_RDY2 (1 << 7) 22 22 #define KPN_RDY1 (1 << 6)
+2 -2
drivers/mtd/spi/fsl_espi_spl.c
··· 11 11 12 12 #define ESPI_BOOT_IMAGE_SIZE 0x48 13 13 #define ESPI_BOOT_IMAGE_ADDR 0x50 14 - #define CONFIG_CFG_DATA_SECTOR 0 14 + #define CFG_CFG_DATA_SECTOR 0 15 15 16 16 void fsl_spi_spl_load_image(uint32_t offs, unsigned int size, void *vdst) 17 17 { ··· 62 62 } 63 63 memset(buf, 0, flash->page_size); 64 64 65 - spi_flash_read(flash, CONFIG_CFG_DATA_SECTOR, 65 + spi_flash_read(flash, CFG_CFG_DATA_SECTOR, 66 66 flash->page_size, (void *)buf); 67 67 offset = *(u32 *)(buf + ESPI_BOOT_IMAGE_ADDR); 68 68 /* Skip spl code */
+15 -15
drivers/net/ag7xxx.c
··· 143 143 #define AG7XXX_ETH_CFG_MII_GE0 BIT(1) 144 144 #define AG7XXX_ETH_CFG_RGMII_GE0 BIT(0) 145 145 146 - #define CONFIG_TX_DESCR_NUM 8 147 - #define CONFIG_RX_DESCR_NUM 8 148 - #define CONFIG_ETH_BUFSIZE 2048 149 - #define TX_TOTAL_BUFSIZE (CONFIG_ETH_BUFSIZE * CONFIG_TX_DESCR_NUM) 150 - #define RX_TOTAL_BUFSIZE (CONFIG_ETH_BUFSIZE * CONFIG_RX_DESCR_NUM) 146 + #define CFG_TX_DESCR_NUM 8 147 + #define CFG_RX_DESCR_NUM 8 148 + #define CFG_ETH_BUFSIZE 2048 149 + #define TX_TOTAL_BUFSIZE (CFG_ETH_BUFSIZE * CFG_TX_DESCR_NUM) 150 + #define RX_TOTAL_BUFSIZE (CFG_ETH_BUFSIZE * CFG_RX_DESCR_NUM) 151 151 152 152 /* DMA descriptor. */ 153 153 struct ag7xxx_dma_desc { ··· 162 162 }; 163 163 164 164 struct ar7xxx_eth_priv { 165 - struct ag7xxx_dma_desc tx_mac_descrtable[CONFIG_TX_DESCR_NUM]; 166 - struct ag7xxx_dma_desc rx_mac_descrtable[CONFIG_RX_DESCR_NUM]; 165 + struct ag7xxx_dma_desc tx_mac_descrtable[CFG_TX_DESCR_NUM]; 166 + struct ag7xxx_dma_desc rx_mac_descrtable[CFG_RX_DESCR_NUM]; 167 167 char txbuffs[TX_TOTAL_BUFSIZE] __aligned(ARCH_DMA_MINALIGN); 168 168 char rxbuffs[RX_TOTAL_BUFSIZE] __aligned(ARCH_DMA_MINALIGN); 169 169 ··· 408 408 u32 start, end; 409 409 int i; 410 410 411 - for (i = 0; i < CONFIG_TX_DESCR_NUM; i++) { 411 + for (i = 0; i < CFG_TX_DESCR_NUM; i++) { 412 412 curr = &priv->tx_mac_descrtable[i]; 413 - next = &priv->tx_mac_descrtable[(i + 1) % CONFIG_TX_DESCR_NUM]; 413 + next = &priv->tx_mac_descrtable[(i + 1) % CFG_TX_DESCR_NUM]; 414 414 415 - curr->data_addr = virt_to_phys(&priv->txbuffs[i * CONFIG_ETH_BUFSIZE]); 415 + curr->data_addr = virt_to_phys(&priv->txbuffs[i * CFG_ETH_BUFSIZE]); 416 416 curr->config = AG7XXX_DMADESC_IS_EMPTY; 417 417 curr->next_desc = virt_to_phys(next); 418 418 } ··· 432 432 u32 start, end; 433 433 int i; 434 434 435 - for (i = 0; i < CONFIG_RX_DESCR_NUM; i++) { 435 + for (i = 0; i < CFG_RX_DESCR_NUM; i++) { 436 436 curr = &priv->rx_mac_descrtable[i]; 437 - next = &priv->rx_mac_descrtable[(i + 1) % CONFIG_RX_DESCR_NUM]; 437 + next = &priv->rx_mac_descrtable[(i + 1) % CFG_RX_DESCR_NUM]; 438 438 439 - curr->data_addr = virt_to_phys(&priv->rxbuffs[i * CONFIG_ETH_BUFSIZE]); 439 + curr->data_addr = virt_to_phys(&priv->rxbuffs[i * CFG_ETH_BUFSIZE]); 440 440 curr->config = AG7XXX_DMADESC_IS_EMPTY; 441 441 curr->next_desc = virt_to_phys(next); 442 442 } ··· 492 492 priv->regs + AG7XXX_ETH_DMA_TX_CTRL); 493 493 494 494 /* Switch to next TX descriptor. */ 495 - priv->tx_currdescnum = (priv->tx_currdescnum + 1) % CONFIG_TX_DESCR_NUM; 495 + priv->tx_currdescnum = (priv->tx_currdescnum + 1) % CFG_TX_DESCR_NUM; 496 496 497 497 return 0; 498 498 } ··· 543 543 flush_dcache_range(start, end); 544 544 545 545 /* Switch to next RX descriptor. */ 546 - priv->rx_currdescnum = (priv->rx_currdescnum + 1) % CONFIG_RX_DESCR_NUM; 546 + priv->rx_currdescnum = (priv->rx_currdescnum + 1) % CFG_RX_DESCR_NUM; 547 547 548 548 return 0; 549 549 }
+9 -9
drivers/net/designware.c
··· 38 38 struct eth_mac_regs *mac_p = priv->mac_regs_p; 39 39 ulong start; 40 40 u16 miiaddr; 41 - int timeout = CONFIG_MDIO_TIMEOUT; 41 + int timeout = CFG_MDIO_TIMEOUT; 42 42 43 43 miiaddr = ((addr << MIIADDRSHIFT) & MII_ADDRMSK) | 44 44 ((reg << MIIREGSHIFT) & MII_REGMSK); ··· 62 62 struct eth_mac_regs *mac_p = priv->mac_regs_p; 63 63 ulong start; 64 64 u16 miiaddr; 65 - int ret = -ETIMEDOUT, timeout = CONFIG_MDIO_TIMEOUT; 65 + int ret = -ETIMEDOUT, timeout = CFG_MDIO_TIMEOUT; 66 66 67 67 writel(val, &mac_p->miidata); 68 68 miiaddr = ((addr << MIIADDRSHIFT) & MII_ADDRMSK) | ··· 229 229 struct dmamacdescr *desc_p; 230 230 u32 idx; 231 231 232 - for (idx = 0; idx < CONFIG_TX_DESCR_NUM; idx++) { 232 + for (idx = 0; idx < CFG_TX_DESCR_NUM; idx++) { 233 233 desc_p = &desc_table_p[idx]; 234 - desc_p->dmamac_addr = (ulong)&txbuffs[idx * CONFIG_ETH_BUFSIZE]; 234 + desc_p->dmamac_addr = (ulong)&txbuffs[idx * CFG_ETH_BUFSIZE]; 235 235 desc_p->dmamac_next = (ulong)&desc_table_p[idx + 1]; 236 236 237 237 #if defined(CONFIG_DW_ALTDESCRIPTOR) ··· 277 277 * GMAC data will be corrupted. */ 278 278 flush_dcache_range((ulong)rxbuffs, (ulong)rxbuffs + RX_TOTAL_BUFSIZE); 279 279 280 - for (idx = 0; idx < CONFIG_RX_DESCR_NUM; idx++) { 280 + for (idx = 0; idx < CFG_RX_DESCR_NUM; idx++) { 281 281 desc_p = &desc_table_p[idx]; 282 - desc_p->dmamac_addr = (ulong)&rxbuffs[idx * CONFIG_ETH_BUFSIZE]; 282 + desc_p->dmamac_addr = (ulong)&rxbuffs[idx * CFG_ETH_BUFSIZE]; 283 283 desc_p->dmamac_next = (ulong)&desc_table_p[idx + 1]; 284 284 285 285 desc_p->dmamac_cntl = ··· 377 377 378 378 start = get_timer(0); 379 379 while (readl(&dma_p->busmode) & DMAMAC_SRST) { 380 - if (get_timer(start) >= CONFIG_MACRESET_TIMEOUT) { 380 + if (get_timer(start) >= CFG_MACRESET_TIMEOUT) { 381 381 printf("DMA reset timeout\n"); 382 382 return -ETIMEDOUT; 383 383 } ··· 495 495 flush_dcache_range(desc_start, desc_end); 496 496 497 497 /* Test the wrap-around condition. */ 498 - if (++desc_num >= CONFIG_TX_DESCR_NUM) 498 + if (++desc_num >= CFG_TX_DESCR_NUM) 499 499 desc_num = 0; 500 500 501 501 priv->tx_currdescnum = desc_num; ··· 555 555 flush_dcache_range(desc_start, desc_end); 556 556 557 557 /* Test the wrap-around condition. */ 558 - if (++desc_num >= CONFIG_RX_DESCR_NUM) 558 + if (++desc_num >= CFG_RX_DESCR_NUM) 559 559 desc_num = 0; 560 560 priv->rx_currdescnum = desc_num; 561 561
+9 -9
drivers/net/designware.h
··· 14 14 #include <asm-generic/gpio.h> 15 15 #endif 16 16 17 - #define CONFIG_TX_DESCR_NUM 16 18 - #define CONFIG_RX_DESCR_NUM 16 19 - #define CONFIG_ETH_BUFSIZE 2048 20 - #define TX_TOTAL_BUFSIZE (CONFIG_ETH_BUFSIZE * CONFIG_TX_DESCR_NUM) 21 - #define RX_TOTAL_BUFSIZE (CONFIG_ETH_BUFSIZE * CONFIG_RX_DESCR_NUM) 17 + #define CFG_TX_DESCR_NUM 16 18 + #define CFG_RX_DESCR_NUM 16 19 + #define CFG_ETH_BUFSIZE 2048 20 + #define TX_TOTAL_BUFSIZE (CFG_ETH_BUFSIZE * CFG_TX_DESCR_NUM) 21 + #define RX_TOTAL_BUFSIZE (CFG_ETH_BUFSIZE * CFG_RX_DESCR_NUM) 22 22 23 - #define CONFIG_MACRESET_TIMEOUT (3 * CONFIG_SYS_HZ) 24 - #define CONFIG_MDIO_TIMEOUT (3 * CONFIG_SYS_HZ) 23 + #define CFG_MACRESET_TIMEOUT (3 * CONFIG_SYS_HZ) 24 + #define CFG_MDIO_TIMEOUT (3 * CONFIG_SYS_HZ) 25 25 26 26 struct eth_mac_regs { 27 27 u32 conf; /* 0x00 */ ··· 221 221 #endif 222 222 223 223 struct dw_eth_dev { 224 - struct dmamacdescr tx_mac_descrtable[CONFIG_TX_DESCR_NUM]; 225 - struct dmamacdescr rx_mac_descrtable[CONFIG_RX_DESCR_NUM]; 224 + struct dmamacdescr tx_mac_descrtable[CFG_TX_DESCR_NUM]; 225 + struct dmamacdescr rx_mac_descrtable[CFG_RX_DESCR_NUM]; 226 226 char txbuffs[TX_TOTAL_BUFSIZE] __aligned(ARCH_DMA_MINALIGN); 227 227 char rxbuffs[RX_TOTAL_BUFSIZE] __aligned(ARCH_DMA_MINALIGN); 228 228
+12 -12
drivers/net/eepro100.c
··· 168 168 unsigned char params[0]; 169 169 }; 170 170 171 - #define CONFIG_SYS_CMD_SUSPEND 0x4000 172 - #define CONFIG_SYS_CMD_IAS 0x0001 /* individual address setup */ 173 - #define CONFIG_SYS_CMD_CONFIGURE 0x0002 /* configure */ 171 + #define CFG_SYS_CMD_SUSPEND 0x4000 172 + #define CFG_SYS_CMD_IAS 0x0001 /* individual address setup */ 173 + #define CFG_SYS_CMD_CONFIGURE 0x0002 /* configure */ 174 174 175 - #define CONFIG_SYS_STATUS_C 0x8000 176 - #define CONFIG_SYS_STATUS_OK 0x2000 175 + #define CFG_SYS_STATUS_C 0x8000 176 + #define CFG_SYS_STATUS_OK 0x2000 177 177 178 178 /* Misc. */ 179 179 #define NUM_RX_DESC PKTBUFSRX ··· 411 411 invalidate_dcache_range((unsigned long)desc, 412 412 (unsigned long)desc + sizeof(*desc)); 413 413 rstat = le16_to_cpu(desc->status); 414 - if (rstat & CONFIG_SYS_STATUS_C) 414 + if (rstat & CFG_SYS_STATUS_C) 415 415 break; 416 416 417 417 if (i++ >= TOUT_LOOP) { ··· 424 424 (unsigned long)desc + sizeof(*desc)); 425 425 rstat = le16_to_cpu(desc->status); 426 426 427 - if (!(rstat & CONFIG_SYS_STATUS_OK)) { 427 + if (!(rstat & CFG_SYS_STATUS_OK)) { 428 428 printf("TX error status = 0x%08X\n", rstat); 429 429 return -EIO; 430 430 } ··· 577 577 priv->tx_next = ((priv->tx_next + 1) % NUM_TX_DESC); 578 578 579 579 cfg_cmd = &tx_ring[tx_cur]; 580 - cfg_cmd->command = cpu_to_le16(CONFIG_SYS_CMD_SUSPEND | 581 - CONFIG_SYS_CMD_CONFIGURE); 580 + cfg_cmd->command = cpu_to_le16(CFG_SYS_CMD_SUSPEND | 581 + CFG_SYS_CMD_CONFIGURE); 582 582 cfg_cmd->status = 0; 583 583 cfg_cmd->link = cpu_to_le32(phys_to_bus(priv->devno, 584 584 (u32)&tx_ring[priv->tx_next])); ··· 589 589 ret = eepro100_txcmd_send(priv, cfg_cmd); 590 590 if (ret) { 591 591 if (ret == -ETIMEDOUT) 592 - printf("Error---CONFIG_SYS_CMD_CONFIGURE: Can not reset ethernet controller.\n"); 592 + printf("Error---CFG_SYS_CMD_CONFIGURE: Can not reset ethernet controller.\n"); 593 593 goto done; 594 594 } 595 595 ··· 598 598 priv->tx_next = ((priv->tx_next + 1) % NUM_TX_DESC); 599 599 600 600 ias_cmd = &tx_ring[tx_cur]; 601 - ias_cmd->command = cpu_to_le16(CONFIG_SYS_CMD_SUSPEND | 602 - CONFIG_SYS_CMD_IAS); 601 + ias_cmd->command = cpu_to_le16(CFG_SYS_CMD_SUSPEND | 602 + CFG_SYS_CMD_IAS); 603 603 ias_cmd->status = 0; 604 604 ias_cmd->link = cpu_to_le32(phys_to_bus(priv->devno, 605 605 (u32)&tx_ring[priv->tx_next]));
+4 -4
drivers/net/fec_mxc.c
··· 59 59 * sending and after receiving. 60 60 */ 61 61 #ifdef CONFIG_MX28 62 - #define CONFIG_FEC_MXC_SWAP_PACKET 62 + #define CFG_FEC_MXC_SWAP_PACKET 63 63 #endif 64 64 65 65 #define RXDESC_PER_CACHELINE (ARCH_DMA_MINALIGN/sizeof(struct fec_bd)) ··· 76 76 77 77 #undef DEBUG 78 78 79 - #ifdef CONFIG_FEC_MXC_SWAP_PACKET 79 + #ifdef CFG_FEC_MXC_SWAP_PACKET 80 80 static void swap_packet(uint32_t *packet, int length) 81 81 { 82 82 int i; ··· 685 685 * transmission, the second will be empty and only used to stop the DMA 686 686 * engine. We also flush the packet to RAM here to avoid cache trouble. 687 687 */ 688 - #ifdef CONFIG_FEC_MXC_SWAP_PACKET 688 + #ifdef CFG_FEC_MXC_SWAP_PACKET 689 689 swap_packet((uint32_t *)packet, length); 690 690 #endif 691 691 ··· 875 875 invalidate_dcache_range(addr, end); 876 876 877 877 /* Fill the buffer and pass it to upper layers */ 878 - #ifdef CONFIG_FEC_MXC_SWAP_PACKET 878 + #ifdef CFG_FEC_MXC_SWAP_PACKET 879 879 swap_packet((uint32_t *)addr, frame_length); 880 880 #endif 881 881
+1 -1
drivers/net/fm/fm.c
··· 363 363 364 364 if (src == BOOT_SOURCE_IFC_NOR) { 365 365 addr = (void *)(CONFIG_SYS_FMAN_FW_ADDR + 366 - CONFIG_SYS_FSL_IFC_BASE); 366 + CFG_SYS_FSL_IFC_BASE); 367 367 #ifdef CONFIG_CMD_NAND 368 368 } else if (src == BOOT_SOURCE_IFC_NAND) { 369 369 size_t fw_length = CONFIG_SYS_QE_FMAN_FW_LENGTH;
+6 -6
drivers/net/mcfmii.c
··· 32 32 #define mk_mii_write(ADDR, REG, VAL) (0x50020000 | ((ADDR << 23) | \ 33 33 (REG & 0x1f) << 18) | (VAL & 0xffff)) 34 34 35 - #ifndef CONFIG_SYS_UNSPEC_PHYID 36 - # define CONFIG_SYS_UNSPEC_PHYID 0 35 + #ifndef CFG_SYS_UNSPEC_PHYID 36 + # define CFG_SYS_UNSPEC_PHYID 0 37 37 #endif 38 - #ifndef CONFIG_SYS_UNSPEC_STRID 39 - # define CONFIG_SYS_UNSPEC_STRID 0 38 + #ifndef CFG_SYS_UNSPEC_STRID 39 + # define CFG_SYS_UNSPEC_STRID 0 40 40 #endif 41 41 42 42 typedef struct phy_info_struct { ··· 58 58 {0x20005C90, "N83848"}, /* National 83848 */ 59 59 {0x20005CA2, "N83849"}, /* National 83849 */ 60 60 {0x01814400, "QS6612"}, /* QS6612 */ 61 - #if defined(CONFIG_SYS_UNSPEC_PHYID) && defined(CONFIG_SYS_UNSPEC_STRID) 62 - {CONFIG_SYS_UNSPEC_PHYID, CONFIG_SYS_UNSPEC_STRID}, 61 + #if defined(CFG_SYS_UNSPEC_PHYID) && defined(CFG_SYS_UNSPEC_STRID) 62 + {CFG_SYS_UNSPEC_PHYID, CFG_SYS_UNSPEC_STRID}, 63 63 #endif 64 64 {0, 0} 65 65 };
+6 -6
drivers/net/mt7628-eth.c
··· 127 127 128 128 #define MTK_QDMA_PAGE_SIZE 2048 129 129 130 - #define CONFIG_MDIO_TIMEOUT 100 131 - #define CONFIG_DMA_STOP_TIMEOUT 100 132 - #define CONFIG_TX_DMA_TIMEOUT 100 130 + #define CFG_MDIO_TIMEOUT 100 131 + #define CFG_DMA_STOP_TIMEOUT 100 132 + #define CFG_TX_DMA_TIMEOUT 100 133 133 134 134 struct mt7628_eth_dev { 135 135 void __iomem *base; /* frame engine base address */ ··· 162 162 int ret; 163 163 164 164 ret = wait_for_bit_le32(base + MT7628_SWITCH_PCR1, mask, mask_set, 165 - CONFIG_MDIO_TIMEOUT, false); 165 + CFG_MDIO_TIMEOUT, false); 166 166 if (ret) { 167 167 printf("MDIO operation timeout!\n"); 168 168 return -ETIMEDOUT; ··· 352 352 /* Wait for DMA to stop */ 353 353 ret = wait_for_bit_le32(base + PDMA_GLO_CFG, 354 354 RX_DMA_BUSY | TX_DMA_BUSY, false, 355 - CONFIG_DMA_STOP_TIMEOUT, false); 355 + CFG_DMA_STOP_TIMEOUT, false); 356 356 if (ret) 357 357 printf("DMA stop timeout error!\n"); 358 358 } ··· 399 399 400 400 /* Check if buffer is ready for next TX DMA */ 401 401 ret = wait_for_bit_le32(&priv->tx_ring[idx].txd2, TX_DMA_DONE, true, 402 - CONFIG_TX_DMA_TIMEOUT, false); 402 + CFG_TX_DMA_TIMEOUT, false); 403 403 if (ret) { 404 404 printf("TX: DMA still busy on buffer %d\n", idx); 405 405 return ret;
+1 -1
drivers/net/mvpp2.c
··· 587 587 588 588 /* Default number of RXQs in use */ 589 589 #define MVPP2_DEFAULT_RXQ 1 590 - #define CONFIG_MV_ETH_RXQ 8 /* increment by 8 */ 590 + #define CFG_MV_ETH_RXQ 8 /* increment by 8 */ 591 591 592 592 /* Max number of Rx descriptors */ 593 593 #define MVPP2_MAX_RXD 16
+3 -3
drivers/net/netconsole.c
··· 11 11 #include <stdio_dev.h> 12 12 #include <net.h> 13 13 14 - #ifndef CONFIG_NETCONSOLE_BUFFER_SIZE 15 - #define CONFIG_NETCONSOLE_BUFFER_SIZE 512 14 + #ifndef CFG_NETCONSOLE_BUFFER_SIZE 15 + #define CFG_NETCONSOLE_BUFFER_SIZE 512 16 16 #endif 17 17 18 - static char input_buffer[CONFIG_NETCONSOLE_BUFFER_SIZE]; 18 + static char input_buffer[CFG_NETCONSOLE_BUFFER_SIZE]; 19 19 static int input_size; /* char count in input buffer */ 20 20 static int input_offset; /* offset to valid chars in input buffer */ 21 21 static int input_recursion;
+16 -16
drivers/net/npcm750_eth.c
··· 18 18 #include <linux/iopoll.h> 19 19 20 20 #define MAC_ADDR_SIZE 6 21 - #define CONFIG_TX_DESCR_NUM 32 22 - #define CONFIG_RX_DESCR_NUM 32 21 + #define CFG_TX_DESCR_NUM 32 22 + #define CFG_RX_DESCR_NUM 32 23 23 24 24 #define TX_TOTAL_BUFSIZE \ 25 - ((CONFIG_TX_DESCR_NUM + 1) * PKTSIZE_ALIGN + PKTALIGN) 25 + ((CFG_TX_DESCR_NUM + 1) * PKTSIZE_ALIGN + PKTALIGN) 26 26 #define RX_TOTAL_BUFSIZE \ 27 - ((CONFIG_RX_DESCR_NUM + 1) * PKTSIZE_ALIGN + PKTALIGN) 27 + ((CFG_RX_DESCR_NUM + 1) * PKTSIZE_ALIGN + PKTALIGN) 28 28 29 - #define CONFIG_MDIO_TIMEOUT (3 * CONFIG_SYS_HZ) 29 + #define CFG_MDIO_TIMEOUT (3 * CONFIG_SYS_HZ) 30 30 31 31 struct npcm750_rxbd { 32 32 unsigned int sl; ··· 101 101 }; 102 102 103 103 struct npcm750_eth_dev { 104 - struct npcm750_txbd tdesc[CONFIG_TX_DESCR_NUM] __aligned(ARCH_DMA_MINALIGN); 105 - struct npcm750_rxbd rdesc[CONFIG_RX_DESCR_NUM] __aligned(ARCH_DMA_MINALIGN); 104 + struct npcm750_txbd tdesc[CFG_TX_DESCR_NUM] __aligned(ARCH_DMA_MINALIGN); 105 + struct npcm750_rxbd rdesc[CFG_RX_DESCR_NUM] __aligned(ARCH_DMA_MINALIGN); 106 106 u8 txbuffs[TX_TOTAL_BUFSIZE] __aligned(ARCH_DMA_MINALIGN); 107 107 u8 rxbuffs[RX_TOTAL_BUFSIZE] __aligned(ARCH_DMA_MINALIGN); 108 108 struct emc_regs *emc_regs_p; ··· 279 279 struct npcm750_eth_dev *priv = (struct npcm750_eth_dev *)bus->priv; 280 280 struct emc_regs *reg = priv->emc_regs_p; 281 281 u32 start, val; 282 - int timeout = CONFIG_MDIO_TIMEOUT; 282 + int timeout = CFG_MDIO_TIMEOUT; 283 283 284 284 val = (addr << 0x08) | regs | PHYBUSY | (MIIDA_MDCCR_60 << 20); 285 285 writel(val, &reg->miida); ··· 301 301 struct npcm750_eth_dev *priv = (struct npcm750_eth_dev *)bus->priv; 302 302 struct emc_regs *reg = priv->emc_regs_p; 303 303 ulong start; 304 - int ret = -ETIMEDOUT, timeout = CONFIG_MDIO_TIMEOUT; 304 + int ret = -ETIMEDOUT, timeout = CFG_MDIO_TIMEOUT; 305 305 306 306 writel(val, &reg->miid); 307 307 writel((addr << 0x08) | regs | PHYBUSY | PHYWR | (MIIDA_MDCCR_60 << 20), &reg->miida); ··· 354 354 writel((u32)desc_table_p, &reg->txdlsa); 355 355 priv->curr_txd = desc_table_p; 356 356 357 - for (idx = 0; idx < CONFIG_TX_DESCR_NUM; idx++) { 357 + for (idx = 0; idx < CFG_TX_DESCR_NUM; idx++) { 358 358 desc_p = &desc_table_p[idx]; 359 359 desc_p->buffer = (u32)&txbuffs[idx * PKTSIZE_ALIGN]; 360 360 desc_p->sl = 0; 361 361 desc_p->mode = 0; 362 362 desc_p->mode = TX_OWEN_CPU | PADDINGMODE | CRCMODE | MACTXINTEN; 363 - if (idx < (CONFIG_TX_DESCR_NUM - 1)) 363 + if (idx < (CFG_TX_DESCR_NUM - 1)) 364 364 desc_p->next = (u32)&desc_table_p[idx + 1]; 365 365 else 366 366 desc_p->next = (u32)&priv->tdesc[0]; 367 367 } 368 368 flush_dcache_range((ulong)&desc_table_p[0], 369 - (ulong)&desc_table_p[CONFIG_TX_DESCR_NUM]); 369 + (ulong)&desc_table_p[CFG_TX_DESCR_NUM]); 370 370 } 371 371 372 372 static void npcm750_rx_descs_init(struct npcm750_eth_dev *priv) ··· 378 378 u32 idx; 379 379 380 380 flush_dcache_range((ulong)priv->rxbuffs[0], 381 - (ulong)priv->rxbuffs[CONFIG_RX_DESCR_NUM]); 381 + (ulong)priv->rxbuffs[CFG_RX_DESCR_NUM]); 382 382 383 383 writel((u32)desc_table_p, &reg->rxdlsa); 384 384 priv->curr_rxd = desc_table_p; 385 385 386 - for (idx = 0; idx < CONFIG_RX_DESCR_NUM; idx++) { 386 + for (idx = 0; idx < CFG_RX_DESCR_NUM; idx++) { 387 387 desc_p = &desc_table_p[idx]; 388 388 desc_p->sl = RX_OWEN_DMA; 389 389 desc_p->buffer = (u32)&rxbuffs[idx * PKTSIZE_ALIGN]; 390 - if (idx < (CONFIG_RX_DESCR_NUM - 1)) 390 + if (idx < (CFG_RX_DESCR_NUM - 1)) 391 391 desc_p->next = (u32)&desc_table_p[idx + 1]; 392 392 else 393 393 desc_p->next = (u32)&priv->rdesc[0]; 394 394 } 395 395 flush_dcache_range((ulong)&desc_table_p[0], 396 - (ulong)&desc_table_p[CONFIG_RX_DESCR_NUM]); 396 + (ulong)&desc_table_p[CFG_RX_DESCR_NUM]); 397 397 } 398 398 399 399 static void npcm750_set_fifo_threshold(struct npcm750_eth_dev *priv)
+3 -3
drivers/net/octeon/octeon_eth.c
··· 58 58 #include <mach/cvmx-mdio.h> 59 59 60 60 /** Maximum receive packet size (hardware default is 1536) */ 61 - #define CONFIG_OCTEON_NETWORK_MRU 1536 61 + #define CFG_OCTEON_NETWORK_MRU 1536 62 62 63 63 #define OCTEON_BOOTLOADER_NAMED_BLOCK_TMP_PREFIX "__tmp" 64 64 ··· 199 199 */ 200 200 static void cvm_oct_configure_common_hw(void) 201 201 { 202 - int mru = env_get_ulong("octeon_mru", 0, CONFIG_OCTEON_NETWORK_MRU); 202 + int mru = env_get_ulong("octeon_mru", 0, CFG_OCTEON_NETWORK_MRU); 203 203 int packet_pool_size = CVMX_FPA_PACKET_POOL_SIZE; 204 204 205 205 if (mru > packet_pool_size) ··· 224 224 cvmx_helper_initialize_packet_io_local(); 225 225 226 226 /* The MRU defaults to 1536 bytes by the hardware. Setting 227 - * CONFIG_OCTEON_NETWORK_MRU allows this to be overridden. 227 + * CFG_OCTEON_NETWORK_MRU allows this to be overridden. 228 228 */ 229 229 if (octeon_has_feature(OCTEON_FEATURE_PKI)) { 230 230 struct cvmx_pki_global_config gbl_cfg;
+4 -4
drivers/net/qe/dm_qe_uec.c
··· 20 20 #define QE_UEC_DRIVER_NAME "ucc_geth" 21 21 22 22 /* Default UTBIPAR SMI address */ 23 - #ifndef CONFIG_UTBIPAR_INIT_TBIPA 24 - #define CONFIG_UTBIPAR_INIT_TBIPA 0x1F 23 + #ifndef CFG_UTBIPAR_INIT_TBIPA 24 + #define CFG_UTBIPAR_INIT_TBIPA 0x1F 25 25 #endif 26 26 27 27 static int uec_mac_enable(struct uec_priv *uec, comm_dir_e mode) ··· 840 840 utbipar = in_be32(&uec_regs->utbipar); 841 841 utbipar &= ~UTBIPAR_PHY_ADDRESS_MASK; 842 842 843 - /* Initialize UTBIPAR address to CONFIG_UTBIPAR_INIT_TBIPA for ALL UEC. 843 + /* Initialize UTBIPAR address to CFG_UTBIPAR_INIT_TBIPA for ALL UEC. 844 844 * This frees up the remaining SMI addresses for use. 845 845 */ 846 - utbipar |= CONFIG_UTBIPAR_INIT_TBIPA << UTBIPAR_PHY_ADDRESS_SHIFT; 846 + utbipar |= CFG_UTBIPAR_INIT_TBIPA << UTBIPAR_PHY_ADDRESS_SHIFT; 847 847 out_be32(&uec_regs->utbipar, utbipar); 848 848 849 849 /* Allocate Tx BDs */
+19 -19
drivers/net/sun8i_emac.c
··· 43 43 #define MDIO_CMD_MII_CLK_CSR_DIV_128 0x3 44 44 #define MDIO_CMD_MII_CLK_CSR_SHIFT 20 45 45 46 - #define CONFIG_TX_DESCR_NUM 32 47 - #define CONFIG_RX_DESCR_NUM 32 48 - #define CONFIG_ETH_BUFSIZE 2048 /* Note must be dma aligned */ 46 + #define CFG_TX_DESCR_NUM 32 47 + #define CFG_RX_DESCR_NUM 32 48 + #define CFG_ETH_BUFSIZE 2048 /* Note must be dma aligned */ 49 49 50 50 /* 51 51 * The datasheet says that each descriptor can transfers up to 4096 bytes 52 52 * But later, the register documentation reduces that value to 2048, 53 53 * using 2048 cause strange behaviours and even BSP driver use 2047 54 54 */ 55 - #define CONFIG_ETH_RXSIZE 2044 /* Note must fit in ETH_BUFSIZE */ 55 + #define CFG_ETH_RXSIZE 2044 /* Note must fit in ETH_BUFSIZE */ 56 56 57 - #define TX_TOTAL_BUFSIZE (CONFIG_ETH_BUFSIZE * CONFIG_TX_DESCR_NUM) 58 - #define RX_TOTAL_BUFSIZE (CONFIG_ETH_BUFSIZE * CONFIG_RX_DESCR_NUM) 57 + #define TX_TOTAL_BUFSIZE (CFG_ETH_BUFSIZE * CFG_TX_DESCR_NUM) 58 + #define RX_TOTAL_BUFSIZE (CFG_ETH_BUFSIZE * CFG_RX_DESCR_NUM) 59 59 60 60 #define H3_EPHY_DEFAULT_VALUE 0x58000 61 61 #define H3_EPHY_DEFAULT_MASK GENMASK(31, 15) ··· 75 75 #define SC_ERXDC_MASK GENMASK(9, 5) 76 76 #define SC_ERXDC_OFFSET 5 77 77 78 - #define CONFIG_MDIO_TIMEOUT (3 * CONFIG_SYS_HZ) 78 + #define CFG_MDIO_TIMEOUT (3 * CONFIG_SYS_HZ) 79 79 80 80 #define AHB_GATE_OFFSET_EPHY 0 81 81 ··· 143 143 } __aligned(ARCH_DMA_MINALIGN); 144 144 145 145 struct emac_eth_dev { 146 - struct emac_dma_desc rx_chain[CONFIG_TX_DESCR_NUM]; 147 - struct emac_dma_desc tx_chain[CONFIG_RX_DESCR_NUM]; 146 + struct emac_dma_desc rx_chain[CFG_TX_DESCR_NUM]; 147 + struct emac_dma_desc tx_chain[CFG_RX_DESCR_NUM]; 148 148 char rxbuffer[RX_TOTAL_BUFSIZE] __aligned(ARCH_DMA_MINALIGN); 149 149 char txbuffer[TX_TOTAL_BUFSIZE] __aligned(ARCH_DMA_MINALIGN); 150 150 ··· 209 209 210 210 ret = wait_for_bit_le32(priv->mac_reg + EMAC_MII_CMD, 211 211 MDIO_CMD_MII_BUSY, false, 212 - CONFIG_MDIO_TIMEOUT, true); 212 + CFG_MDIO_TIMEOUT, true); 213 213 if (ret < 0) 214 214 return ret; 215 215 ··· 244 244 245 245 return wait_for_bit_le32(priv->mac_reg + EMAC_MII_CMD, 246 246 MDIO_CMD_MII_BUSY, false, 247 - CONFIG_MDIO_TIMEOUT, true); 247 + CFG_MDIO_TIMEOUT, true); 248 248 } 249 249 250 250 static int sun8i_eth_write_hwaddr(struct udevice *dev) ··· 412 412 invalidate_dcache_range((uintptr_t)rxbuffs, 413 413 (uintptr_t)rxbuffs + sizeof(priv->rxbuffer)); 414 414 415 - for (i = 0; i < CONFIG_RX_DESCR_NUM; i++) { 415 + for (i = 0; i < CFG_RX_DESCR_NUM; i++) { 416 416 desc_p = &desc_table_p[i]; 417 - desc_p->buf_addr = (uintptr_t)&rxbuffs[i * CONFIG_ETH_BUFSIZE]; 417 + desc_p->buf_addr = (uintptr_t)&rxbuffs[i * CFG_ETH_BUFSIZE]; 418 418 desc_p->next = (uintptr_t)&desc_table_p[i + 1]; 419 - desc_p->ctl_size = CONFIG_ETH_RXSIZE; 419 + desc_p->ctl_size = CFG_ETH_RXSIZE; 420 420 desc_p->status = EMAC_DESC_OWN_DMA; 421 421 } 422 422 ··· 438 438 struct emac_dma_desc *desc_p; 439 439 int i; 440 440 441 - for (i = 0; i < CONFIG_TX_DESCR_NUM; i++) { 441 + for (i = 0; i < CFG_TX_DESCR_NUM; i++) { 442 442 desc_p = &desc_table_p[i]; 443 - desc_p->buf_addr = (uintptr_t)&txbuffs[i * CONFIG_ETH_BUFSIZE]; 443 + desc_p->buf_addr = (uintptr_t)&txbuffs[i * CFG_ETH_BUFSIZE]; 444 444 desc_p->next = (uintptr_t)&desc_table_p[i + 1]; 445 445 desc_p->ctl_size = 0; 446 446 desc_p->status = 0; ··· 541 541 return 0; 542 542 } 543 543 544 - if (length > CONFIG_ETH_RXSIZE) { 544 + if (length > CFG_ETH_RXSIZE) { 545 545 debug("RX: Too large packet (%d bytes)\n", length); 546 546 return 0; 547 547 } ··· 575 575 cache_clean_descriptor(desc_p); 576 576 577 577 /* Move to next Descriptor and wrap around */ 578 - if (++desc_num >= CONFIG_TX_DESCR_NUM) 578 + if (++desc_num >= CFG_TX_DESCR_NUM) 579 579 desc_num = 0; 580 580 priv->tx_currdescnum = desc_num; 581 581 ··· 701 701 cache_clean_descriptor(desc_p); 702 702 703 703 /* Move to next desc and wrap-around condition. */ 704 - if (++desc_num >= CONFIG_RX_DESCR_NUM) 704 + if (++desc_num >= CFG_RX_DESCR_NUM) 705 705 desc_num = 0; 706 706 priv->rx_currdescnum = desc_num; 707 707
+10 -10
drivers/net/ti/davinci_emac.c
··· 65 65 #define emac_gigabit_enable(phy_addr) /* no gigabit to enable */ 66 66 #endif 67 67 68 - #if !defined(CONFIG_SYS_EMAC_TI_CLKDIV) 69 - #define CONFIG_SYS_EMAC_TI_CLKDIV ((EMAC_MDIO_BUS_FREQ / \ 68 + #if !defined(CFG_SYS_EMAC_TI_CLKDIV) 69 + #define CFG_SYS_EMAC_TI_CLKDIV ((EMAC_MDIO_BUS_FREQ / \ 70 70 EMAC_MDIO_CLOCK_FREQ) - 1) 71 71 #endif 72 72 ··· 98 98 static unsigned char emac_rx_buffers[EMAC_MAX_RX_BUFFERS * EMAC_RXBUF_SIZE] 99 99 __aligned(ARCH_DMA_MINALIGN); 100 100 101 - #ifndef CONFIG_SYS_DAVINCI_EMAC_PHY_COUNT 102 - #define CONFIG_SYS_DAVINCI_EMAC_PHY_COUNT 3 101 + #ifndef CFG_SYS_DAVINCI_EMAC_PHY_COUNT 102 + #define CFG_SYS_DAVINCI_EMAC_PHY_COUNT 3 103 103 #endif 104 104 105 105 /* PHY address for a discovered PHY (0xff - not found) */ 106 - static u_int8_t active_phy_addr[CONFIG_SYS_DAVINCI_EMAC_PHY_COUNT]; 106 + static u_int8_t active_phy_addr[CFG_SYS_DAVINCI_EMAC_PHY_COUNT]; 107 107 108 108 /* number of PHY found active */ 109 109 static u_int8_t num_phy; 110 110 111 - phy_t phy[CONFIG_SYS_DAVINCI_EMAC_PHY_COUNT]; 111 + phy_t phy[CFG_SYS_DAVINCI_EMAC_PHY_COUNT]; 112 112 113 113 static int davinci_emac_write_hwaddr(struct udevice *dev) 114 114 { ··· 152 152 { 153 153 u_int32_t clkdiv; 154 154 155 - clkdiv = CONFIG_SYS_EMAC_TI_CLKDIV; 155 + clkdiv = CFG_SYS_EMAC_TI_CLKDIV; 156 156 157 157 writel((clkdiv & 0xff) | 158 158 MDIO_CONTROL_ENABLE | ··· 176 176 int j; 177 177 unsigned int count = 0; 178 178 179 - for (i = 0; i < CONFIG_SYS_DAVINCI_EMAC_PHY_COUNT; i++) 179 + for (i = 0; i < CFG_SYS_DAVINCI_EMAC_PHY_COUNT; i++) 180 180 active_phy_addr[i] = 0xff; 181 181 182 182 udelay(1000); ··· 190 190 for (i = 0, j = 0; i < 32; i++) 191 191 if (phy_act_state & (1 << i)) { 192 192 count++; 193 - if (count <= CONFIG_SYS_DAVINCI_EMAC_PHY_COUNT) { 193 + if (count <= CFG_SYS_DAVINCI_EMAC_PHY_COUNT) { 194 194 active_phy_addr[j++] = i; 195 195 } else { 196 196 printf("%s: to many PHYs detected.\n", ··· 501 501 writel(1, &adap_emac->RXUNICASTSET); 502 502 503 503 /* Init MDIO & get link state */ 504 - clkdiv = CONFIG_SYS_EMAC_TI_CLKDIV; 504 + clkdiv = CFG_SYS_EMAC_TI_CLKDIV; 505 505 writel((clkdiv & 0xff) | MDIO_CONTROL_ENABLE | MDIO_CONTROL_FAULT, 506 506 &adap_mdio->CONTROL); 507 507
+4 -4
drivers/phy/phy-ti-am654.c
··· 28 28 #define CMU_MASTER_CDN_O BIT(24) 29 29 30 30 #define COMLANE_R138 0xb38 31 - #define CONFIG_VERSION_REG_MASK GENMASK(23, 16) 32 - #define CONFIG_VERSION_REG_SHIFT 16 31 + #define CFG_VERSION_REG_MASK GENMASK(23, 16) 32 + #define CFG_VERSION_REG_SHIFT 16 33 33 #define VERSION 0x70 34 34 35 35 #define COMLANE_R190 0xb90 ··· 286 286 u32 mask; 287 287 u32 val; 288 288 289 - mask = CONFIG_VERSION_REG_MASK; 290 - val = VERSION << CONFIG_VERSION_REG_SHIFT; 289 + mask = CFG_VERSION_REG_MASK; 290 + val = VERSION << CFG_VERSION_REG_SHIFT; 291 291 regmap_update_bits(phy->regmap, COMLANE_R138, mask, val); 292 292 293 293 val = CMU_MASTER_CDN_O;
+1 -1
drivers/pinctrl/nxp/pinctrl-imx.h
··· 45 45 46 46 #define SHARE_MUX_CONF_REG 0x1 47 47 #define ZERO_OFFSET_VALID 0x2 48 - #define CONFIG_IBE_OBE 0x4 48 + #define CFG_IBE_OBE 0x4 49 49 #define IMX8_USE_SCU 0x8 50 50 51 51 #define IOMUXC_CONFIG_SION (0x1 << 4)
+2 -2
drivers/pinctrl/nxp/pinctrl-imx7ulp.c
··· 12 12 #include "pinctrl-imx.h" 13 13 14 14 static struct imx_pinctrl_soc_info imx7ulp_pinctrl_soc_info0 = { 15 - .flags = ZERO_OFFSET_VALID | SHARE_MUX_CONF_REG | CONFIG_IBE_OBE, 15 + .flags = ZERO_OFFSET_VALID | SHARE_MUX_CONF_REG | CFG_IBE_OBE, 16 16 }; 17 17 18 18 static struct imx_pinctrl_soc_info imx7ulp_pinctrl_soc_info1 = { 19 - .flags = ZERO_OFFSET_VALID | SHARE_MUX_CONF_REG | CONFIG_IBE_OBE, 19 + .flags = ZERO_OFFSET_VALID | SHARE_MUX_CONF_REG | CFG_IBE_OBE, 20 20 }; 21 21 22 22 static int imx7ulp_pinctrl_probe(struct udevice *dev)
+2 -2
drivers/pinctrl/nxp/pinctrl-imx8ulp.c
··· 11 11 #include "pinctrl-imx.h" 12 12 13 13 static struct imx_pinctrl_soc_info imx8ulp_pinctrl_soc_info0 = { 14 - .flags = ZERO_OFFSET_VALID | SHARE_MUX_CONF_REG | CONFIG_IBE_OBE, 14 + .flags = ZERO_OFFSET_VALID | SHARE_MUX_CONF_REG | CFG_IBE_OBE, 15 15 }; 16 16 17 17 static struct imx_pinctrl_soc_info imx8ulp_pinctrl_soc_info1 = { 18 - .flags = ZERO_OFFSET_VALID | SHARE_MUX_CONF_REG | CONFIG_IBE_OBE, 18 + .flags = ZERO_OFFSET_VALID | SHARE_MUX_CONF_REG | CFG_IBE_OBE, 19 19 }; 20 20 21 21 static int imx8ulp_pinctrl_probe(struct udevice *dev)
+3 -3
drivers/pinctrl/nxp/pinctrl-mxs.c
··· 94 94 95 95 config = mxs_dt_node_to_map(conf); 96 96 97 - ma = CONFIG_TO_MA(config); 98 - vol = CONFIG_TO_VOL(config); 99 - pull = CONFIG_TO_PULL(config); 97 + ma = CFG_TO_MA(config); 98 + vol = CFG_TO_VOL(config); 99 + pull = CFG_TO_PULL(config); 100 100 101 101 for (i = 0; i < npins; i++) { 102 102 int pinid, bank, pin, shift;
+3 -3
drivers/pinctrl/nxp/pinctrl-mxs.h
··· 43 43 #define VOL_SHIFT 3 44 44 #define MA_PRESENT (1 << 2) 45 45 #define MA_SHIFT 0 46 - #define CONFIG_TO_PULL(c) ((c) >> PULL_SHIFT & 0x1) 47 - #define CONFIG_TO_VOL(c) ((c) >> VOL_SHIFT & 0x1) 48 - #define CONFIG_TO_MA(c) ((c) >> MA_SHIFT & 0x3) 46 + #define CFG_TO_PULL(c) ((c) >> PULL_SHIFT & 0x1) 47 + #define CFG_TO_VOL(c) ((c) >> VOL_SHIFT & 0x1) 48 + #define CFG_TO_MA(c) ((c) >> MA_SHIFT & 0x3) 49 49 50 50 struct mxs_regs { 51 51 u16 muxsel;
+4 -4
drivers/pinctrl/pinctrl-zynqmp.c
··· 73 73 74 74 /** 75 75 * enum zynqmp_pin_config_param - possible pin configuration parameters 76 - * @PIN_CONFIG_IOSTANDARD: if the pin can select an IO standard, 76 + * @PIN_CFG_IOSTANDARD: if the pin can select an IO standard, 77 77 * the argument to this parameter (on a 78 78 * custom format) tells the driver which 79 79 * alternative IO standard to use ··· 81 81 * to select schmitt or cmos input for MIO pins 82 82 */ 83 83 enum zynqmp_pin_config_param { 84 - PIN_CONFIG_IOSTANDARD = PIN_CONFIG_END + 1, 84 + PIN_CFG_IOSTANDARD = PIN_CONFIG_END + 1, 85 85 PIN_CONFIG_SCHMITTCMOS, 86 86 }; 87 87 ··· 452 452 param = PM_PINCTRL_CONFIG_DRIVE_STRENGTH; 453 453 ret = zynqmp_pm_pinctrl_set_config(pin, param, value); 454 454 break; 455 - case PIN_CONFIG_IOSTANDARD: 455 + case PIN_CFG_IOSTANDARD: 456 456 param = PM_PINCTRL_CONFIG_VOLTAGE_STATUS; 457 457 ret = zynqmp_pm_pinctrl_get_config(pin, param, &value); 458 458 if (arg != value) ··· 608 608 { "slew-rate", PIN_CONFIG_SLEW_RATE, 0 }, 609 609 { "skew-delay", PIN_CONFIG_SKEW_DELAY, 0 }, 610 610 /* zynqmp specific */ 611 - {"io-standard", PIN_CONFIG_IOSTANDARD, IO_STANDARD_LVCMOS18}, 611 + {"io-standard", PIN_CFG_IOSTANDARD, IO_STANDARD_LVCMOS18}, 612 612 {"schmitt-cmos", PIN_CONFIG_SCHMITTCMOS, PM_PINCTRL_INPUT_TYPE_SCHMITT}, 613 613 }; 614 614
+2 -2
drivers/qe/qe.c
··· 185 185 * which do not have ROM in QE. 186 186 */ 187 187 qe_upload_firmware((const void *)(CONFIG_SYS_QE_FW_ADDR + 188 - CONFIG_SYS_FSL_IFC_BASE)); 188 + CFG_SYS_FSL_IFC_BASE)); 189 189 190 190 /* enable the microcode in IRAM */ 191 191 out_be32(&qe_immr->iram.iready, QE_IRAM_READY); ··· 234 234 235 235 if (src == BOOT_SOURCE_IFC_NOR) 236 236 addr = (void *)(CONFIG_SYS_QE_FW_ADDR + 237 - CONFIG_SYS_FSL_IFC_BASE); 237 + CFG_SYS_FSL_IFC_BASE); 238 238 239 239 if (src == BOOT_SOURCE_QSPI_NOR) 240 240 addr = (void *)(CONFIG_SYS_QE_FW_ADDR +
+6 -6
drivers/ram/aspeed/sdram_ast2600.c
··· 104 104 * -> WL = AL + CWL + PL = CWL 105 105 * -> RL = AL + CL + PL = CL 106 106 */ 107 - #define CONFIG_WL 9 108 - #define CONFIG_RL 12 109 - #define T_RDDATA_EN ((CONFIG_RL - 2) << 8) 110 - #define T_PHY_WRLAT (CONFIG_WL - 2) 107 + #define CFG_WL 9 108 + #define CFG_RL 12 109 + #define T_RDDATA_EN ((CFG_RL - 2) << 8) 110 + #define T_PHY_WRLAT (CFG_WL - 2) 111 111 112 112 /* MR0 */ 113 113 #define MR0_CL_12 (BIT(4) | BIT(2)) ··· 974 974 /* update CL and WL */ 975 975 reg = readl(&regs->ac_timing[1]); 976 976 reg &= ~(SDRAM_WL_SETTING | SDRAM_CL_SETTING); 977 - reg |= FIELD_PREP(SDRAM_WL_SETTING, CONFIG_WL - 5) | 978 - FIELD_PREP(SDRAM_CL_SETTING, CONFIG_RL - 5); 977 + reg |= FIELD_PREP(SDRAM_WL_SETTING, CFG_WL - 5) | 978 + FIELD_PREP(SDRAM_CL_SETTING, CFG_RL - 5); 979 979 writel(reg, &regs->ac_timing[1]); 980 980 981 981 writel(DDR4_MR01_MODE, &regs->mr01_mode_setting);
+4 -4
drivers/ram/octeon/octeon_ddr.c
··· 17 17 18 18 #include <mach/octeon_ddr.h> 19 19 20 - #define CONFIG_REF_HERTZ 50000000 20 + #define CFG_REF_HERTZ 50000000 21 21 22 22 DECLARE_GLOBAL_DATA_PTR; 23 23 ··· 152 152 static u32 octeon3_refclock(u32 alt_refclk, u32 ddr_hertz, 153 153 struct dimm_config *dimm_config) 154 154 { 155 - u32 ddr_ref_hertz = CONFIG_REF_HERTZ; 155 + u32 ddr_ref_hertz = CFG_REF_HERTZ; 156 156 int ddr_type; 157 157 int spd_dimm_type; 158 158 ··· 2453 2453 } else { 2454 2454 if (ddr_ref_hertz == 100000000) { 2455 2455 debug("N0: DRAM init: requested 100 MHz refclk NOT SUPPORTED\n"); 2456 - ddr_ref_hertz = CONFIG_REF_HERTZ; 2456 + ddr_ref_hertz = CFG_REF_HERTZ; 2457 2457 } 2458 2458 } 2459 2459 ··· 2486 2486 if (hertz_diff > ((int)ddr_hertz * 5 / 100)) { 2487 2487 // nope, diff is greater than than 5% 2488 2488 debug("N0: DRAM init: requested 100 MHz refclk NOT FOUND\n"); 2489 - ddr_ref_hertz = CONFIG_REF_HERTZ; 2489 + ddr_ref_hertz = CFG_REF_HERTZ; 2490 2490 // clear the flag before trying again!! 2491 2491 set_ddr_clock_initialized(priv, 0, 0); 2492 2492 goto try_again;
+1 -1
drivers/ram/rockchip/dmc-rk3368.c
··· 109 109 PCTL_STAT_MSK = 7, 110 110 INIT_MEM = 0, 111 111 CONFIG, 112 - CONFIG_REQ, 112 + CFG_REQ, 113 113 ACCESS, 114 114 ACCESS_REQ, 115 115 LOW_POWER,
+6 -6
drivers/serial/ns16550.c
··· 52 52 #endif 53 53 #endif 54 54 55 - #ifndef CONFIG_SYS_NS16550_IER 56 - #define CONFIG_SYS_NS16550_IER 0x00 57 - #endif /* CONFIG_SYS_NS16550_IER */ 55 + #ifndef CFG_SYS_NS16550_IER 56 + #define CFG_SYS_NS16550_IER 0x00 57 + #endif /* CFG_SYS_NS16550_IER */ 58 58 59 59 static inline void serial_out_shift(void *addr, int shift, int value) 60 60 { ··· 251 251 while (!(serial_in(&com_port->lsr) & UART_LSR_TEMT)) 252 252 ; 253 253 254 - serial_out(CONFIG_SYS_NS16550_IER, &com_port->ier); 254 + serial_out(CFG_SYS_NS16550_IER, &com_port->ier); 255 255 #if defined(CONFIG_ARCH_OMAP2PLUS) || defined(CONFIG_OMAP_SERIAL) 256 256 serial_out(0x7, &com_port->mdr1); /* mode select reset TL16C750*/ 257 257 #endif ··· 275 275 #if !CONFIG_IS_ENABLED(NS16550_MIN_FUNCTIONS) 276 276 void ns16550_reinit(struct ns16550 *com_port, int baud_divisor) 277 277 { 278 - serial_out(CONFIG_SYS_NS16550_IER, &com_port->ier); 278 + serial_out(CFG_SYS_NS16550_IER, &com_port->ier); 279 279 ns16550_setbrg(com_port, 0); 280 280 serial_out(UART_MCRVAL, &com_port->mcr); 281 281 serial_out(ns16550_getfcr(com_port), &com_port->fcr); ··· 340 340 */ 341 341 baud_divisor = ns16550_calc_divisor(com_port, CONFIG_DEBUG_UART_CLOCK, 342 342 CONFIG_BAUDRATE); 343 - serial_dout(&com_port->ier, CONFIG_SYS_NS16550_IER); 343 + serial_dout(&com_port->ier, CFG_SYS_NS16550_IER); 344 344 serial_dout(&com_port->mcr, UART_MCRVAL); 345 345 serial_dout(&com_port->fcr, UART_FCR_DEFVAL); 346 346
+3 -3
drivers/serial/serial_omap.c
··· 21 21 22 22 #ifdef CONFIG_DEBUG_UART_OMAP 23 23 24 - #ifndef CONFIG_SYS_NS16550_IER 25 - #define CONFIG_SYS_NS16550_IER 0x00 24 + #ifndef CFG_SYS_NS16550_IER 25 + #define CFG_SYS_NS16550_IER 0x00 26 26 #endif 27 27 28 28 #define UART_MCRVAL 0x00 ··· 71 71 72 72 baud_divisor = ns16550_calc_divisor(com_port, CONFIG_DEBUG_UART_CLOCK, 73 73 CONFIG_BAUDRATE); 74 - serial_dout(&com_port->ier, CONFIG_SYS_NS16550_IER); 74 + serial_dout(&com_port->ier, CFG_SYS_NS16550_IER); 75 75 serial_dout(&com_port->mdr1, 0x7); 76 76 serial_dout(&com_port->mcr, UART_MCRVAL); 77 77 serial_dout(&com_port->fcr, UART_FCR_DEFVAL);
+14 -14
drivers/serial/usbtty.c
··· 45 45 #define GSERIAL_RX_ENDPOINT 1 46 46 #define NUM_ACM_INTERFACES 2 47 47 #define NUM_GSERIAL_INTERFACES 1 48 - #define CONFIG_USBD_DATA_INTERFACE_STR "Bulk Data Interface" 49 - #define CONFIG_USBD_CTRL_INTERFACE_STR "Control Interface" 48 + #define CFG_USBD_DATA_INTERFACE_STR "Bulk Data Interface" 49 + #define CFG_USBD_CTRL_INTERFACE_STR "Control Interface" 50 50 51 51 /* 52 52 * Buffers to hold input and output data ··· 97 97 static u8 wstrManufacturer[2 + 2*(sizeof(CONFIG_USBD_MANUFACTURER)-1)]; 98 98 static u8 wstrProduct[2 + 2*(sizeof(CONFIG_USBD_PRODUCT_NAME)-1)]; 99 99 static u8 wstrSerial[2 + 2*(sizeof(serial_number) - 1)]; 100 - static u8 wstrConfiguration[2 + 2*(sizeof(CONFIG_USBD_CONFIGURATION_STR)-1)]; 101 - static u8 wstrDataInterface[2 + 2*(sizeof(CONFIG_USBD_DATA_INTERFACE_STR)-1)]; 102 - static u8 wstrCtrlInterface[2 + 2*(sizeof(CONFIG_USBD_DATA_INTERFACE_STR)-1)]; 100 + static u8 wstrConfiguration[2 + 2*(sizeof(CFG_USBD_CONFIGURATION_STR)-1)]; 101 + static u8 wstrDataInterface[2 + 2*(sizeof(CFG_USBD_DATA_INTERFACE_STR)-1)]; 102 + static u8 wstrCtrlInterface[2 + 2*(sizeof(CFG_USBD_DATA_INTERFACE_STR)-1)]; 103 103 104 104 /* Standard USB Data Structures */ 105 105 static struct usb_interface_descriptor interface_descriptors[MAX_INTERFACES]; ··· 206 206 .bEndpointAddress = UDC_INT_ENDPOINT | USB_DIR_IN, 207 207 .bmAttributes = USB_ENDPOINT_XFER_INT, 208 208 .wMaxPacketSize 209 - = cpu_to_le16(CONFIG_USBD_SERIAL_INT_PKTSIZE), 209 + = cpu_to_le16(CFG_USBD_SERIAL_INT_PKTSIZE), 210 210 .bInterval = 0xFF, 211 211 }, 212 212 ··· 233 233 .bmAttributes = 234 234 USB_ENDPOINT_XFER_BULK, 235 235 .wMaxPacketSize = 236 - cpu_to_le16(CONFIG_USBD_SERIAL_BULK_PKTSIZE), 236 + cpu_to_le16(CFG_USBD_SERIAL_BULK_PKTSIZE), 237 237 .bInterval = 0xFF, 238 238 }, 239 239 { ··· 244 244 .bmAttributes = 245 245 USB_ENDPOINT_XFER_BULK, 246 246 .wMaxPacketSize = 247 - cpu_to_le16(CONFIG_USBD_SERIAL_BULK_PKTSIZE), 247 + cpu_to_le16(CFG_USBD_SERIAL_BULK_PKTSIZE), 248 248 .bInterval = 0xFF, 249 249 }, 250 250 }, ··· 312 312 .bEndpointAddress = UDC_OUT_ENDPOINT | USB_DIR_OUT, 313 313 .bmAttributes = USB_ENDPOINT_XFER_BULK, 314 314 .wMaxPacketSize = 315 - cpu_to_le16(CONFIG_USBD_SERIAL_OUT_PKTSIZE), 315 + cpu_to_le16(CFG_USBD_SERIAL_OUT_PKTSIZE), 316 316 .bInterval= 0xFF, 317 317 }, 318 318 { ··· 322 322 .bEndpointAddress = UDC_IN_ENDPOINT | USB_DIR_IN, 323 323 .bmAttributes = USB_ENDPOINT_XFER_BULK, 324 324 .wMaxPacketSize = 325 - cpu_to_le16(CONFIG_USBD_SERIAL_IN_PKTSIZE), 325 + cpu_to_le16(CFG_USBD_SERIAL_IN_PKTSIZE), 326 326 .bInterval = 0xFF, 327 327 }, 328 328 { ··· 332 332 .bEndpointAddress = UDC_INT_ENDPOINT | USB_DIR_IN, 333 333 .bmAttributes = USB_ENDPOINT_XFER_INT, 334 334 .wMaxPacketSize = 335 - cpu_to_le16(CONFIG_USBD_SERIAL_INT_PKTSIZE), 335 + cpu_to_le16(CFG_USBD_SERIAL_INT_PKTSIZE), 336 336 .bInterval = 0xFF, 337 337 }, 338 338 }, ··· 594 594 string = (struct usb_string_descriptor *) wstrConfiguration; 595 595 string->bLength = sizeof(wstrConfiguration); 596 596 string->bDescriptorType = USB_DT_STRING; 597 - str2wide (CONFIG_USBD_CONFIGURATION_STR, string->wData); 597 + str2wide (CFG_USBD_CONFIGURATION_STR, string->wData); 598 598 usbtty_string_table[STR_CONFIG]=string; 599 599 600 600 601 601 string = (struct usb_string_descriptor *) wstrDataInterface; 602 602 string->bLength = sizeof(wstrDataInterface); 603 603 string->bDescriptorType = USB_DT_STRING; 604 - str2wide (CONFIG_USBD_DATA_INTERFACE_STR, string->wData); 604 + str2wide (CFG_USBD_DATA_INTERFACE_STR, string->wData); 605 605 usbtty_string_table[STR_DATA_INTERFACE]=string; 606 606 607 607 string = (struct usb_string_descriptor *) wstrCtrlInterface; 608 608 string->bLength = sizeof(wstrCtrlInterface); 609 609 string->bDescriptorType = USB_DT_STRING; 610 - str2wide (CONFIG_USBD_CTRL_INTERFACE_STR, string->wData); 610 + str2wide (CFG_USBD_CTRL_INTERFACE_STR, string->wData); 611 611 usbtty_string_table[STR_CTRL_INTERFACE]=string; 612 612 613 613 /* Now, initialize the string table for ep0 handling */
+9 -9
drivers/serial/usbtty.h
··· 20 20 #include <usb/udc.h> 21 21 #include <version.h> 22 22 23 - #ifndef CONFIG_USBD_CONFIGURATION_STR 24 - #define CONFIG_USBD_CONFIGURATION_STR "TTY via USB" 23 + #ifndef CFG_USBD_CONFIGURATION_STR 24 + #define CFG_USBD_CONFIGURATION_STR "TTY via USB" 25 25 #endif 26 26 27 - #define CONFIG_USBD_SERIAL_OUT_ENDPOINT UDC_OUT_ENDPOINT 28 - #define CONFIG_USBD_SERIAL_OUT_PKTSIZE UDC_OUT_PACKET_SIZE 29 - #define CONFIG_USBD_SERIAL_IN_ENDPOINT UDC_IN_ENDPOINT 30 - #define CONFIG_USBD_SERIAL_IN_PKTSIZE UDC_IN_PACKET_SIZE 31 - #define CONFIG_USBD_SERIAL_INT_ENDPOINT UDC_INT_ENDPOINT 32 - #define CONFIG_USBD_SERIAL_INT_PKTSIZE UDC_INT_PACKET_SIZE 33 - #define CONFIG_USBD_SERIAL_BULK_PKTSIZE UDC_BULK_PACKET_SIZE 27 + #define CFG_USBD_SERIAL_OUT_ENDPOINT UDC_OUT_ENDPOINT 28 + #define CFG_USBD_SERIAL_OUT_PKTSIZE UDC_OUT_PACKET_SIZE 29 + #define CFG_USBD_SERIAL_IN_ENDPOINT UDC_IN_ENDPOINT 30 + #define CFG_USBD_SERIAL_IN_PKTSIZE UDC_IN_PACKET_SIZE 31 + #define CFG_USBD_SERIAL_INT_ENDPOINT UDC_INT_ENDPOINT 32 + #define CFG_USBD_SERIAL_INT_PKTSIZE UDC_INT_PACKET_SIZE 33 + #define CFG_USBD_SERIAL_BULK_PKTSIZE UDC_BULK_PACKET_SIZE 34 34 35 35 #define USBTTY_DEVICE_CLASS COMMUNICATIONS_DEVICE_CLASS 36 36
+3 -3
drivers/spi/mxc_spi.c
··· 101 101 #define reg_read readl 102 102 #define reg_write(a, v) writel(v, a) 103 103 104 - #if !defined(CONFIG_SYS_SPI_MXC_WAIT) 105 - #define CONFIG_SYS_SPI_MXC_WAIT (CONFIG_SYS_HZ/100) /* 10 ms */ 104 + #if !defined(CFG_SYS_SPI_MXC_WAIT) 105 + #define CFG_SYS_SPI_MXC_WAIT (CONFIG_SYS_HZ/100) /* 10 ms */ 106 106 #endif 107 107 108 108 #define MAX_CS_COUNT 4 ··· 371 371 status = reg_read(&regs->stat); 372 372 /* Wait until the TC (Transfer completed) bit is set */ 373 373 while ((status & MXC_CSPICTRL_TC) == 0) { 374 - if (get_timer(ts) > CONFIG_SYS_SPI_MXC_WAIT) { 374 + if (get_timer(ts) > CFG_SYS_SPI_MXC_WAIT) { 375 375 printf("spi_xchg_single: Timeout!\n"); 376 376 return -1; 377 377 }
+3 -3
drivers/timer/mpc83xx_timer.c
··· 20 20 21 21 DECLARE_GLOBAL_DATA_PTR; 22 22 23 - #ifndef CONFIG_SYS_WATCHDOG_FREQ 24 - #define CONFIG_SYS_WATCHDOG_FREQ (CONFIG_SYS_HZ / 2) 23 + #ifndef CFG_SYS_WATCHDOG_FREQ 24 + #define CFG_SYS_WATCHDOG_FREQ (CONFIG_SYS_HZ / 2) 25 25 #endif 26 26 27 27 /** ··· 175 175 priv->timestamp++; 176 176 177 177 #if defined(CONFIG_WATCHDOG) || defined(CONFIG_HW_WATCHDOG) 178 - if (CONFIG_SYS_WATCHDOG_FREQ && (priv->timestamp % (CONFIG_SYS_WATCHDOG_FREQ)) == 0) 178 + if (CFG_SYS_WATCHDOG_FREQ && (priv->timestamp % (CFG_SYS_WATCHDOG_FREQ)) == 0) 179 179 schedule(); 180 180 #endif /* CONFIG_WATCHDOG || CONFIG_HW_WATCHDOG */ 181 181
+1 -1
drivers/ufs/ufs.h
··· 898 898 #define RESET_LEVEL 0xFF 899 899 900 900 #define ATTR_SET_TYPE_MASK UFS_MASK(0xFF, 16) 901 - #define CONFIG_RESULT_CODE_MASK 0xFF 901 + #define CFG_RESULT_CODE_MASK 0xFF 902 902 #define GENERIC_ERROR_CODE_MASK 0xFF 903 903 904 904 #define ufshcd_writel(hba, val, reg) \
+5 -5
drivers/usb/gadget/ci_udc.c
··· 322 322 if (num != 0) { 323 323 struct ept_queue_head *head = ci_get_qh(num, in); 324 324 325 - head->config = CONFIG_MAX_PKT(maxpacket) | CONFIG_ZLT; 325 + head->config = CFG_MAX_PKT(maxpacket) | CFG_ZLT; 326 326 ci_flush_qh(num); 327 327 } 328 328 writel(n, &udc->epctrl[num]); ··· 959 959 */ 960 960 head = controller.epts + i; 961 961 if (i < 2) 962 - head->config = CONFIG_MAX_PKT(EP0_MAX_PACKET_SIZE) 963 - | CONFIG_ZLT | CONFIG_IOS; 962 + head->config = CFG_MAX_PKT(EP0_MAX_PACKET_SIZE) 963 + | CFG_ZLT | CFG_IOS; 964 964 else 965 - head->config = CONFIG_MAX_PKT(EP_MAX_PACKET_SIZE) 966 - | CONFIG_ZLT; 965 + head->config = CFG_MAX_PKT(EP_MAX_PACKET_SIZE) 966 + | CFG_ZLT; 967 967 head->next = TERMINATE; 968 968 head->info = 0; 969 969
+3 -3
drivers/usb/gadget/ci_udc.h
··· 128 128 unsigned reserved_4; 129 129 }; 130 130 131 - #define CONFIG_MAX_PKT(n) ((n) << 16) 132 - #define CONFIG_ZLT (1 << 29) /* stop on zero-len xfer */ 133 - #define CONFIG_IOS (1 << 15) /* IRQ on setup */ 131 + #define CFG_MAX_PKT(n) ((n) << 16) 132 + #define CFG_ZLT (1 << 29) /* stop on zero-len xfer */ 133 + #define CFG_IOS (1 << 15) /* IRQ on setup */ 134 134 135 135 struct ept_queue_item { 136 136 unsigned next;
+3 -3
drivers/usb/host/ehci-faraday.c
··· 16 16 17 17 #include "ehci.h" 18 18 19 - #ifndef CONFIG_USB_EHCI_BASE_LIST 20 - #define CONFIG_USB_EHCI_BASE_LIST { CONFIG_USB_EHCI_BASE } 19 + #ifndef CFG_USB_EHCI_BASE_LIST 20 + #define CFG_USB_EHCI_BASE_LIST { CONFIG_USB_EHCI_BASE } 21 21 #endif 22 22 23 23 union ehci_faraday_regs { ··· 93 93 struct ehci_hccr *hccr; 94 94 struct ehci_hcor *hcor; 95 95 union ehci_faraday_regs *regs; 96 - uint32_t base_list[] = CONFIG_USB_EHCI_BASE_LIST; 96 + uint32_t base_list[] = CFG_USB_EHCI_BASE_LIST; 97 97 98 98 if (index < 0 || index >= ARRAY_SIZE(base_list)) 99 99 return -1;
+3 -3
drivers/usb/host/ehci-tegra.c
··· 578 578 579 579 #ifdef CONFIG_USB_ULPI 580 580 /* if board file does not set a ULPI reference frequency we default to 24MHz */ 581 - #ifndef CONFIG_ULPI_REF_CLK 582 - #define CONFIG_ULPI_REF_CLK 24000000 581 + #ifndef CFG_ULPI_REF_CLK 582 + #define CFG_ULPI_REF_CLK 24000000 583 583 #endif 584 584 585 585 /* set up the ULPI USB controller with the parameters provided */ ··· 594 594 595 595 /* set up ULPI reference clock on pllp_out4 */ 596 596 clock_enable(PERIPH_ID_DEV2_OUT); 597 - clock_set_pllout(CLOCK_ID_PERIPH, PLL_OUT4, CONFIG_ULPI_REF_CLK); 597 + clock_set_pllout(CLOCK_ID_PERIPH, PLL_OUT4, CFG_ULPI_REF_CLK); 598 598 599 599 /* reset ULPI phy */ 600 600 if (dm_gpio_is_valid(&config->phy_reset_gpio)) {
+2 -2
drivers/usb/musb-new/linux-compat.h
··· 16 16 * Map U-Boot config options to Linux ones 17 17 */ 18 18 #ifdef CONFIG_OMAP34XX 19 - #define CONFIG_SOC_OMAP3430 19 + #define CFG_SOC_OMAP3430 20 20 #endif 21 21 22 22 #ifdef CONFIG_OMAP44XX 23 - #define CONFIG_ARCH_OMAP4 23 + #define CFG_ARCH_OMAP4 24 24 #endif 25 25 26 26 #endif /* __LINUX_COMPAT_H__ */
+2 -2
drivers/usb/musb-new/musb_core.c
··· 1525 1525 1526 1526 /*-------------------------------------------------------------------------*/ 1527 1527 1528 - #if defined(CONFIG_SOC_OMAP2430) || defined(CONFIG_SOC_OMAP3430) || \ 1529 - defined(CONFIG_ARCH_OMAP4) || defined(CONFIG_ARCH_U8500) 1528 + #if defined(CONFIG_SOC_OMAP2430) || defined(CFG_SOC_OMAP3430) || \ 1529 + defined(CFG_ARCH_OMAP4) || defined(CONFIG_ARCH_U8500) 1530 1530 1531 1531 static irqreturn_t generic_interrupt(int irq, void *__hci) 1532 1532 {
+1 -1
drivers/usb/musb-new/musb_core.h
··· 151 151 */ 152 152 153 153 #if defined(CONFIG_ARCH_DAVINCI) || defined(CONFIG_SOC_OMAP2430) \ 154 - || defined(CONFIG_SOC_OMAP3430) || defined(CONFIG_ARCH_OMAP4) 154 + || defined(CFG_SOC_OMAP3430) || defined(CFG_ARCH_OMAP4) 155 155 /* REVISIT indexed access seemed to 156 156 * misbehave (on DaVinci) for at least peripheral IN ... 157 157 */
+1 -1
drivers/usb/ulpi/omap-ulpi-viewport.c
··· 22 22 */ 23 23 static int ulpi_wait(struct ulpi_viewport *ulpi_vp, u32 mask) 24 24 { 25 - int timeout = CONFIG_USB_ULPI_TIMEOUT; 25 + int timeout = CFG_USB_ULPI_TIMEOUT; 26 26 27 27 while (--timeout) { 28 28 if (!(readl(ulpi_vp->viewport_addr) & mask))
+1 -1
drivers/usb/ulpi/ulpi-viewport.c
··· 34 34 */ 35 35 static int ulpi_wait(struct ulpi_viewport *ulpi_vp, u32 mask) 36 36 { 37 - int timeout = CONFIG_USB_ULPI_TIMEOUT; 37 + int timeout = CFG_USB_ULPI_TIMEOUT; 38 38 39 39 /* Wait for the bits in mask to become zero. */ 40 40 while (--timeout) {
+1 -1
drivers/usb/ulpi/ulpi.c
··· 207 207 static int __ulpi_reset_wait(struct ulpi_viewport *ulpi_vp) 208 208 { 209 209 u32 val; 210 - int timeout = CONFIG_USB_ULPI_TIMEOUT; 210 + int timeout = CFG_USB_ULPI_TIMEOUT; 211 211 212 212 /* Wait for the RESET bit to become zero */ 213 213 while (--timeout) {
+2 -2
include/command.h
··· 18 18 #endif 19 19 20 20 /* Default to a width of 8 characters for help message command width */ 21 - #ifndef CONFIG_SYS_HELP_CMD_WIDTH 22 - #define CONFIG_SYS_HELP_CMD_WIDTH 10 21 + #ifndef CFG_SYS_HELP_CMD_WIDTH 22 + #define CFG_SYS_HELP_CMD_WIDTH 10 23 23 #endif 24 24 25 25 #ifndef __ASSEMBLY__
+3 -3
include/env_callback.h
··· 14 14 #define ENV_CALLBACK_VAR ".callbacks" 15 15 16 16 /* Board configs can define additional static callback bindings */ 17 - #ifndef CONFIG_ENV_CALLBACK_LIST_STATIC 18 - #define CONFIG_ENV_CALLBACK_LIST_STATIC 17 + #ifndef CFG_ENV_CALLBACK_LIST_STATIC 18 + #define CFG_ENV_CALLBACK_LIST_STATIC 19 19 #endif 20 20 21 21 #ifdef CONFIG_SILENT_CONSOLE ··· 80 80 SILENT_CALLBACK \ 81 81 "stdin:console,stdout:console,stderr:console," \ 82 82 "serial#:serialno," \ 83 - CONFIG_ENV_CALLBACK_LIST_STATIC 83 + CFG_ENV_CALLBACK_LIST_STATIC 84 84 85 85 #ifndef CONFIG_SPL_BUILD 86 86 void env_callback_init(struct env_entry *var_entry);
+14 -14
include/fm_eth.h
··· 51 51 */ 52 52 #ifdef CONFIG_SYS_FMAN_V3 53 53 #ifdef CONFIG_TARGET_LS1046AFRWY 54 - #define CONFIG_SYS_FM1_DTSEC_MDIO_ADDR (CFG_SYS_FSL_FM1_ADDR + 0xfd000) 54 + #define CFG_SYS_FM1_DTSEC_MDIO_ADDR (CFG_SYS_FSL_FM1_ADDR + 0xfd000) 55 55 #else 56 - #define CONFIG_SYS_FM1_DTSEC_MDIO_ADDR (CFG_SYS_FSL_FM1_ADDR + 0xfc000) 56 + #define CFG_SYS_FM1_DTSEC_MDIO_ADDR (CFG_SYS_FSL_FM1_ADDR + 0xfc000) 57 57 #endif 58 - #define CONFIG_SYS_FM1_TGEC_MDIO_ADDR (CFG_SYS_FSL_FM1_ADDR + 0xfd000) 58 + #define CFG_SYS_FM1_TGEC_MDIO_ADDR (CFG_SYS_FSL_FM1_ADDR + 0xfd000) 59 59 #if (CFG_SYS_NUM_FMAN == 2) 60 - #define CONFIG_SYS_FM2_DTSEC_MDIO_ADDR (CFG_SYS_FSL_FM2_ADDR + 0xfc000) 61 - #define CONFIG_SYS_FM2_TGEC_MDIO_ADDR (CFG_SYS_FSL_FM2_ADDR + 0xfd000) 60 + #define CFG_SYS_FM2_DTSEC_MDIO_ADDR (CFG_SYS_FSL_FM2_ADDR + 0xfc000) 61 + #define CFG_SYS_FM2_TGEC_MDIO_ADDR (CFG_SYS_FSL_FM2_ADDR + 0xfd000) 62 62 #endif 63 63 #else 64 - #define CONFIG_SYS_FM1_DTSEC1_MDIO_ADDR (CFG_SYS_FSL_FM1_ADDR + 0xe1120) 65 - #define CONFIG_SYS_FM1_TGEC_MDIO_ADDR (CFG_SYS_FSL_FM1_ADDR + 0xf1000) 64 + #define CFG_SYS_FM1_DTSEC1_MDIO_ADDR (CFG_SYS_FSL_FM1_ADDR + 0xe1120) 65 + #define CFG_SYS_FM1_TGEC_MDIO_ADDR (CFG_SYS_FSL_FM1_ADDR + 0xf1000) 66 66 #endif 67 67 68 68 #define DEFAULT_FM_MDIO_NAME "FSL_MDIO0" ··· 77 77 #ifdef CONFIG_SYS_FMAN_V3 78 78 #define FM_DTSEC_INFO_INITIALIZER(idx, n) \ 79 79 { \ 80 - FM_ETH_INFO_INITIALIZER(idx, CONFIG_SYS_FM1_DTSEC_MDIO_ADDR) \ 80 + FM_ETH_INFO_INITIALIZER(idx, CFG_SYS_FM1_DTSEC_MDIO_ADDR) \ 81 81 .index = idx, \ 82 82 .num = n - 1, \ 83 83 .type = FM_ETH_1G_E, \ ··· 91 91 #ifdef CONFIG_FSL_FM_10GEC_REGULAR_NOTATION 92 92 #define FM_TGEC_INFO_INITIALIZER(idx, n) \ 93 93 { \ 94 - FM_ETH_INFO_INITIALIZER(idx, CONFIG_SYS_FM1_TGEC_MDIO_ADDR) \ 94 + FM_ETH_INFO_INITIALIZER(idx, CFG_SYS_FM1_TGEC_MDIO_ADDR) \ 95 95 .index = idx, \ 96 96 .num = n - 1, \ 97 97 .type = FM_ETH_10G_E, \ ··· 105 105 #if (CFG_SYS_NUM_FMAN == 2) 106 106 #define FM_TGEC_INFO_INITIALIZER(idx, n) \ 107 107 { \ 108 - FM_ETH_INFO_INITIALIZER(idx, CONFIG_SYS_FM2_TGEC_MDIO_ADDR) \ 108 + FM_ETH_INFO_INITIALIZER(idx, CFG_SYS_FM2_TGEC_MDIO_ADDR) \ 109 109 .index = idx, \ 110 110 .num = n - 1, \ 111 111 .type = FM_ETH_10G_E, \ ··· 118 118 #else 119 119 #define FM_TGEC_INFO_INITIALIZER(idx, n) \ 120 120 { \ 121 - FM_ETH_INFO_INITIALIZER(idx, CONFIG_SYS_FM1_TGEC_MDIO_ADDR) \ 121 + FM_ETH_INFO_INITIALIZER(idx, CFG_SYS_FM1_TGEC_MDIO_ADDR) \ 122 122 .index = idx, \ 123 123 .num = n - 1, \ 124 124 .type = FM_ETH_10G_E, \ ··· 134 134 #if (CFG_SYS_NUM_FM1_10GEC >= 3) 135 135 #define FM_TGEC_INFO_INITIALIZER2(idx, n) \ 136 136 { \ 137 - FM_ETH_INFO_INITIALIZER(idx, CONFIG_SYS_FM1_TGEC_MDIO_ADDR) \ 137 + FM_ETH_INFO_INITIALIZER(idx, CFG_SYS_FM1_TGEC_MDIO_ADDR) \ 138 138 .index = idx, \ 139 139 .num = n - 1, \ 140 140 .type = FM_ETH_10G_E, \ ··· 149 149 #else 150 150 #define FM_DTSEC_INFO_INITIALIZER(idx, n) \ 151 151 { \ 152 - FM_ETH_INFO_INITIALIZER(idx, CONFIG_SYS_FM1_DTSEC1_MDIO_ADDR) \ 152 + FM_ETH_INFO_INITIALIZER(idx, CFG_SYS_FM1_DTSEC1_MDIO_ADDR) \ 153 153 .index = idx, \ 154 154 .num = n - 1, \ 155 155 .type = FM_ETH_1G_E, \ ··· 162 162 163 163 #define FM_TGEC_INFO_INITIALIZER(idx, n) \ 164 164 { \ 165 - FM_ETH_INFO_INITIALIZER(idx, CONFIG_SYS_FM1_TGEC_MDIO_ADDR) \ 165 + FM_ETH_INFO_INITIALIZER(idx, CFG_SYS_FM1_TGEC_MDIO_ADDR) \ 166 166 .index = idx, \ 167 167 .num = n - 1, \ 168 168 .type = FM_ETH_10G_E, \
+8 -8
include/fsl_ddr_sdram.h
··· 48 48 #if defined(CONFIG_SYS_FSL_DDR1) 49 49 #define FSL_DDR_MIN_TCKE_PULSE_WIDTH_DDR (1) 50 50 typedef ddr1_spd_eeprom_t generic_spd_eeprom_t; 51 - #ifndef CONFIG_FSL_SDRAM_TYPE 52 - #define CONFIG_FSL_SDRAM_TYPE SDRAM_TYPE_DDR1 51 + #ifndef CFG_FSL_SDRAM_TYPE 52 + #define CFG_FSL_SDRAM_TYPE SDRAM_TYPE_DDR1 53 53 #endif 54 54 #elif defined(CONFIG_SYS_FSL_DDR2) 55 55 #define FSL_DDR_MIN_TCKE_PULSE_WIDTH_DDR (3) 56 56 typedef ddr2_spd_eeprom_t generic_spd_eeprom_t; 57 - #ifndef CONFIG_FSL_SDRAM_TYPE 58 - #define CONFIG_FSL_SDRAM_TYPE SDRAM_TYPE_DDR2 57 + #ifndef CFG_FSL_SDRAM_TYPE 58 + #define CFG_FSL_SDRAM_TYPE SDRAM_TYPE_DDR2 59 59 #endif 60 60 #elif defined(CONFIG_SYS_FSL_DDR3) 61 61 typedef ddr3_spd_eeprom_t generic_spd_eeprom_t; 62 - #ifndef CONFIG_FSL_SDRAM_TYPE 63 - #define CONFIG_FSL_SDRAM_TYPE SDRAM_TYPE_DDR3 62 + #ifndef CFG_FSL_SDRAM_TYPE 63 + #define CFG_FSL_SDRAM_TYPE SDRAM_TYPE_DDR3 64 64 #endif 65 65 #elif defined(CONFIG_SYS_FSL_DDR4) 66 66 #define FSL_DDR_MIN_TCKE_PULSE_WIDTH_DDR (3) /* FIXME */ 67 67 typedef struct ddr4_spd_eeprom_s generic_spd_eeprom_t; 68 - #ifndef CONFIG_FSL_SDRAM_TYPE 69 - #define CONFIG_FSL_SDRAM_TYPE SDRAM_TYPE_DDR4 68 + #ifndef CFG_FSL_SDRAM_TYPE 69 + #define CFG_FSL_SDRAM_TYPE SDRAM_TYPE_DDR4 70 70 #endif 71 71 #endif /* #if defined(CONFIG_SYS_FSL_DDR1) */ 72 72
+21 -21
include/fsl_usb.h
··· 40 40 u8 res_dc[0x334]; 41 41 }; 42 42 43 - #define CONFIG_SYS_FSL_USB_CTRL_PHY_EN (1 << 0) 44 - #define CONFIG_SYS_FSL_USB_DRVVBUS_CR_EN (1 << 1) 45 - #define CONFIG_SYS_FSL_USB_PWRFLT_CR_EN (1 << 1) 46 - #define CONFIG_SYS_FSL_USB_PLLPRG2_PHY2_CLK_EN (1 << 0) 47 - #define CONFIG_SYS_FSL_USB_PLLPRG2_PHY1_CLK_EN (1 << 1) 43 + #define CFG_SYS_FSL_USB_CTRL_PHY_EN (1 << 0) 44 + #define CFG_SYS_FSL_USB_DRVVBUS_CR_EN (1 << 1) 45 + #define CFG_SYS_FSL_USB_PWRFLT_CR_EN (1 << 1) 46 + #define CFG_SYS_FSL_USB_PLLPRG2_PHY2_CLK_EN (1 << 0) 47 + #define CFG_SYS_FSL_USB_PLLPRG2_PHY1_CLK_EN (1 << 1) 48 48 #ifdef CONFIG_SYS_FSL_SINGLE_SOURCE_CLK 49 - #define CONFIG_SYS_FSL_USB_PLLPRG2_REF_DIV_INTERNAL_CLK (5 << 4) 50 - #define CONFIG_SYS_FSL_USB_PLLPRG2_MFI_INTERNAL_CLK (6 << 16) 51 - #define CONFIG_SYS_FSL_USB_INTERNAL_SOC_CLK_EN (1 << 20) 49 + #define CFG_SYS_FSL_USB_PLLPRG2_REF_DIV_INTERNAL_CLK (5 << 4) 50 + #define CFG_SYS_FSL_USB_PLLPRG2_MFI_INTERNAL_CLK (6 << 16) 51 + #define CFG_SYS_FSL_USB_INTERNAL_SOC_CLK_EN (1 << 20) 52 52 #endif 53 - #define CONFIG_SYS_FSL_USB_PLLPRG2_REF_DIV (1 << 4) 54 - #define CONFIG_SYS_FSL_USB_PLLPRG2_MFI (5 << 16) 55 - #define CONFIG_SYS_FSL_USB_PLLPRG2_PLL_EN (1 << 21) 56 - #define CONFIG_SYS_FSL_USB_XCVRPRG_HS_DCNT_PROG_EN (1 << 7) 57 - #define CONFIG_SYS_FSL_USB_XCVRPRG_HS_DCNT_PROG_MASK (3 << 4) 53 + #define CFG_SYS_FSL_USB_PLLPRG2_REF_DIV (1 << 4) 54 + #define CFG_SYS_FSL_USB_PLLPRG2_MFI (5 << 16) 55 + #define CFG_SYS_FSL_USB_PLLPRG2_PLL_EN (1 << 21) 56 + #define CFG_SYS_FSL_USB_XCVRPRG_HS_DCNT_PROG_EN (1 << 7) 57 + #define CFG_SYS_FSL_USB_XCVRPRG_HS_DCNT_PROG_MASK (3 << 4) 58 58 59 59 #define INC_DCNT_THRESHOLD_25MV (0 << 4) 60 60 #define INC_DCNT_THRESHOLD_50MV (1 << 4) ··· 71 71 u32 usb_enable_override; 72 72 u8 res[0xe4]; 73 73 }; 74 - #define CONFIG_SYS_FSL_USB_HS_DISCNCT_INC (3 << 22) 75 - #define CONFIG_SYS_FSL_USB_RX_AUTO_CAL_RD_WR_SEL (1 << 20) 76 - #define CONFIG_SYS_FSL_USB_SQUELCH_PROG_WR_0 13 77 - #define CONFIG_SYS_FSL_USB_SQUELCH_PROG_WR_3 16 78 - #define CONFIG_SYS_FSL_USB_SQUELCH_PROG_RD_0 0 79 - #define CONFIG_SYS_FSL_USB_SQUELCH_PROG_RD_3 3 80 - #define CONFIG_SYS_FSL_USB_ENABLE_OVERRIDE 1 81 - #define CONFIG_SYS_FSL_USB_SQUELCH_PROG_MASK 0x07 74 + #define CFG_SYS_FSL_USB_HS_DISCNCT_INC (3 << 22) 75 + #define CFG_SYS_FSL_USB_RX_AUTO_CAL_RD_WR_SEL (1 << 20) 76 + #define CFG_SYS_FSL_USB_SQUELCH_PROG_WR_0 13 77 + #define CFG_SYS_FSL_USB_SQUELCH_PROG_WR_3 16 78 + #define CFG_SYS_FSL_USB_SQUELCH_PROG_RD_0 0 79 + #define CFG_SYS_FSL_USB_SQUELCH_PROG_RD_3 3 80 + #define CFG_SYS_FSL_USB_ENABLE_OVERRIDE 1 81 + #define CFG_SYS_FSL_USB_SQUELCH_PROG_MASK 0x07 82 82 #endif 83 83 84 84 /* USB Erratum Checking code */
+2 -2
include/usb/ulpi.h
··· 20 20 21 21 #define ULPI_ERROR (1 << 8) /* overflow from any register value */ 22 22 23 - #ifndef CONFIG_USB_ULPI_TIMEOUT 24 - #define CONFIG_USB_ULPI_TIMEOUT 1000 /* timeout in us */ 23 + #ifndef CFG_USB_ULPI_TIMEOUT 24 + #define CFG_USB_ULPI_TIMEOUT 1000 /* timeout in us */ 25 25 #endif 26 26 27 27 /*
+7 -7
lib/gzip.c
··· 14 14 #include <u-boot/zlib.h> 15 15 #include "zlib/zutil.h" 16 16 17 - #ifndef CONFIG_GZIP_COMPRESS_DEF_SZ 18 - #define CONFIG_GZIP_COMPRESS_DEF_SZ 0x200 17 + #ifndef CFG_GZIP_COMPRESS_DEF_SZ 18 + #define CFG_GZIP_COMPRESS_DEF_SZ 0x200 19 19 #endif 20 20 #define ZALLOC_ALIGNMENT 16 21 21 ··· 75 75 } 76 76 77 77 while (srclen > 0) { 78 - comp_len = (srclen > CONFIG_GZIP_COMPRESS_DEF_SZ) ? 79 - CONFIG_GZIP_COMPRESS_DEF_SZ : srclen; 78 + comp_len = (srclen > CFG_GZIP_COMPRESS_DEF_SZ) ? 79 + CFG_GZIP_COMPRESS_DEF_SZ : srclen; 80 80 81 81 s.next_in = src; 82 82 s.avail_in = comp_len; 83 - flush = (srclen > CONFIG_GZIP_COMPRESS_DEF_SZ)? 83 + flush = (srclen > CFG_GZIP_COMPRESS_DEF_SZ)? 84 84 Z_NO_FLUSH : Z_FINISH; 85 85 86 86 do { 87 - left_len = (*lenp > CONFIG_GZIP_COMPRESS_DEF_SZ) ? 88 - CONFIG_GZIP_COMPRESS_DEF_SZ : *lenp; 87 + left_len = (*lenp > CFG_GZIP_COMPRESS_DEF_SZ) ? 88 + CFG_GZIP_COMPRESS_DEF_SZ : *lenp; 89 89 s.next_out = dst; 90 90 s.avail_out = left_len; 91 91 r = deflate(&s, flush);
+3 -3
lib/time.c
··· 19 19 #include <asm/io.h> 20 20 #include <linux/delay.h> 21 21 22 - #ifndef CONFIG_WD_PERIOD 23 - # define CONFIG_WD_PERIOD (10 * 1000 * 1000) /* 10 seconds default */ 22 + #ifndef CFG_WD_PERIOD 23 + # define CFG_WD_PERIOD (10 * 1000 * 1000) /* 10 seconds default */ 24 24 #endif 25 25 26 26 DECLARE_GLOBAL_DATA_PTR; ··· 199 199 200 200 do { 201 201 schedule(); 202 - kv = usec > CONFIG_WD_PERIOD ? CONFIG_WD_PERIOD : usec; 202 + kv = usec > CFG_WD_PERIOD ? CFG_WD_PERIOD : usec; 203 203 __udelay(kv); 204 204 usec -= kv; 205 205 } while(usec);
+7 -7
net/bootp.c
··· 44 44 #define PORT_BOOTPS 67 /* BOOTP server UDP port */ 45 45 #define PORT_BOOTPC 68 /* BOOTP client UDP port */ 46 46 47 - #ifndef CONFIG_DHCP_MIN_EXT_LEN /* minimal length of extension list */ 48 - #define CONFIG_DHCP_MIN_EXT_LEN 64 47 + #ifndef CFG_DHCP_MIN_EXT_LEN /* minimal length of extension list */ 48 + #define CFG_DHCP_MIN_EXT_LEN 64 49 49 #endif 50 50 51 - #ifndef CONFIG_BOOTP_ID_CACHE_SIZE 52 - #define CONFIG_BOOTP_ID_CACHE_SIZE 4 51 + #ifndef CFG_BOOTP_ID_CACHE_SIZE 52 + #define CFG_BOOTP_ID_CACHE_SIZE 4 53 53 #endif 54 54 55 - u32 bootp_ids[CONFIG_BOOTP_ID_CACHE_SIZE]; 55 + u32 bootp_ids[CFG_BOOTP_ID_CACHE_SIZE]; 56 56 unsigned int bootp_num_ids; 57 57 int bootp_try; 58 58 ulong bootp_start; ··· 611 611 *e++ = 255; /* End of the list */ 612 612 613 613 /* Pad to minimal length */ 614 - #ifdef CONFIG_DHCP_MIN_EXT_LEN 615 - while ((e - start) < CONFIG_DHCP_MIN_EXT_LEN) 614 + #ifdef CFG_DHCP_MIN_EXT_LEN 615 + while ((e - start) < CFG_DHCP_MIN_EXT_LEN) 616 616 *e++ = 0; 617 617 #endif 618 618