diff options
author | Tom Rini <trini@konsulko.com> | 2023-01-20 14:21:38 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-01-20 14:21:38 -0500 |
commit | 0b9b01517f0b1398ec27dbb47faf3645b719e02c (patch) | |
tree | fac11441ba4056e75d3b59811da3b0a91d1cfcf5 /board/freescale/common/pixis.c | |
parent | 8bd3c0a7e17ee17c771cabc0e548a1a436ac021d (diff) | |
parent | 6333acb961b6fcaa60c6e5b623d676b332481cfa (diff) |
Merge branch '2023-01-20-finish-CONFIG-migration-work'
- Merge in the final batch of CONFIG to Kconfig/CFG migration work. This
includes a fix for a number of ns16550 or similar UARTs due to a
migration bug. We also pull in a revert for enabling CONFIG_VIDEO on
tools-only_defconfig.
Diffstat (limited to 'board/freescale/common/pixis.c')
-rw-r--r-- | board/freescale/common/pixis.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/board/freescale/common/pixis.c b/board/freescale/common/pixis.c index cb9f4549725..7096b107e54 100644 --- a/board/freescale/common/pixis.c +++ b/board/freescale/common/pixis.c @@ -149,8 +149,8 @@ static int set_px_corepll(unsigned long corepll) return 1; } -#ifndef CONFIG_SYS_PIXIS_VCFGEN0_ENABLE -#define CONFIG_SYS_PIXIS_VCFGEN0_ENABLE 0x1C +#ifndef CFG_SYS_PIXIS_VCFGEN0_ENABLE +#define CFG_SYS_PIXIS_VCFGEN0_ENABLE 0x1C #endif /* Tell the PIXIS where to find the COREPLL, MPXPLL, SYSCLK values @@ -159,7 +159,7 @@ static int set_px_corepll(unsigned long corepll) * or various other PIXIS registers to determine the values for COREPLL, * MPXPLL, and SYSCLK. * - * CONFIG_SYS_PIXIS_VCFGEN0_ENABLE is the value to write to the PIXIS_VCFGEN0 + * CFG_SYS_PIXIS_VCFGEN0_ENABLE is the value to write to the PIXIS_VCFGEN0 * register that tells the pixis to use the various PIXIS register. */ static void read_from_px_regs(int set) @@ -167,18 +167,18 @@ static void read_from_px_regs(int set) u8 tmp = in_8(pixis_base + PIXIS_VCFGEN0); if (set) - tmp = tmp | CONFIG_SYS_PIXIS_VCFGEN0_ENABLE; + tmp = tmp | CFG_SYS_PIXIS_VCFGEN0_ENABLE; else - tmp = tmp & ~CONFIG_SYS_PIXIS_VCFGEN0_ENABLE; + tmp = tmp & ~CFG_SYS_PIXIS_VCFGEN0_ENABLE; out_8(pixis_base + PIXIS_VCFGEN0, tmp); } -/* CONFIG_SYS_PIXIS_VBOOT_ENABLE is the value to write to the PX_VCFGEN1 +/* CFG_SYS_PIXIS_VBOOT_ENABLE is the value to write to the PX_VCFGEN1 * register that tells the pixis to use the PX_VBOOT[LBMAP] register. */ -#ifndef CONFIG_SYS_PIXIS_VBOOT_ENABLE -#define CONFIG_SYS_PIXIS_VBOOT_ENABLE 0x04 +#ifndef CFG_SYS_PIXIS_VBOOT_ENABLE +#define CFG_SYS_PIXIS_VBOOT_ENABLE 0x04 #endif /* Configure the source of the boot location @@ -194,14 +194,14 @@ static void read_from_px_regs_altbank(int set) u8 tmp = in_8(pixis_base + PIXIS_VCFGEN1); if (set) - tmp = tmp | CONFIG_SYS_PIXIS_VBOOT_ENABLE; + tmp = tmp | CFG_SYS_PIXIS_VBOOT_ENABLE; else - tmp = tmp & ~CONFIG_SYS_PIXIS_VBOOT_ENABLE; + tmp = tmp & ~CFG_SYS_PIXIS_VBOOT_ENABLE; out_8(pixis_base + PIXIS_VCFGEN1, tmp); } -/* CONFIG_SYS_PIXIS_VBOOT_MASK contains the bits to set in VBOOT register that +/* CFG_SYS_PIXIS_VBOOT_MASK contains the bits to set in VBOOT register that * tells the PIXIS what the alternate flash bank is. * * Note that it's not really a mask. It contains the actual LBMAP bits that @@ -209,8 +209,8 @@ static void read_from_px_regs_altbank(int set) * primary bank has these bits set to 0, and the alternate bank has these * bits set to 1. */ -#ifndef CONFIG_SYS_PIXIS_VBOOT_MASK -#define CONFIG_SYS_PIXIS_VBOOT_MASK (0x40) +#ifndef CFG_SYS_PIXIS_VBOOT_MASK +#define CFG_SYS_PIXIS_VBOOT_MASK (0x40) #endif /* Tell the PIXIS to boot from the default flash bank @@ -220,7 +220,7 @@ static void read_from_px_regs_altbank(int set) */ static void clear_altbank(void) { - clrbits_8(pixis_base + PIXIS_VBOOT, CONFIG_SYS_PIXIS_VBOOT_MASK); + clrbits_8(pixis_base + PIXIS_VBOOT, CFG_SYS_PIXIS_VBOOT_MASK); } /* Tell the PIXIS to boot from the alternate flash bank @@ -230,7 +230,7 @@ static void clear_altbank(void) */ static void set_altbank(void) { - setbits_8(pixis_base + PIXIS_VBOOT, CONFIG_SYS_PIXIS_VBOOT_MASK); + setbits_8(pixis_base + PIXIS_VBOOT, CFG_SYS_PIXIS_VBOOT_MASK); } /* Reset the board with watchdog disabled. |