Skip to content

Commit 65cc0e2

Browse files
committed
global: Move remaining CONFIG_SYS_* to CFG_SYS_*
The rest of the unmigrated CONFIG symbols in the CONFIG_SYS namespace do not easily transition to Kconfig. In many cases they likely should come from the device tree instead. Move these out of CONFIG namespace and in to CFG namespace. Signed-off-by: Tom Rini <[email protected]> Reviewed-by: Simon Glass <[email protected]>
1 parent a322afc commit 65cc0e2

File tree

744 files changed

+5931
-5930
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

744 files changed

+5931
-5930
lines changed

.checkpatch.conf

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Temporary for false positive in checkpatch
55
--ignore COMPLEX_MACRO
66

7-
# For CONFIG_SYS_I2C_NOPROBES
7+
# For CFG_SYS_I2C_NOPROBES
88
--ignore MULTISTATEMENT_MACRO_USE_DO_WHILE
99

1010
# For simple_strtoul

Kconfig

+3-3
Original file line numberDiff line numberDiff line change
@@ -264,8 +264,8 @@ config HAS_CUSTOM_SYS_INIT_SP_ADDR
264264
default y if TFABOOT
265265
help
266266
Typically, we use an initial stack pointer address that is calculated
267-
by taking the statically defined CONFIG_SYS_INIT_RAM_ADDR, adding the
268-
statically defined CONFIG_SYS_INIT_RAM_SIZE and then subtracting the
267+
by taking the statically defined CFG_SYS_INIT_RAM_ADDR, adding the
268+
statically defined CFG_SYS_INIT_RAM_SIZE and then subtracting the
269269
build-time constant of GENERATED_GBL_DATA_SIZE. On MIPS a different
270270
but statica calculation is performed. However, some platforms will
271271
take a different approach. Say Y here to define the address statically
@@ -333,7 +333,7 @@ config SPL_SYS_MALLOC_F_LEN
333333
particular needs this to operate, so that it can allocate the
334334
initial serial device and any others that are needed.
335335

336-
It is possible to enable CONFIG_SYS_SPL_MALLOC_START to start a new
336+
It is possible to enable CFG_SYS_SPL_MALLOC_START to start a new
337337
malloc() region in SDRAM once it is inited.
338338

339339
config TPL_SYS_MALLOC_F_LEN

Makefile

+8-8
Original file line numberDiff line numberDiff line change
@@ -1138,10 +1138,10 @@ endif
11381138
$(call deprecated,CONFIG_WDT,DM watchdog,v2019.10,\
11391139
$(CONFIG_WATCHDOG)$(CONFIG_HW_WATCHDOG))
11401140
$(call deprecated,CONFIG_DM_I2C,I2C drivers,v2022.04,$(CONFIG_SYS_I2C_LEGACY))
1141-
@# CONFIG_SYS_TIMER_RATE has brackets in it for some boards which
1141+
@# CFG_SYS_TIMER_RATE has brackets in it for some boards which
11421142
@# confuses this rule. Use if() to send just a single character which
11431143
@# is enable to tell 'deprecated' that one of these symbols exists
1144-
$(call deprecated,CONFIG_TIMER,Timer drivers,v2023.01,$(if $(strip $(CONFIG_SYS_TIMER_RATE)$(CONFIG_SYS_TIMER_COUNTER)),x))
1144+
$(call deprecated,CONFIG_TIMER,Timer drivers,v2023.01,$(if $(strip $(CFG_SYS_TIMER_RATE)$(CFG_SYS_TIMER_COUNTER)),x))
11451145
$(call deprecated,CONFIG_DM_SERIAL,Serial drivers,v2023.04,$(CONFIG_SERIAL))
11461146
$(call deprecated,CONFIG_DM_SCSI,SCSI drivers,v2023.04,$(CONFIG_SCSI))
11471147
@# Check that this build does not use CONFIG options that we do not
@@ -1361,8 +1361,8 @@ u-boot.ldr.hex u-boot.ldr.srec: u-boot.ldr FORCE
13611361
# U-Boot entry point, needed for booting of full-blown U-Boot
13621362
# from the SPL U-Boot version.
13631363
#
1364-
ifndef CONFIG_SYS_UBOOT_START
1365-
CONFIG_SYS_UBOOT_START := $(CONFIG_TEXT_BASE)
1364+
ifndef CFG_SYS_UBOOT_START
1365+
CFG_SYS_UBOOT_START := $(CONFIG_TEXT_BASE)
13661366
endif
13671367

