powerpc: mpc8260: consolidate CONFIG_MPC8260 and CONFIG_8260

Before this commit, CONFIG_MPC8260 and CONFIG_8260
were used mixed-up.

All boards with mpc8260 cpu defined both of them:
  - CONFIG_MPC8260 was defined in board config headers
      and include/common.h
  - CONFIG_8260 was defined arch/powerpc/cpu/mpc8260/config.mk

We do not need to have both of them.
This commit keeps only CONFIG_MPC8260.

This commit does:
 - Delete CONFIG_8260 and CONFIG_MPC8260 definition
   in config headers and include/common.h
 - Rename CONFIG_8260 to CONFIG_MPC8260
    in arch/powerpc/cpu/mpc8260/config.mk.
 - Rename #ifdef CONFIG_8260 to #ifdef CONFIG_MPC8260

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Cc: Wolfgang Denk <wd@denx.de>
master
Masahiro Yamada 10 years ago committed by Tom Rini
parent cfda6bd2d8
commit 58dac32764
  1. 2
      api/api_platform-powerpc.c
  2. 2
      arch/powerpc/cpu/mpc8260/config.mk
  3. 2
      arch/powerpc/cpu/mpc8260/kgdb.S
  4. 2
      arch/powerpc/cpu/mpc8260/start.S
  5. 2
      arch/powerpc/include/asm/processor.h
  6. 2
      arch/powerpc/include/asm/status_led.h
  7. 2
      arch/powerpc/include/asm/u-boot.h
  8. 6
      arch/powerpc/lib/board.c
  9. 10
      arch/powerpc/lib/kgdb.c
  10. 4
      board/cogent/mb.c
  11. 2
      board/cogent/serial.c
  12. 2
      board/hymod/hymod.h
  13. 6
      common/board_f.c
  14. 2
      common/cmd_bdinfo.c
  15. 44
      common/cmd_immap.c
  16. 2
      examples/standalone/Makefile
  17. 2
      include/asm-generic/u-boot.h
  18. 11
      include/common.h
  19. 1
      include/configs/CPU86.h
  20. 1
      include/configs/CPU87.h
  21. 1
      include/configs/IDS8247.h
  22. 1
      include/configs/IPHASE4539.h
  23. 1
      include/configs/ISPAN.h
  24. 2
      include/configs/MPC8260ADS.h
  25. 1
      include/configs/MPC8266ADS.h
  26. 1
      include/configs/PM826.h
  27. 1
      include/configs/PM828.h
  28. 1
      include/configs/RPXsuper.h
  29. 1
      include/configs/Rattler.h
  30. 1
      include/configs/TQM8260.h
  31. 1
      include/configs/TQM8272.h
  32. 1
      include/configs/ZPC1900.h
  33. 1
      include/configs/atc.h
  34. 1
      include/configs/ep8260.h
  35. 1
      include/configs/ep82xxm.h
  36. 1
      include/configs/gw8260.h
  37. 1
      include/configs/hymod.h
  38. 2
      include/configs/muas3001.h
  39. 1
      include/configs/ppmc8260.h
  40. 1
      include/configs/rsdproto.h
  41. 1
      include/configs/sacsng.h
  42. 2
      include/ppc_asm.tmpl

@ -30,7 +30,7 @@ int platform_sys_info(struct sys_info *si)
si->clk_bus = gd->bus_clk; si->clk_bus = gd->bus_clk;
si->clk_cpu = gd->cpu_clk; si->clk_cpu = gd->cpu_clk;
#if defined(CONFIG_5xx) || defined(CONFIG_8xx) || defined(CONFIG_8260) || \ #if defined(CONFIG_5xx) || defined(CONFIG_8xx) || defined(CONFIG_MPC8260) || \
defined(CONFIG_E500) || defined(CONFIG_MPC86xx) defined(CONFIG_E500) || defined(CONFIG_MPC86xx)
#define bi_bar bi_immr_base #define bi_bar bi_immr_base
#elif defined(CONFIG_MPC5xxx) #elif defined(CONFIG_MPC5xxx)

@ -5,5 +5,5 @@
# SPDX-License-Identifier: GPL-2.0+ # SPDX-License-Identifier: GPL-2.0+
# #
PLATFORM_CPPFLAGS += -DCONFIG_8260 -DCONFIG_CPM2 \ PLATFORM_CPPFLAGS += -DCONFIG_MPC8260 -DCONFIG_CPM2 \
-mstring -mcpu=603e -mmultiple -mstring -mcpu=603e -mmultiple

@ -9,8 +9,6 @@
#include <mpc8260.h> #include <mpc8260.h>
#include <version.h> #include <version.h>
#define CONFIG_8260 1 /* needed for Linux kernel header files */
#include <ppc_asm.tmpl> #include <ppc_asm.tmpl>
#include <ppc_defs.h> #include <ppc_defs.h>

@ -14,8 +14,6 @@
#include <mpc8260.h> #include <mpc8260.h>
#include <version.h> #include <version.h>
#define CONFIG_8260 1 /* needed for Linux kernel header files */
#include <ppc_asm.tmpl> #include <ppc_asm.tmpl>
#include <ppc_defs.h> #include <ppc_defs.h>

@ -1356,7 +1356,7 @@ void _nmask_and_or_msr(unsigned long nmask, unsigned long or_val);
#elif defined(CONFIG_GEMINI) #elif defined(CONFIG_GEMINI)
#define _machine _MACH_gemini #define _machine _MACH_gemini
#define have_of 0 #define have_of 0
#elif defined(CONFIG_8260) #elif defined(CONFIG_MPC8260)
#define _machine _MACH_8260 #define _machine _MACH_8260
#define have_of 0 #define have_of 0
#elif defined(CONFIG_SANDPOINT) #elif defined(CONFIG_SANDPOINT)