13681368
# Boards with more complex image requirements can provide an .its source file
@@ -1387,18 +1387,18 @@ endif
13871387

13881388
ifdef CONFIG_SPL_LOAD_FIT
13891389
MKIMAGEFLAGS_u-boot.img = -f auto -A $(ARCH) -T firmware -C none -O u-boot \
1390-
-a $(CONFIG_TEXT_BASE) -e $(CONFIG_SYS_UBOOT_START) \
1390+
-a $(CONFIG_TEXT_BASE) -e $(CFG_SYS_UBOOT_START) \
13911391
-p $(CONFIG_FIT_EXTERNAL_OFFSET) \
13921392
-n "U-Boot $(UBOOTRELEASE) for $(BOARD) board" -E \
13931393
$(patsubst %,-b arch/$(ARCH)/dts/%.dtb,$(subst ",,$(DEVICE_TREE))) \
13941394
$(patsubst %,-b arch/$(ARCH)/dts/%.dtb,$(subst ",,$(CONFIG_OF_LIST))) \
13951395
$(patsubst %,-b arch/$(ARCH)/dts/%.dtbo,$(subst ",,$(CONFIG_OF_OVERLAY_LIST)))
13961396
else
13971397
MKIMAGEFLAGS_u-boot.img = -A $(ARCH) -T firmware -C none -O u-boot \
1398-
-a $(CONFIG_TEXT_BASE) -e $(CONFIG_SYS_UBOOT_START) \
1398+
-a $(CONFIG_TEXT_BASE) -e $(CFG_SYS_UBOOT_START) \
13991399
-n "U-Boot $(UBOOTRELEASE) for $(BOARD) board"
14001400
MKIMAGEFLAGS_u-boot-ivt.img = -A $(ARCH) -T firmware_ivt -C none -O u-boot \
1401-
-a $(CONFIG_TEXT_BASE) -e $(CONFIG_SYS_UBOOT_START) \
1401+
-a $(CONFIG_TEXT_BASE) -e $(CFG_SYS_UBOOT_START) \
14021402
-n "U-Boot $(UBOOTRELEASE) for $(BOARD) board"
14031403
u-boot-ivt.img: MKIMAGEOUTPUT = u-boot-ivt.img.log
14041404
endif
@@ -1429,7 +1429,7 @@ MKIMAGEFLAGS_u-boot.pbl = -n $(srctree)/$(CONFIG_SYS_FSL_PBL_RCW:"%"=%) \
14291429
UBOOT_BIN := u-boot.bin
14301430

14311431
MKIMAGEFLAGS_u-boot-lzma.img = -A $(ARCH) -T standalone -C lzma -O u-boot \
1432-
-a $(CONFIG_TEXT_BASE) -e $(CONFIG_SYS_UBOOT_START) \
1432+
-a $(CONFIG_TEXT_BASE) -e $(CFG_SYS_UBOOT_START) \
14331433
-n "U-Boot $(UBOOTRELEASE) for $(BOARD) board"
14341434

14351435
u-boot.bin.lzma: u-boot.bin FORCE

README

+33-33
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ The following options need to be configured:
341341

342342
CFG_SYS_FSL_DDR_SDRAM_BASE_PHY
343343
Physical address from the view of DDR controllers. It is the
344-
same as CONFIG_SYS_DDR_SDRAM_BASE for all Power SoCs. But
344+
same as CFG_SYS_DDR_SDRAM_BASE for all Power SoCs. But
345345
it could be different for ARM SoCs.
346346

347347
- MIPS CPU options:
@@ -352,7 +352,7 @@ The following options need to be configured:
352352
be swapped if a flash programmer is used.
353353

354354
- ARM options:
355-
CONFIG_SYS_EXCEPTION_VECTORS_HIGH
355+
CFG_SYS_EXCEPTION_VECTORS_HIGH
356356

357357
Select high exception vectors of the ARM core, e.g., do not
358358
clear the V bit of the c1 register of CP15.
@@ -415,7 +415,7 @@ The following options need to be configured:
415415
the defaults discussed just above.
416416

417417
- Cache Configuration for ARM:
418-
CONFIG_SYS_PL310_BASE - Physical base address of PL310
418+
CFG_SYS_PL310_BASE - Physical base address of PL310
419419
controller register space
420420

421421
- Serial Ports:
@@ -485,7 +485,7 @@ The following options need to be configured:
485485
- GPIO Support:
486486
CONFIG_PCA953X - use NXP's PCA953X series I2C GPIO
487487

488-
The CONFIG_SYS_I2C_PCA953X_WIDTH option specifies a list of
488+
The CFG_SYS_I2C_PCA953X_WIDTH option specifies a list of
489489
chip-ngpio pairs that tell the PCA953X driver the number of
490490
pins supported by a particular chip.
491491

@@ -927,21 +927,21 @@ The following options need to be configured:
927927

928928
CONFIG_SYS_I2C_DIRECT_BUS
929929
define this, if you don't use i2c muxes on your hardware.
930-
if CONFIG_SYS_I2C_MAX_HOPS is not defined or == 0 you can
930+
if CFG_SYS_I2C_MAX_HOPS is not defined or == 0 you can
931931
omit this define.
932932

933-
CONFIG_SYS_I2C_MAX_HOPS
933+
CFG_SYS_I2C_MAX_HOPS
934934
define how many muxes are maximal consecutively connected
935935
on one i2c bus. If you not use i2c muxes, omit this
936936
define.
937937

938-
CONFIG_SYS_I2C_BUSES
938+
CFG_SYS_I2C_BUSES
939939
hold a list of buses you want to use, only used if
940940
CONFIG_SYS_I2C_DIRECT_BUS is not defined, for example
941-
a board with CONFIG_SYS_I2C_MAX_HOPS = 1 and
941+
a board with CFG_SYS_I2C_MAX_HOPS = 1 and
942942
CFG_SYS_NUM_I2C_BUSES = 9:
943943

944-
CONFIG_SYS_I2C_BUSES {{0, {I2C_NULL_HOP}}, \
944+
CFG_SYS_I2C_BUSES {{0, {I2C_NULL_HOP}}, \
945945
{0, {{I2C_MUX_PCA9547, 0x70, 1}}}, \
946946
{0, {{I2C_MUX_PCA9547, 0x70, 2}}}, \
947947
{0, {{I2C_MUX_PCA9547, 0x70, 3}}}, \
@@ -1044,7 +1044,7 @@ The following options need to be configured:
10441044
active. To switch to a different bus, use the 'i2c dev' command.
10451045
Note that bus numbering is zero-based.
10461046

1047-
CONFIG_SYS_I2C_NOPROBES
1047+
CFG_SYS_I2C_NOPROBES
10481048

10491049
This option specifies a list of I2C devices that will be skipped
10501050
when the 'i2c probe' command is issued. If CONFIG_I2C_MULTI_BUS
@@ -1053,16 +1053,16 @@ The following options need to be configured:
10531053

10541054
e.g.
10551055
#undef CONFIG_I2C_MULTI_BUS
1056-
#define CONFIG_SYS_I2C_NOPROBES {0x50,0x68}
1056+
#define CFG_SYS_I2C_NOPROBES {0x50,0x68}
10571057

10581058
will skip addresses 0x50 and 0x68 on a board with one I2C bus
10591059

10601060
#define CONFIG_I2C_MULTI_BUS
1061-
#define CONFIG_SYS_I2C_NOPROBES {{0,0x50},{0,0x68},{1,0x54}}
1061+
#define CFG_SYS_I2C_NOPROBES {{0,0x50},{0,0x68},{1,0x54}}
10621062

10631063
will skip addresses 0x50 and 0x68 on bus 0 and address 0x54 on bus 1
10641064

1065-
CONFIG_SYS_RTC_BUS_NUM
1065+
CFG_SYS_RTC_BUS_NUM
10661066

10671067
If defined, then this indicates the I2C bus number for the RTC.
10681068
If not defined, then U-Boot assumes that RTC is on I2C bus 0.
@@ -1120,19 +1120,19 @@ The following options need to be configured:
11201120
configuration if the INIT_B line goes low (which
11211121
indicated a CRC error).
11221122

1123-
CONFIG_SYS_FPGA_WAIT_INIT
1123+
CFG_SYS_FPGA_WAIT_INIT
11241124

11251125
Maximum time to wait for the INIT_B line to de-assert
11261126
after PROB_B has been de-asserted during a Virtex II
11271127
FPGA configuration sequence. The default time is 500
11281128
ms.
11291129

1130-
CONFIG_SYS_FPGA_WAIT_BUSY
1130+
CFG_SYS_FPGA_WAIT_BUSY
11311131

11321132
Maximum time to wait for BUSY to de-assert during
11331133
Virtex II FPGA configuration. The default is 5 ms.
11341134

1135-
CONFIG_SYS_FPGA_WAIT_CONFIG
1135+
CFG_SYS_FPGA_WAIT_CONFIG
11361136

11371137
Time to wait after FPGA configuration. The default is
11381138
200 ms.
@@ -1429,12 +1429,12 @@ Configuration Settings:
14291429
- CONFIG_SYS_PROMPT: This is what U-Boot prints on the console to
14301430
prompt for user input.
14311431

1432-
- CONFIG_SYS_BAUDRATE_TABLE:
1432+
- CFG_SYS_BAUDRATE_TABLE:
14331433
List of legal baudrate settings for this board.
14341434

1435-
- CONFIG_SYS_MEM_RESERVE_SECURE
1435+
- CFG_SYS_MEM_RESERVE_SECURE
14361436
Only implemented for ARMv8 for now.
1437-
If defined, the size of CONFIG_SYS_MEM_RESERVE_SECURE memory
1437+
If defined, the size of CFG_SYS_MEM_RESERVE_SECURE memory
14381438
is substracted from total RAM and won't be reported to OS.
14391439
This memory can be used as secure memory. A variable
14401440
gd->arch.secure_ram is used to track the location. In systems
@@ -1444,7 +1444,7 @@ Configuration Settings:
14441444
- CFG_SYS_SDRAM_BASE:
14451445
Physical start address of SDRAM. _Must_ be 0 here.
14461446

1447-
- CONFIG_SYS_FLASH_BASE:
1447+
- CFG_SYS_FLASH_BASE:
14481448
Physical start address of Flash memory.
14491449

14501450
- CONFIG_SYS_MALLOC_LEN:
@@ -1468,16 +1468,16 @@ Configuration Settings:
14681468
boards which do not use the full malloc in SPL (which is
14691469
enabled with CONFIG_SYS_SPL_MALLOC).
14701470

1471-
- CONFIG_SYS_BOOTMAPSZ:
1471+
- CFG_SYS_BOOTMAPSZ:
14721472
Maximum size of memory mapped by the startup code of
14731473
the Linux kernel; all data that must be processed by
14741474
the Linux kernel (bd_info, boot arguments, FDT blob if
14751475
used) must be put below this limit, unless "bootm_low"
14761476
environment variable is defined and non-zero. In such case
14771477
all data for the Linux kernel must be between "bootm_low"
1478-
and "bootm_low" + CONFIG_SYS_BOOTMAPSZ. The environment
1478+
and "bootm_low" + CFG_SYS_BOOTMAPSZ. The environment
14791479
variable "bootm_mapsize" will override the value of
1480-
CONFIG_SYS_BOOTMAPSZ. If CONFIG_SYS_BOOTMAPSZ is undefined,
1480+
CFG_SYS_BOOTMAPSZ. If CFG_SYS_BOOTMAPSZ is undefined,
14811481
then the value in "bootm_size" will be used instead.
14821482

14831483
- CONFIG_SYS_BOOT_GET_CMDLINE:
@@ -1638,37 +1638,37 @@ Low Level (hardware related) configuration options:
16381638
Default (power-on reset) physical address of CCSR on Freescale
16391639
PowerPC SOCs.
16401640

1641-
- CONFIG_SYS_CCSRBAR:
1641+
- CFG_SYS_CCSRBAR:
16421642
Virtual address of CCSR. On a 32-bit build, this is typically
16431643
the same value as CONFIG_SYS_CCSRBAR_DEFAULT.
16441644

1645-
- CONFIG_SYS_CCSRBAR_PHYS:
1645+
- CFG_SYS_CCSRBAR_PHYS:
16461646
Physical address of CCSR. CCSR can be relocated to a new
16471647
physical address, if desired. In this case, this macro should
16481648
be set to that address. Otherwise, it should be set to the
16491649
same value as CONFIG_SYS_CCSRBAR_DEFAULT. For example, CCSR
16501650
is typically relocated on 36-bit builds. It is recommended
16511651
that this macro be defined via the _HIGH and _LOW macros:
16521652

1653-
#define CONFIG_SYS_CCSRBAR_PHYS ((CONFIG_SYS_CCSRBAR_PHYS_HIGH
1654-
* 1ull) << 32 | CONFIG_SYS_CCSRBAR_PHYS_LOW)
1653+
#define CFG_SYS_CCSRBAR_PHYS ((CFG_SYS_CCSRBAR_PHYS_HIGH
1654+
* 1ull) << 32 | CFG_SYS_CCSRBAR_PHYS_LOW)
16551655

1656-
- CONFIG_SYS_CCSRBAR_PHYS_HIGH:
1657-
Bits 33-36 of CONFIG_SYS_CCSRBAR_PHYS. This value is typically
1656+
- CFG_SYS_CCSRBAR_PHYS_HIGH:
1657+
Bits 33-36 of CFG_SYS_CCSRBAR_PHYS. This value is typically
16581658
either 0 (32-bit build) or 0xF (36-bit build). This macro is
16591659
used in assembly code, so it must not contain typecasts or
16601660
integer size suffixes (e.g. "ULL").
16611661

1662-
- CONFIG_SYS_CCSRBAR_PHYS_LOW:
1663-
Lower 32-bits of CONFIG_SYS_CCSRBAR_PHYS. This macro is
1662+
- CFG_SYS_CCSRBAR_PHYS_LOW:
1663+
Lower 32-bits of CFG_SYS_CCSRBAR_PHYS. This macro is
16641664
used in assembly code, so it must not contain typecasts or
16651665
integer size suffixes (e.g. "ULL").
16661666

16671667
- CONFIG_SYS_IMMR: Physical address of the Internal Memory.
16681668
DO NOT CHANGE unless you know exactly what you're
16691669
doing! (11-4) [MPC8xx systems only]
16701670

1671-
- CONFIG_SYS_INIT_RAM_ADDR:
1671+
- CFG_SYS_INIT_RAM_ADDR:
16721672

16731673
Start address of memory area that can be used for
16741674
initial data and stack; please note that this must be
@@ -2737,7 +2737,7 @@ locked as (mis-) used as memory, etc.
27372737
cause you grief during the initial boot! It is frequently not
27382738
used.
27392739

2740-
CONFIG_SYS_INIT_RAM_ADDR should be somewhere that won't interfere
2740+
CFG_SYS_INIT_RAM_ADDR should be somewhere that won't interfere
27412741
with your processor/board/system design. The default value
27422742
you will find in any recent u-boot distribution in
27432743
walnut.h should work for you. I'd set it to a value larger

arch/arm/cpu/arm1176/start.S

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#include <linux/linkage.h>
1919

2020
#ifndef CONFIG_SYS_PHY_UBOOT_BASE
21-
#define CONFIG_SYS_PHY_UBOOT_BASE CONFIG_SYS_UBOOT_BASE
21+
#define CONFIG_SYS_PHY_UBOOT_BASE CFG_SYS_UBOOT_BASE
2222
#endif
2323

2424
/*

arch/arm/cpu/arm926ejs/start.S

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ flush_dcache:
9595
mrc p15, 0, r0, c1, c0, 0
9696
bic r0, r0, #0x00000300 /* clear bits 9:8 (---- --RS) */
9797
bic r0, r0, #0x00000087 /* clear bits 7, 2:0 (B--- -CAM) */
98-
#ifdef CONFIG_SYS_EXCEPTION_VECTORS_HIGH
98+
#ifdef CFG_SYS_EXCEPTION_VECTORS_HIGH
9999
orr r0, r0, #0x00002000 /* set bit 13 (--V- ----) */
100100
#else
101101
bic r0, r0, #0x00002000 /* clear bit 13 (--V- ----) */

arch/arm/cpu/armv7/arch_timer.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
DECLARE_GLOBAL_DATA_PTR;
1616

17-
#ifndef CONFIG_SYS_HZ_CLOCK
17+
#ifndef CFG_SYS_HZ_CLOCK
1818
static inline u32 read_cntfrq(void)
1919
{
2020
u32 frq;
@@ -29,8 +29,8 @@ int timer_init(void)
2929
gd->arch.tbl = 0;
3030
gd->arch.tbu = 0;
3131

32-
#ifdef CONFIG_SYS_HZ_CLOCK
33-
gd->arch.timer_rate_hz = CONFIG_SYS_HZ_CLOCK;
32+
#ifdef CFG_SYS_HZ_CLOCK
33+
gd->arch.timer_rate_hz = CFG_SYS_HZ_CLOCK;
3434
#else
3535
gd->arch.timer_rate_hz = read_cntfrq();
3636
#endif

arch/arm/cpu/armv7/ls102xa/cpu.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -313,9 +313,9 @@ int cpu_eth_init(struct bd_info *bis)
313313

314314
int arch_cpu_init(void)
315315
{
316-
void *epu_base = (void *)(CONFIG_SYS_DCSRBAR + EPU_BLOCK_OFFSET);
316+
void *epu_base = (void *)(CFG_SYS_DCSRBAR + EPU_BLOCK_OFFSET);
317317
void *rcpm2_base =
318-
(void *)(CONFIG_SYS_DCSRBAR + DCSR_RCPM2_BLOCK_OFFSET);
318+
(void *)(CFG_SYS_DCSRBAR + DCSR_RCPM2_BLOCK_OFFSET);
319319
struct ccsr_scfg *scfg = (void *)CFG_SYS_FSL_SCFG_ADDR;
320320
u32 state;
321321

arch/arm/cpu/armv7/ls102xa/fdt.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ void ft_cpu_setup(void *blob, struct bd_info *bd)
183183

184184
#if defined(CONFIG_QSPI_BOOT) || defined(CONFIG_SD_BOOT_QSPI)
185185
off = fdt_node_offset_by_compat_reg(blob, FSL_IFC_COMPAT,
186-
CONFIG_SYS_IFC_ADDR);
186+
CFG_SYS_IFC_ADDR);
187187
fdt_set_node_status(blob, off, FDT_STATUS_DISABLED);
188188
#else
189189
off = fdt_node_offset_by_compat_reg(blob, FSL_QSPI_COMPAT,

arch/arm/cpu/armv7/ls102xa/ls102xa_psci.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ static void __secure ls1_save_ddr_head(void)
4242

4343
static void __secure ls1_fsm_setup(void)
4444
{
45-
void *dcsr_epu_base = (void *)(CONFIG_SYS_DCSRBAR + EPU_BLOCK_OFFSET);
45+
void *dcsr_epu_base = (void *)(CFG_SYS_DCSRBAR + EPU_BLOCK_OFFSET);
4646
void *dcsr_rcpm_base = (void *)SYS_FSL_DCSR_RCPM_ADDR;
4747

4848
out_be32(dcsr_rcpm_base + DCSR_RCPM_CSTTACR0, 0x00001001);
@@ -118,7 +118,7 @@ static void __secure ls1_delay(unsigned int loop)
118118

119119
static void __secure ls1_start_fsm(void)
120120
{
121-
void *dcsr_epu_base = (void *)(CONFIG_SYS_DCSRBAR + EPU_BLOCK_OFFSET);
121+
void *dcsr_epu_base = (void *)(CFG_SYS_DCSRBAR + EPU_BLOCK_OFFSET);
122122
void *ccsr_gic_base = (void *)SYS_FSL_GIC_ADDR;
123123
struct ccsr_scfg __iomem *scfg = (void *)CFG_SYS_FSL_SCFG_ADDR;
124124
struct ccsr_ddr __iomem *ddr = (void *)CFG_SYS_FSL_DDR_ADDR;

arch/arm/cpu/armv7/stv0991/timer.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ static struct stv0991_cgu_regs *const stv0991_cgu_regs = \
1818
(struct stv0991_cgu_regs *) (CGU_BASE_ADDR);
1919

2020
#define READ_TIMER() (readl(&gpt1_regs_ptr->cnt) & GPT_FREE_RUNNING)
21-
#define GPT_RESOLUTION (CONFIG_SYS_HZ_CLOCK / CONFIG_SYS_HZ)
21+
#define GPT_RESOLUTION (CFG_SYS_HZ_CLOCK / CONFIG_SYS_HZ)
2222

2323
DECLARE_GLOBAL_DATA_PTR;
2424

@@ -67,7 +67,7 @@ void __udelay(unsigned long usec)
6767
{
6868
ulong tmo;
6969
ulong start = get_timer_masked();
70-
ulong tenudelcnt = CONFIG_SYS_HZ_CLOCK / (1000 * 100);
70+
ulong tenudelcnt = CFG_SYS_HZ_CLOCK / (1000 * 100);
7171
ulong rndoff;
7272

7373
rndoff = (usec % 10) ? 1 : 0;

0 commit comments

Comments
 (0)