@ -11,7 +11,7 @@
#ifndef CONFIG_BOARD_SPECIFIC_LED #ifndef CONFIG_BOARD_SPECIFIC_LED
# if defined(CONFIG_8xx) # if defined(CONFIG_8xx)
# include <mpc8xx.h> # include <mpc8xx.h>
# elif defined(CONFIG_8260) # elif defined(CONFIG_MPC8260)
# include <mpc8260.h> # include <mpc8260.h>
# elif defined(CONFIG_5xx) # elif defined(CONFIG_5xx)
# include <mpc5xx.h> # include <mpc5xx.h>

@ -35,7 +35,7 @@ typedef struct bd_info {
unsigned long bi_flashoffset; /* reserved area for startup monitor */ unsigned long bi_flashoffset; /* reserved area for startup monitor */
unsigned long bi_sramstart; /* start of SRAM memory */ unsigned long bi_sramstart; /* start of SRAM memory */
unsigned long bi_sramsize; /* size of SRAM memory */ unsigned long bi_sramsize; /* size of SRAM memory */
#if defined(CONFIG_5xx) || defined(CONFIG_8xx) || defined(CONFIG_8260) \ #if defined(CONFIG_5xx) || defined(CONFIG_8xx) || defined(CONFIG_MPC8260) \
|| defined(CONFIG_E500) || defined(CONFIG_MPC86xx) || defined(CONFIG_E500) || defined(CONFIG_MPC86xx)
unsigned long bi_immr_base; /* base of IMMR register */ unsigned long bi_immr_base; /* base of IMMR register */
#endif #endif

@ -277,10 +277,10 @@ static init_fnc_t *init_sequence[] = {
serial_init, serial_init,
console_init_f, console_init_f,
display_options, display_options,
#if defined(CONFIG_8260) #if defined(CONFIG_MPC8260)
prt_8260_rsr, prt_8260_rsr,
prt_8260_clks, prt_8260_clks,
#endif /* CONFIG_8260 */ #endif /* CONFIG_MPC8260 */
#if defined(CONFIG_MPC83xx) #if defined(CONFIG_MPC83xx)
prt_83xx_rsr, prt_83xx_rsr,
#endif #endif
@ -504,7 +504,7 @@ void board_init_f(ulong bootflag)
bd->bi_sramsize = CONFIG_SYS_SRAM_SIZE; /* size of SRAM */ bd->bi_sramsize = CONFIG_SYS_SRAM_SIZE; /* size of SRAM */
#endif #endif
#if defined(CONFIG_8xx) || defined(CONFIG_8260) || defined(CONFIG_5xx) || \ #if defined(CONFIG_8xx) || defined(CONFIG_MPC8260) || defined(CONFIG_5xx) || \
defined(CONFIG_E500) || defined(CONFIG_MPC86xx) defined(CONFIG_E500) || defined(CONFIG_MPC86xx)
bd->bi_immr_base = CONFIG_SYS_IMMR; /* base of IMMR register */ bd->bi_immr_base = CONFIG_SYS_IMMR; /* base of IMMR register */
#endif #endif

@ -159,7 +159,7 @@ kgdb_trap(struct pt_regs *regs)
#define SPACE_REQUIRED ((32*4)+(32*8)+(6*4)) #define SPACE_REQUIRED ((32*4)+(32*8)+(6*4))
#ifdef CONFIG_8260 #ifdef CONFIG_MPC8260
/* store floating double indexed */ /* store floating double indexed */
#define STFDI(n,p) __asm__ __volatile__ ("stfd " #n ",%0" : "=o"(p[2*n])) #define STFDI(n,p) __asm__ __volatile__ ("stfd " #n ",%0" : "=o"(p[2*n]))
/* store floating double multiple */ /* store floating double multiple */
@ -190,7 +190,7 @@ kgdb_getregs(struct pt_regs *regs, char *buf, int max)
*ptr++ = regs->gpr[i]; *ptr++ = regs->gpr[i];
/* Floating Point Regs */ /* Floating Point Regs */
#ifdef CONFIG_8260 #ifdef CONFIG_MPC8260
STFDM(ptr); STFDM(ptr);
ptr += 32*2; ptr += 32*2;
#else #else
@ -213,7 +213,7 @@ kgdb_getregs(struct pt_regs *regs, char *buf, int max)
/* set the value of the CPU registers */ /* set the value of the CPU registers */
#ifdef CONFIG_8260 #ifdef CONFIG_MPC8260
/* load floating double */ /* load floating double */
#define LFD(n,v) __asm__ __volatile__ ("lfd " #n ",%0" :: "o"(v)) #define LFD(n,v) __asm__ __volatile__ ("lfd " #n ",%0" :: "o"(v))
/* load floating double indexed */ /* load floating double indexed */
@ -252,7 +252,7 @@ kgdb_putreg(struct pt_regs *regs, int regno, char *buf, int length)
regs->gpr[regno] = *ptr; regs->gpr[regno] = *ptr;
else switch (regno) { else switch (regno) {
#ifdef CONFIG_8260 #ifdef CONFIG_MPC8260
#define caseF(n) \ #define caseF(n) \
case (n) + 32: LFD(n, *ptr); break; case (n) + 32: LFD(n, *ptr); break;
@ -298,7 +298,7 @@ kgdb_putregs(struct pt_regs *regs, char *buf, int length)
regs->gpr[i] = *ptr++; regs->gpr[i] = *ptr++;
/* Floating Point Regs */ /* Floating Point Regs */
#ifdef CONFIG_8260 #ifdef CONFIG_MPC8260
LFDM(ptr); LFDM(ptr);
#endif #endif
ptr += 32*2; ptr += 32*2;

@ -14,7 +14,7 @@
/* ------------------------------------------------------------------------- */ /* ------------------------------------------------------------------------- */
#if defined(CONFIG_8260) #if defined(CONFIG_MPC8260)
#include <ioports.h> #include <ioports.h>
@ -186,7 +186,7 @@ const iop_conf_t iop_conf_tab[4][32] = {
} }
}; };
#endif /* CONFIG_8260 */ #endif /* CONFIG_MPC8260 */
/* ------------------------------------------------------------------------- */ /* ------------------------------------------------------------------------- */

@ -13,7 +13,7 @@ DECLARE_GLOBAL_DATA_PTR;
#if (CMA_MB_CAPS & CMA_MB_CAP_SERPAR) #if (CMA_MB_CAPS & CMA_MB_CAP_SERPAR)
#if (defined(CONFIG_8xx) && defined(CONFIG_8xx_CONS_NONE)) || \ #if (defined(CONFIG_8xx) && defined(CONFIG_8xx_CONS_NONE)) || \
(defined(CONFIG_8260) && defined(CONFIG_CONS_NONE)) (defined(CONFIG_MPC8260) && defined(CONFIG_CONS_NONE))
#if CONFIG_CONS_INDEX == 1 #if CONFIG_CONS_INDEX == 1
#define CMA_MB_SERIAL_BASE CMA_MB_SERIALA_BASE #define CMA_MB_SERIAL_BASE CMA_MB_SERIALA_BASE

@ -8,7 +8,7 @@
#ifndef _HYMOD_H_ #ifndef _HYMOD_H_
#define _HYMOD_H_ #define _HYMOD_H_
#ifdef CONFIG_8260 #ifdef CONFIG_MPC8260
#include <asm/iopin_8260.h> #include <asm/iopin_8260.h>
#endif #endif

@ -642,7 +642,7 @@ static int setup_board_part1(void)
bd->bi_sramsize = CONFIG_SYS_SRAM_SIZE; /* size of SRAM */ bd->bi_sramsize = CONFIG_SYS_SRAM_SIZE; /* size of SRAM */
#endif #endif
#if defined(CONFIG_8xx) || defined(CONFIG_8260) || defined(CONFIG_5xx) || \ #if defined(CONFIG_8xx) || defined(CONFIG_MPC8260) || defined(CONFIG_5xx) || \
defined(CONFIG_E500) || defined(CONFIG_MPC86xx) defined(CONFIG_E500) || defined(CONFIG_MPC86xx)
bd->bi_immr_base = CONFIG_SYS_IMMR; /* base of IMMR register */ bd->bi_immr_base = CONFIG_SYS_IMMR; /* base of IMMR register */
#endif #endif
@ -858,10 +858,10 @@ static init_fnc_t init_sequence_f[] = {
#endif #endif
display_options, /* say that we are here */ display_options, /* say that we are here */
display_text_info, /* show debugging info if required */ display_text_info, /* show debugging info if required */
#if defined(CONFIG_8260) #if defined(CONFIG_MPC8260)
prt_8260_rsr, prt_8260_rsr,
prt_8260_clks, prt_8260_clks,
#endif /* CONFIG_8260 */ #endif /* CONFIG_MPC8260 */
#if defined(CONFIG_MPC83xx) #if defined(CONFIG_MPC83xx)
prt_83xx_rsr, prt_83xx_rsr,
#endif #endif

@ -88,7 +88,7 @@ int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
print_num("sramstart", bd->bi_sramstart); print_num("sramstart", bd->bi_sramstart);
print_num("sramsize", bd->bi_sramsize); print_num("sramsize", bd->bi_sramsize);
#if defined(CONFIG_5xx) || defined(CONFIG_8xx) || \ #if defined(CONFIG_5xx) || defined(CONFIG_8xx) || \
defined(CONFIG_8260) || defined(CONFIG_E500) defined(CONFIG_MPC8260) || defined(CONFIG_E500)
print_num("immr_base", bd->bi_immr_base); print_num("immr_base", bd->bi_immr_base);
#endif #endif
print_num("bootflags", bd->bi_bootflags); print_num("bootflags", bd->bi_bootflags);

@ -12,13 +12,13 @@
#include <common.h> #include <common.h>
#include <command.h> #include <command.h>
#if defined(CONFIG_8xx) || defined(CONFIG_8260) #if defined(CONFIG_8xx) || defined(CONFIG_MPC8260)
#if defined(CONFIG_8xx) #if defined(CONFIG_8xx)
#include <asm/8xx_immap.h> #include <asm/8xx_immap.h>
#include <commproc.h> #include <commproc.h>
#include <asm/iopin_8xx.h> #include <asm/iopin_8xx.h>
#elif defined(CONFIG_8260) #elif defined(CONFIG_MPC8260)
#include <asm/immap_8260.h> #include <asm/immap_8260.h>
#include <asm/cpm_8260.h> #include <asm/cpm_8260.h>
#include <asm/iopin_8260.h> #include <asm/iopin_8260.h>
@ -40,7 +40,7 @@ do_siuinfo (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
#if defined(CONFIG_8xx) #if defined(CONFIG_8xx)
volatile sysconf8xx_t *sc = &immap->im_siu_conf; volatile sysconf8xx_t *sc = &immap->im_siu_conf;
#elif defined(CONFIG_8260) #elif defined(CONFIG_MPC8260)
volatile sysconf8260_t *sc = &immap->im_siu_conf; volatile sysconf8260_t *sc = &immap->im_siu_conf;
#endif #endif
@ -50,7 +50,7 @@ do_siuinfo (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
printf ("SIPEND= %08x SIMASK= %08x\n", sc->sc_sipend, sc->sc_simask); printf ("SIPEND= %08x SIMASK= %08x\n", sc->sc_sipend, sc->sc_simask);
printf ("SIEL = %08x SIVEC = %08x\n", sc->sc_siel, sc->sc_sivec); printf ("SIEL = %08x SIVEC = %08x\n", sc->sc_siel, sc->sc_sivec);
printf ("TESR = %08x SDCR = %08x\n", sc->sc_tesr, sc->sc_sdcr); printf ("TESR = %08x SDCR = %08x\n", sc->sc_tesr, sc->sc_sdcr);
#elif defined(CONFIG_8260) #elif defined(CONFIG_MPC8260)
printf ("BCR = %08x\n", sc->sc_bcr); printf ("BCR = %08x\n", sc->sc_bcr);
printf ("P_ACR = %02x P_ALRH= %08x P_ALRL= %08x\n", printf ("P_ACR = %02x P_ALRH= %08x P_ALRL= %08x\n",
sc->sc_ppc_acr, sc->sc_ppc_alrh, sc->sc_ppc_alrl); sc->sc_ppc_acr, sc->sc_ppc_alrh, sc->sc_ppc_alrl);
@ -72,7 +72,7 @@ do_memcinfo (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
#if defined(CONFIG_8xx) #if defined(CONFIG_8xx)
volatile memctl8xx_t *memctl = &immap->im_memctl; volatile memctl8xx_t *memctl = &immap->im_memctl;
int nbanks = 8; int nbanks = 8;
#elif defined(CONFIG_8260) #elif defined(CONFIG_MPC8260)
volatile memctl8260_t *memctl = &immap->im_memctl; volatile memctl8260_t *memctl = &immap->im_memctl;
int nbanks = 12; int nbanks = 12;
#endif #endif
@ -92,19 +92,19 @@ do_memcinfo (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
printf ("MAR = %08x", memctl->memc_mar); printf ("MAR = %08x", memctl->memc_mar);
#if defined(CONFIG_8xx) #if defined(CONFIG_8xx)
printf (" MCR = %08x\n", memctl->memc_mcr); printf (" MCR = %08x\n", memctl->memc_mcr);
#elif defined(CONFIG_8260) #elif defined(CONFIG_MPC8260)
putc ('\n'); putc ('\n');
#endif #endif
printf ("MAMR = %08x MBMR = %08x", printf ("MAMR = %08x MBMR = %08x",
memctl->memc_mamr, memctl->memc_mbmr); memctl->memc_mamr, memctl->memc_mbmr);
#if defined(CONFIG_8xx) #if defined(CONFIG_8xx)
printf ("\nMSTAT = %04x\n", memctl->memc_mstat); printf ("\nMSTAT = %04x\n", memctl->memc_mstat);
#elif defined(CONFIG_8260) #elif defined(CONFIG_MPC8260)
printf (" MCMR = %08x\n", memctl->memc_mcmr); printf (" MCMR = %08x\n", memctl->memc_mcmr);
#endif #endif
printf ("MPTPR = %04x MDR = %08x\n", printf ("MPTPR = %04x MDR = %08x\n",
memctl->memc_mptpr, memctl->memc_mdr); memctl->memc_mptpr, memctl->memc_mdr);
#if defined(CONFIG_8260) #if defined(CONFIG_MPC8260)
printf ("PSDMR = %08x LSDMR = %08x\n", printf ("PSDMR = %08x LSDMR = %08x\n",
memctl->memc_psdmr, memctl->memc_lsdmr); memctl->memc_psdmr, memctl->memc_lsdmr);
printf ("PURT = %02x PSRT = %02x\n", printf ("PURT = %02x PSRT = %02x\n",
@ -123,7 +123,7 @@ do_sitinfo (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
return 0; return 0;
} }
#ifdef CONFIG_8260 #ifdef CONFIG_MPC8260
int int
do_icinfo (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) do_icinfo (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
{ {
@ -139,7 +139,7 @@ do_carinfo (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
#if defined(CONFIG_8xx) #if defined(CONFIG_8xx)
volatile car8xx_t *car = &immap->im_clkrst; volatile car8xx_t *car = &immap->im_clkrst;
#elif defined(CONFIG_8260) #elif defined(CONFIG_MPC8260)
volatile car8260_t *car = &immap->im_clkrst; volatile car8260_t *car = &immap->im_clkrst;
#endif #endif
@ -147,7 +147,7 @@ do_carinfo (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
printf ("SCCR = %08x\n", car->car_sccr); printf ("SCCR = %08x\n", car->car_sccr);
printf ("PLPRCR= %08x\n", car->car_plprcr); printf ("PLPRCR= %08x\n", car->car_plprcr);
printf ("RSR = %08x\n", car->car_rsr); printf ("RSR = %08x\n", car->car_rsr);
#elif defined(CONFIG_8260) #elif defined(CONFIG_MPC8260)
printf ("SCCR = %08x\n", car->car_sccr); printf ("SCCR = %08x\n", car->car_sccr);
printf ("SCMR = %08x\n", car->car_scmr); printf ("SCMR = %08x\n", car->car_scmr);
printf ("RSR = %08x\n", car->car_rsr); printf ("RSR = %08x\n", car->car_rsr);
@ -207,7 +207,7 @@ static void binary (char *label, uint value, int nbits)
#define PB_NB_ODR 16 #define PB_NB_ODR 16
#define PC_NBITS 12 #define PC_NBITS 12
#define PD_NBITS 13 #define PD_NBITS 13
#elif defined(CONFIG_8260) #elif defined(CONFIG_MPC8260)
#define PA_NBITS 32 #define PA_NBITS 32
#define PA_NB_ODR 32 #define PA_NB_ODR 32
#define PB_NBITS 28 #define PB_NBITS 28
@ -224,7 +224,7 @@ do_iopinfo (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
#if defined(CONFIG_8xx) #if defined(CONFIG_8xx)
volatile iop8xx_t *iop = &immap->im_ioport; volatile iop8xx_t *iop = &immap->im_ioport;
volatile ushort *l, *r; volatile ushort *l, *r;
#elif defined(CONFIG_8260) #elif defined(CONFIG_MPC8260)
volatile iop8260_t *iop = &immap->im_ioport; volatile iop8260_t *iop = &immap->im_ioport;
volatile uint *l, *r; volatile uint *l, *r;
#endif #endif
@ -240,7 +240,7 @@ do_iopinfo (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
#if defined(CONFIG_8xx) #if defined(CONFIG_8xx)
l = &iop->iop_padir; l = &iop->iop_padir;
R = &immap->im_cpm.cp_pbdir; R = &immap->im_cpm.cp_pbdir;
#elif defined(CONFIG_8260) #elif defined(CONFIG_MPC8260)
l = &iop->iop_pdira; l = &iop->iop_pdira;
R = &iop->iop_pdirb; R = &iop->iop_pdirb;
#endif #endif
@ -248,7 +248,7 @@ do_iopinfo (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
binary ("PB_DIR", *R++, PB_NBITS); binary ("PB_DIR", *R++, PB_NBITS);
binary ("PA_PAR", *l++, PA_NBITS); binary ("PA_PAR", *l++, PA_NBITS);
binary ("PB_PAR", *R++, PB_NBITS); binary ("PB_PAR", *R++, PB_NBITS);
#if defined(CONFIG_8260) #if defined(CONFIG_MPC8260)
binary ("PA_SOR", *l++, PA_NBITS); binary ("PA_SOR", *l++, PA_NBITS);
binary ("PB_SOR", *R++, PB_NBITS); binary ("PB_SOR", *R++, PB_NBITS);
#endif #endif
@ -266,7 +266,7 @@ do_iopinfo (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
#if defined(CONFIG_8xx) #if defined(CONFIG_8xx)
l = &iop->iop_pcdir; l = &iop->iop_pcdir;
r = &iop->iop_pddir; r = &iop->iop_pddir;
#elif defined(CONFIG_8260) #elif defined(CONFIG_MPC8260)
l = &iop->iop_pdirc; l = &iop->iop_pdirc;
r = &iop->iop_pdird; r = &iop->iop_pdird;
#endif #endif
@ -278,7 +278,7 @@ do_iopinfo (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
binary ("PC_SO ", *l++, PC_NBITS); binary ("PC_SO ", *l++, PC_NBITS);
binary (" ", 0, 0); binary (" ", 0, 0);
r++; r++;
#elif defined(CONFIG_8260) #elif defined(CONFIG_MPC8260)
binary ("PC_SOR", *l++, PC_NBITS); binary ("PC_SOR", *l++, PC_NBITS);
binary ("PD_SOR", *r++, PD_NBITS); binary ("PD_SOR", *r++, PD_NBITS);
binary ("PC_ODR", *l++, PC_NBITS); binary ("PC_ODR", *l++, PC_NBITS);
@ -436,7 +436,7 @@ static void prbrg (int n, uint val)
#if defined(CONFIG_8xx) #if defined(CONFIG_8xx)
ulong clock = gd->cpu_clk; ulong clock = gd->cpu_clk;
#elif defined(CONFIG_8260) #elif defined(CONFIG_MPC8260)
ulong clock = gd->arch.brg_clk; ulong clock = gd->arch.brg_clk;
#endif #endif
@ -489,7 +489,7 @@ do_brginfo (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
#if defined(CONFIG_8xx) #if defined(CONFIG_8xx)
volatile cpm8xx_t *cp = &immap->im_cpm; volatile cpm8xx_t *cp = &immap->im_cpm;
volatile uint *p = &cp->cp_brgc1; volatile uint *p = &cp->cp_brgc1;
#elif defined(CONFIG_8260) #elif defined(CONFIG_MPC8260)
volatile uint *p = &immap->im_brgc1; volatile uint *p = &immap->im_brgc1;
#endif #endif
int i = 1; int i = 1;
@ -497,7 +497,7 @@ do_brginfo (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
while (i <= 4) while (i <= 4)
prbrg (i++, *p++); prbrg (i++, *p++);
#if defined(CONFIG_8260) #if defined(CONFIG_MPC8260)
p = &immap->im_brgc5; p = &immap->im_brgc5;
while (i <= 8) while (i <= 8)
prbrg (i++, *p++); prbrg (i++, *p++);
@ -514,7 +514,7 @@ do_i2cinfo (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
volatile i2c8xx_t *i2c = &immap->im_i2c; volatile i2c8xx_t *i2c = &immap->im_i2c;
volatile cpm8xx_t *cp = &immap->im_cpm; volatile cpm8xx_t *cp = &immap->im_cpm;
volatile iic_t *iip = (iic_t *) & cp->cp_dparam[PROFF_IIC]; volatile iic_t *iip = (iic_t *) & cp->cp_dparam[PROFF_IIC];
#elif defined(CONFIG_8260) #elif defined(CONFIG_MPC8260)
volatile i2c8260_t *i2c = &immap->im_i2c; volatile i2c8260_t *i2c = &immap->im_i2c;
volatile iic_t *iip; volatile iic_t *iip;
uint dpaddr; uint dpaddr;
@ -614,7 +614,7 @@ U_BOOT_CMD(
"" ""
); );
#ifdef CONFIG_8260 #ifdef CONFIG_MPC8260
U_BOOT_CMD( U_BOOT_CMD(
icinfo, 1, 1, do_icinfo, icinfo, 1, 1, do_icinfo,
"print Interrupt Controller registers", "print Interrupt Controller registers",

@ -11,7 +11,7 @@ extra-$(CONFIG_SMC911X) += smc911x_eeprom
extra-$(CONFIG_SPI_FLASH_ATMEL) += atmel_df_pow2 extra-$(CONFIG_SPI_FLASH_ATMEL) += atmel_df_pow2
extra-$(CONFIG_MPC5xxx) += interrupt extra-$(CONFIG_MPC5xxx) += interrupt
extra-$(CONFIG_8xx) += test_burst timer extra-$(CONFIG_8xx) += test_burst timer
extra-$(CONFIG_8260) += mem_to_mem_idma2intr extra-$(CONFIG_MPC8260) += mem_to_mem_idma2intr
extra-$(CONFIG_PPC) += sched extra-$(CONFIG_PPC) += sched
# #

@ -37,7 +37,7 @@ typedef struct bd_info {
unsigned long bi_dsp_freq; /* dsp core frequency */ unsigned long bi_dsp_freq; /* dsp core frequency */
unsigned long bi_ddr_freq; /* ddr frequency */ unsigned long bi_ddr_freq; /* ddr frequency */
#endif #endif
#if defined(CONFIG_5xx) || defined(CONFIG_8xx) || defined(CONFIG_8260) \ #if defined(CONFIG_5xx) || defined(CONFIG_8xx) || defined(CONFIG_MPC8260) \
|| defined(CONFIG_E500) || defined(CONFIG_MPC86xx) || defined(CONFIG_E500) || defined(CONFIG_MPC86xx)
unsigned long bi_immr_base; /* base of IMMR register */ unsigned long bi_immr_base; /* base of IMMR register */
#endif #endif

@ -52,16 +52,13 @@ typedef volatile unsigned char vu_char;
#include <mpc5xxx.h> #include <mpc5xxx.h>
#elif defined(CONFIG_MPC512X) #elif defined(CONFIG_MPC512X)
#include <asm/immap_512x.h> #include <asm/immap_512x.h>
#elif defined(CONFIG_8260) #elif defined(CONFIG_MPC8260)
#if defined(CONFIG_MPC8247) \ #if defined(CONFIG_MPC8247) \
|| defined(CONFIG_MPC8248) \ || defined(CONFIG_MPC8248) \
|| defined(CONFIG_MPC8271) \ || defined(CONFIG_MPC8271) \
|| defined(CONFIG_MPC8272) || defined(CONFIG_MPC8272)
#define CONFIG_MPC8272_FAMILY 1 #define CONFIG_MPC8272_FAMILY 1
#endif #endif
#if defined(CONFIG_MPC8272_FAMILY)
#define CONFIG_MPC8260 1
#endif
#include <asm/immap_8260.h> #include <asm/immap_8260.h>
#endif #endif
#ifdef CONFIG_MPC86xx #ifdef CONFIG_MPC86xx
@ -669,7 +666,7 @@ int get_clocks (void);
int get_clocks_866 (void); int get_clocks_866 (void);
int sdram_adjust_866 (void); int sdram_adjust_866 (void);
int adjust_sdram_tbs_8xx (void); int adjust_sdram_tbs_8xx (void);
#if defined(CONFIG_8260) #if defined(CONFIG_MPC8260)
int prt_8260_clks (void); int prt_8260_clks (void);
#elif defined(CONFIG_MPC5xxx) #elif defined(CONFIG_MPC5xxx)
int prt_mpc5xxx_clks (void); int prt_mpc5xxx_clks (void);
@ -737,7 +734,7 @@ void get_sys_info ( sys_info_t * );
#endif #endif
/* $(CPU)/cpu_init.c */ /* $(CPU)/cpu_init.c */
#if defined(CONFIG_8xx) || defined(CONFIG_8260) #if defined(CONFIG_8xx) || defined(CONFIG_MPC8260)
void cpu_init_f (volatile immap_t *immr); void cpu_init_f (volatile immap_t *immr);
#endif #endif
#if defined(CONFIG_4xx) || defined(CONFIG_MPC85xx) || defined(CONFIG_MCF52x2) ||defined(CONFIG_MPC86xx) #if defined(CONFIG_4xx) || defined(CONFIG_MPC85xx) || defined(CONFIG_MCF52x2) ||defined(CONFIG_MPC86xx)
@ -745,7 +742,7 @@ void cpu_init_f (void);
#endif #endif
int cpu_init_r (void); int cpu_init_r (void);
#if defined(CONFIG_8260) #if defined(CONFIG_MPC8260)
int prt_8260_rsr (void); int prt_8260_rsr (void);
#elif defined(CONFIG_MPC83xx) #elif defined(CONFIG_MPC83xx)
int prt_83xx_rsr (void); int prt_83xx_rsr (void);

@ -17,7 +17,6 @@
* (easy to change) * (easy to change)
*/ */
#define CONFIG_MPC8260 1 /* This is an MPC8260 CPU */
#define CONFIG_CPU86 1 /* ...on a CPU86 board */ #define CONFIG_CPU86 1 /* ...on a CPU86 board */
#define CONFIG_CPM2 1 /* Has a CPM2 */ #define CONFIG_CPM2 1 /* Has a CPM2 */

@ -17,7 +17,6 @@
* (easy to change) * (easy to change)
*/ */
#define CONFIG_MPC8260 1 /* This is an MPC8260 CPU */
#define CONFIG_CPU87 1 /* ...on a CPU87 board */ #define CONFIG_CPU87 1 /* ...on a CPU87 board */
#define CONFIG_PCI #define CONFIG_PCI
#define CONFIG_CPM2 1 /* Has a CPM2 */ #define CONFIG_CPM2 1 /* Has a CPM2 */

@ -17,7 +17,6 @@
* (easy to change) * (easy to change)
*/ */
#define CONFIG_MPC8260 1 /* This is a MPC8260 CPU */
#define CONFIG_MPC8272_FAMILY 1 #define CONFIG_MPC8272_FAMILY 1
#define CONFIG_IDS8247 1 #define CONFIG_IDS8247 1
#define CPU_ID_STR "MPC8247" #define CPU_ID_STR "MPC8247"

@ -19,7 +19,6 @@
* (easy to change) * (easy to change)
*/ */
#define CONFIG_MPC8260 1 /* This is an MPC8260 CPU */
#define CONFIG_IPHASE4539 1 /* ...on a Interphase 4539 PMC */ #define CONFIG_IPHASE4539 1 /* ...on a Interphase 4539 PMC */
#define CONFIG_SYS_TEXT_BASE 0xffb00000 #define CONFIG_SYS_TEXT_BASE 0xffb00000

@ -13,7 +13,6 @@
#ifndef __CONFIG_H #ifndef __CONFIG_H
#define __CONFIG_H #define __CONFIG_H
#define CONFIG_MPC8260 /* This is an MPC8260 CPU */
#define CONFIG_ISPAN /* ...on one of Interphase iSPAN boards */ #define CONFIG_ISPAN /* ...on one of Interphase iSPAN boards */
#define CONFIG_CPM2 1 /* Has a CPM2 */ #define CONFIG_CPM2 1 /* Has a CPM2 */

@ -64,8 +64,6 @@
* details. :-( * details. :-(
*/ */
#define CONFIG_MPC8272 1 #define CONFIG_MPC8272 1
#else
#define CONFIG_MPC8260 1
#endif /* CONFIG_ADSTYPE == CONFIG_SYS_8272ADS */ #endif /* CONFIG_ADSTYPE == CONFIG_SYS_8272ADS */
#define CONFIG_BOARD_EARLY_INIT_F 1 /* Call board_early_init_f */ #define CONFIG_BOARD_EARLY_INIT_F 1 /* Call board_early_init_f */

@ -33,7 +33,6 @@
* (easy to change) * (easy to change)
*/ */
#define CONFIG_MPC8260 1 /* This is an MPC8260 CPU */
#define CONFIG_MPC8266ADS 1 /* ...on motorola ADS board */ #define CONFIG_MPC8266ADS 1 /* ...on motorola ADS board */
#define CONFIG_CPM2 1 /* Has a CPM2 */ #define CONFIG_CPM2 1 /* Has a CPM2 */

@ -19,7 +19,6 @@
* (easy to change) * (easy to change)
*/ */
#define CONFIG_MPC8260 1 /* This is a MPC8260 CPU */
#define CONFIG_PM826 1 /* ...on a PM8260 module */ #define CONFIG_PM826 1 /* ...on a PM8260 module */
#define CONFIG_CPM2 1 /* Has a CPM2 */ #define CONFIG_CPM2 1 /* Has a CPM2 */

@ -19,7 +19,6 @@
* (easy to change) * (easy to change)
*/ */
#define CONFIG_MPC8260 1 /* This is a MPC8260 CPU */
#define CONFIG_PM828 1 /* ...on a PM828 module */ #define CONFIG_PM828 1 /* ...on a PM828 module */
#define CONFIG_CPM2 1 /* Has a CPM2 */ #define CONFIG_CPM2 1 /* Has a CPM2 */

@ -184,7 +184,6 @@
* *
*****************************************************************************/ *****************************************************************************/
#define CONFIG_MPC8260 1 /* This is an MPC8260 CPU */
#define CONFIG_RPXSUPER 1 /* on an Embedded Planet RPX Super Board */ #define CONFIG_RPXSUPER 1 /* on an Embedded Planet RPX Super Board */
#define CONFIG_CPM2 1 /* Has a CPM2 */ #define CONFIG_CPM2 1 /* Has a CPM2 */

@ -13,7 +13,6 @@
#ifdef CONFIG_MPC8248 #ifdef CONFIG_MPC8248
#define CPU_ID_STR "MPC8248" #define CPU_ID_STR "MPC8248"
#else #else
#define CONFIG_MPC8260
#define CPU_ID_STR "MPC8250" #define CPU_ID_STR "MPC8250"
#endif /* CONFIG_MPC8248 */ #endif /* CONFIG_MPC8248 */

@ -30,7 +30,6 @@
#define CONFIG_SYS_TEXT_BASE 0x40000000 #define CONFIG_SYS_TEXT_BASE 0x40000000
#define CONFIG_MPC8260 1 /* This is a MPC8260 CPU */
#if 0 #if 0
#define CONFIG_TQM8260 100 /* ...on a TQM8260 module Rev.100 */ #define CONFIG_TQM8260 100 /* ...on a TQM8260 module Rev.100 */

@ -17,7 +17,6 @@
* (easy to change) * (easy to change)
*/ */
#define CONFIG_MPC8260 1 /* This is a MPC8260 CPU */
#define CONFIG_MPC8272_FAMILY 1 #define CONFIG_MPC8272_FAMILY 1
#define CONFIG_TQM8272 1 #define CONFIG_TQM8272 1

@ -11,7 +11,6 @@
#ifndef __CONFIG_H #ifndef __CONFIG_H
#define __CONFIG_H #define __CONFIG_H
#define CONFIG_MPC8260 1 /* This is an MPC8260 CPU */
#define CONFIG_ZPC1900 1 /* ...on Zephyr ZPC.1900 board */ #define CONFIG_ZPC1900 1 /* ...on Zephyr ZPC.1900 board */
#define CONFIG_SYS_TEXT_BASE 0xFE000000 #define CONFIG_SYS_TEXT_BASE 0xFE000000

@ -17,7 +17,6 @@
* (easy to change) * (easy to change)
*/ */
#define CONFIG_MPC8260 1 /* This is an MPC8260 CPU */
#define CONFIG_ATC 1 /* ...on a ATC board */ #define CONFIG_ATC 1 /* ...on a ATC board */
#define CONFIG_CPM2 1 /* Has a CPM2 */ #define CONFIG_CPM2 1 /* Has a CPM2 */

@ -325,7 +325,6 @@
* *
*****************************************************************************/ *****************************************************************************/
#define CONFIG_MPC8260 1 /* This is an MPC8260 CPU */
#define CONFIG_EP8260 11 /* on an Embedded Planet EP8260 Board, Rev. 11 */ #define CONFIG_EP8260 11 /* on an Embedded Planet EP8260 Board, Rev. 11 */
#define CONFIG_BOARD_EARLY_INIT_F 1 /* Call board_early_init_f */ #define CONFIG_BOARD_EARLY_INIT_F 1 /* Call board_early_init_f */

@ -9,7 +9,6 @@
#ifndef __CONFIG_H #ifndef __CONFIG_H
#define __CONFIG_H #define __CONFIG_H
#define CONFIG_MPC8260
#define CPU_ID_STR "MPC8270" #define CPU_ID_STR "MPC8270"
#define CONFIG_EP82XXM /* Embedded Planet EP82xxM H 1.0 board */ #define CONFIG_EP82XXM /* Embedded Planet EP82xxM H 1.0 board */

@ -325,7 +325,6 @@
* *
*****************************************************************************/ *****************************************************************************/
#define CONFIG_MPC8260 1 /* This is an MPC8260 CPU */
#define CONFIG_GW8260 1 /* on an GW8260 Board */ #define CONFIG_GW8260 1 /* on an GW8260 Board */
#define CONFIG_CPM2 1 /* Has a CPM2 */ #define CONFIG_CPM2 1 /* Has a CPM2 */

@ -17,7 +17,6 @@
* (easy to change) * (easy to change)
*/ */
#define CONFIG_MPC8260 1 /* This is an MPC8260 CPU */
#define CONFIG_HYMOD 1 /* ...on a Hymod board */ #define CONFIG_HYMOD 1 /* ...on a Hymod board */
#define CONFIG_CPM2 1 /* Has a CPM2 */ #define CONFIG_CPM2 1 /* Has a CPM2 */

@ -13,8 +13,6 @@
* (easy to change) * (easy to change)
*/ */
#define CONFIG_8260 1
#define CONFIG_MPC8260 1
#define CONFIG_MUAS3001 1 #define CONFIG_MUAS3001 1
#define CONFIG_SYS_TEXT_BASE 0xFF000000 #define CONFIG_SYS_TEXT_BASE 0xFF000000

@ -293,7 +293,6 @@
* *
*****************************************************************************/ *****************************************************************************/
#define CONFIG_MPC8260 1 /* This is an MPC8260 CPU */
#define CONFIG_PPMC8260 1 /* on an Wind River PPMC8260 Board */ #define CONFIG_PPMC8260 1 /* on an Wind River PPMC8260 Board */
#define CONFIG_CPM2 1 /* Has a CPM2 */ #define CONFIG_CPM2 1 /* Has a CPM2 */

@ -19,7 +19,6 @@
* (easy to change) * (easy to change)
*/ */
#define CONFIG_MPC8260 1 /* This is an MPC8260 CPU */
#define CONFIG_RSD_PROTO 1 /* on a R&S Protocol Board */ #define CONFIG_RSD_PROTO 1 /* on a R&S Protocol Board */
#define CONFIG_CPM2 1 /* Has a CPM2 */ #define CONFIG_CPM2 1 /* Has a CPM2 */

@ -524,7 +524,6 @@
* *
*****************************************************************************/ *****************************************************************************/
#define CONFIG_MPC8260 1 /* This is an MPC8260 CPU */
#define CONFIG_SACSng 1 /* munged for the SACSng */ #define CONFIG_SACSng 1 /* munged for the SACSng */
#define CONFIG_CPM2 1 /* Has a CPM2 */ #define CONFIG_CPM2 1 /* Has a CPM2 */

@ -135,7 +135,7 @@
#define PLPRCR 0x00000284 #define PLPRCR 0x00000284
#elif defined(CONFIG_8260) #elif defined(CONFIG_MPC8260)
#define HID2 1011 #define HID2 1011

Loading…
Cancel
Save