From: wdenk Date: Tue, 16 Jul 2002 21:29:14 +0000 (+0000) Subject: Moved board config files into separate directory; X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=1c0ef71a41e45dd94a0298999dcde7335fee5730;p=users%2Frw%2Fppcboot.git Moved board config files into separate directory; simplified Makefile by using external shell script prepare for other architectures in include/asm-* (Linux-like) --- diff --git a/CHANGELOG b/CHANGELOG index d3425b8..1fb0349 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -2,6 +2,10 @@ Modifications for 1.2.0: ====================================================================== +* Moved board config files into separate directory; + simplified Makefile by using external shell script + prepare for other architectures in include/asm-* (Linux-like) + * Prepare for merging ARMBoot sources to common tree: - update include/linux/types.h, and associated fixes - add endianess fixes to network code diff --git a/Makefile b/Makefile index 8ea071b..39b8b8f 100644 --- a/Makefile +++ b/Makefile @@ -147,162 +147,77 @@ endif unconfig: rm -f include/config.h include/config.mk +#======================================================================== +# PowerPC +#======================================================================== ######################################################################### ## MPC8xx Systems ######################################################################### ADS860_config: unconfig - @echo "Configuring for $(@:_config=) Board..." ; \ - cd ./include ; \ - echo "ARCH = ppc" > config.mk ; \ - echo "BOARD = fads" >>config.mk ; \ - echo "CPU = mpc8xx" >>config.mk ; \ - echo "#include " >config.h + @./mkconfig $(@:_config=) ppc mpc8xx fads AMX860_config : unconfig - @echo "Configuring for $(@:_config=) Board..." ; \ - cd ./include ; \ - echo "ARCH = ppc" > config.mk ; \ - echo "BOARD = amx860" >>config.mk ; \ - echo "CPU = mpc8xx" >>config.mk ; \ - echo "VENDOR= westel" >>config.mk ; \ - echo "#include " >config.h + @./mkconfig $(@:_config=) ppc mpc8xx amx860 westel c2mon_config: unconfig - @echo "Configuring for $(@:_config=) Board..." ; \ - cd ./include ; \ - echo "ARCH = ppc" > config.mk ; \ - echo "BOARD = c2mon" >>config.mk ; \ - echo "CPU = mpc8xx" >>config.mk ; \ - echo "#include " >config.h + @./mkconfig $(@:_config=) ppc mpc8xx c2mon CCM_config: unconfig - @echo "Configuring for $(@:_config=) Board..." ; \ - cd ./include ; \ - echo "ARCH = ppc" > config.mk ; \ - echo "BOARD = CCM" >>config.mk ; \ - echo "CPU = mpc8xx" >>config.mk ; \ - echo "VENDOR = siemens" >>config.mk ; \ - echo "#include " >config.h + @./mkconfig $(@:_config=) ppc mpc8xx CCM siemens SCM_config: unconfig - @echo "Configuring for $(@:_config=) Board..." ; \ - cd ./include ; \ - echo "ARCH = ppc" > config.mk ; \ - echo "BOARD = SCM" >>config.mk ; \ - echo "CPU = mpc8260" >>config.mk ; \ - echo "VENDOR = siemens" >>config.mk ; \ - echo "#include " >config.h + @./mkconfig $(@:_config=) ppc mpc8xx SCM siemens cogent_mpc8xx_config: unconfig - @echo "Configuring for $(@:_config=) Board..." ; \ - cd ./include ; \ - echo "ARCH = ppc" > config.mk ; \ - echo "BOARD = cogent" >>config.mk ; \ - echo "CPU = mpc8xx" >>config.mk ; \ - echo "#include " >config.h + @./mkconfig $(@:_config=) ppc mpc8xx cogent ESTEEM192E_config: unconfig - @echo "Configuring for $(@:_config=) Board..." ; \ - cd ./include ; \ - echo "ARCH = ppc" > config.mk ; \ - echo "BOARD = esteem192e" >>config.mk ; \ - echo "CPU = mpc8xx" >>config.mk ; \ - echo "#include " >config.h + @./mkconfig $(@:_config=) ppc mpc8xx esteem192e ETX094_config : unconfig - @echo "Configuring for $(@:_config=) Board..." ; \ - cd ./include ; \ - echo "ARCH = ppc" > config.mk ; \ - echo "BOARD = etx094" >>config.mk ; \ - echo "CPU = mpc8xx" >>config.mk ; \ - echo "#include " >config.h + @./mkconfig $(@:_config=) ppc mpc8xx etx094 FADS823_config \ FADS850SAR_config \ FADS860T_config: unconfig - @echo "Configuring for $(@:_config=) Board..." ; \ - cd ./include ; \ - echo "ARCH = ppc" > config.mk ; \ - echo "BOARD = fads" >>config.mk ; \ - echo "CPU = mpc8xx" >>config.mk ; \ - echo "#include " >config.h + @./mkconfig $(@:_config=) ppc mpc8xx fads FLAGADM_config: unconfig - @echo "Configuring for $(@:_config=) Board..." ; \ - cd ./include ; \ - echo "ARCH = ppc" > config.mk ; \ - echo "BOARD = flagadm" >>config.mk ; \ - echo "CPU = mpc8xx" >>config.mk ; \ - echo "#include " >config.h + @./mkconfig $(@:_config=) ppc mpc8xx flagadm GENIETV_config: unconfig - @echo "Configuring for $(@:_config=) Board..." ; \ - cd ./include ; \ - echo "ARCH = ppc" > config.mk ; \ - echo "BOARD = genietv" >>config.mk ; \ - echo "CPU = mpc8xx" >>config.mk ; \ - echo "#include " >config.h + @./mkconfig $(@:_config=) ppc mpc8xx genietv GTH_config: unconfig - @echo "Configuring for $(@:_config=) Board..." ; \ - cd ./include ; \ - echo "ARCH = ppc" > config.mk ; \ - echo "BOARD = gth" >>config.mk ; \ - echo "CPU = mpc8xx" >>config.mk ; \ - echo "#include " >config.h + @./mkconfig $(@:_config=) ppc mpc8xx gth hermes_config : unconfig - @echo "Configuring for $(@:_config=) Board..." ; \ - cd ./include ; \ - echo "ARCH = ppc" > config.mk ; \ - echo "BOARD = hermes" >>config.mk ; \ - echo "CPU = mpc8xx" >>config.mk ; \ - echo "#include " >config.h + @./mkconfig $(@:_config=) ppc mpc8xx hermes IAD210_config: unconfig - @echo "Configuring for $(@:_config=) Board..." ; \ - cd ./include ; \ - echo "ARCH = ppc" > config.mk ; \ - echo "BOARD = IAD210" >>config.mk ; \ - echo "CPU = mpc8xx" >>config.mk ; \ - echo "VENDOR = siemens" >>config.mk ; \ - echo "#include " >config.h + @./mkconfig $(@:_config=) ppc mpc8xx IAD210 siemens xtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1)) ICU862_100MHz_config \ ICU862_config: unconfig - @echo "Configuring for $(call xtract_ICU862,$@) Board..." ; \ - cd ./include ; \ - echo "ARCH = ppc" > config.mk ; \ - echo "BOARD = icu862" >>config.mk ; \ - echo "CPU = mpc8xx" >>config.mk ; - @echo "/* Automatically generated - do not edit */" >include/config.h + @ >include/config.h @[ -z "$(findstring _100MHz,$@)" ] || \ - { echo "#define CONFIG_100MHz" >>include/config.h ; \ + { echo "#define CONFIG_100MHz" >>include/config.h ; \ echo "... with 100MHz system clock" ; \ } - @echo "#include " >>include/config.h + @./mkconfig -a $(call xtract_ICU862,$@) ppc mpc8xx icu862 IP860_config : unconfig - @echo "Configuring for $(@:_config=) Board..." ; \ - cd ./include ; \ - echo "ARCH = ppc" > config.mk ; \ - echo "BOARD = ip860" >>config.mk ; \ - echo "CPU = mpc8xx" >>config.mk ; \ - echo "#include " >config.h + @./mkconfig $(@:_config=) ppc mpc8xx ip860 IVML24_256_config \ IVML24_128_config \ IVML24_config: unconfig - @echo "Configuring for $(@:_config=) Board..." ; \ - cd ./include ; \ - echo "ARCH = ppc" > config.mk ; \ - echo "BOARD = ivm" >>config.mk ; \ - echo "CPU = mpc8xx" >>config.mk + @ >include/config.h @[ -z "$(findstring IVML24_config,$@)" ] || \ - { echo "#define CONFIG_IVML24_16M" >include/config.h ; \ + { echo "#define CONFIG_IVML24_16M" >>include/config.h ; \ } @[ -z "$(findstring IVML24_128_config,$@)" ] || \ { echo "#define CONFIG_IVML24_32M" >>include/config.h ; \ @@ -310,18 +225,14 @@ IVML24_config: unconfig @[ -z "$(findstring IVML24_256_config,$@)" ] || \ { echo "#define CONFIG_IVML24_64M" >>include/config.h ; \ } - @echo "#include " >>include/config.h + @./mkconfig -a IVML24 ppc mpc8xx ivm IVMS8_256_config \ IVMS8_128_config \ IVMS8_config: unconfig - @echo "Configuring for $(@:_config=) Board..." ; \ - cd ./include ; \ - echo "ARCH = ppc" > config.mk ; \ - echo "BOARD = ivm" >>config.mk ; \ - echo "CPU = mpc8xx" >>config.mk + @ >include/config.h @[ -z "$(findstring IVMS8_config,$@)" ] || \ - { echo "#define CONFIG_IVMS8_16M" >include/config.h ; \ + { echo "#define CONFIG_IVMS8_16M" >>include/config.h ; \ } @[ -z "$(findstring IVMS8_128_config,$@)" ] || \ { echo "#define CONFIG_IVMS8_32M" >>include/config.h ; \ @@ -329,114 +240,47 @@ IVMS8_config: unconfig @[ -z "$(findstring IVMS8_256_config,$@)" ] || \ { echo "#define CONFIG_IVMS8_64M" >>include/config.h ; \ } - @echo "#include " >>include/config.h + @./mkconfig -a IVMS8 ppc mpc8xx ivm LANTEC_config : unconfig - @echo "Configuring for $(@:_config=) Board..." ; \ - cd ./include ; \ - echo "ARCH = ppc" > config.mk ; \ - echo "BOARD = lantec" >>config.mk ; \ - echo "CPU = mpc8xx" >>config.mk ; \ - echo "#include " >config.h + @./mkconfig $(@:_config=) ppc mpc8xx lantec lwmon_config: unconfig - @echo "Configuring for $(@:_config=) Board..." ; \ - cd ./include ; \ - echo "ARCH = ppc" > config.mk ; \ - echo "BOARD = lwmon" >>config.mk ; \ - echo "CPU = mpc8xx" >>config.mk ; \ - echo "#include " >config.h + @./mkconfig $(@:_config=) ppc mpc8xx lwmon MBX_config \ MBX860T_config: unconfig - @echo "Configuring for $(@:_config=) Board..." ; \ - cd ./include ; \ - echo "ARCH = ppc" > config.mk ; \ - echo "BOARD = mbx8xx" >>config.mk ; \ - echo "CPU = mpc8xx" >>config.mk ; \ - echo "#include " >config.h + @./mkconfig $(@:_config=) ppc mpc8xx mbx8xx MHPC_config: unconfig - @echo "Configuring for $(@:_config=) Board..." ; \ - cd ./include ; \ - echo "ARCH = ppc" > config.mk ; \ - echo "CPU = mpc8xx" >>config.mk ; \ - echo "VENDOR= eltec" >>config.mk ; \ - echo "BOARD = mhpc" >>config.mk ; \ - echo "#include " >config.h + @./mkconfig $(@:_config=) ppc mpc8xx mhpc eltec MVS1_config : unconfig - @echo "Configuring for $(@:_config=) Board..." ; \ - cd include ; \ - echo "ARCH = ppc" > config.mk ; \ - echo "BOARD = mvs1" >>config.mk ; \ - echo "CPU = mpc8xx" >>config.mk ; \ - echo "#include " >config.h + @./mkconfig $(@:_config=) ppc mpc8xx mvs1 NX823_config: unconfig - @echo "Configuring for $(@:_config=) Board..." ; \ - cd ./include ; \ - echo "ARCH = ppc" > config.mk ; \ - echo "BOARD = nx823" >>config.mk ; \ - echo "CPU = mpc8xx" >>config.mk ; \ - echo "#include " >config.h + @./mkconfig $(@:_config=) ppc mpc8xx nx823 pcu_e_config: unconfig - @echo "Configuring for $(@:_config=) Board..." ; \ - cd ./include ; \ - echo "ARCH = ppc" > config.mk ; \ - echo "BOARD = pcu_e" >>config.mk ; \ - echo "CPU = mpc8xx" >>config.mk ; \ - echo "VENDOR = siemens" >>config.mk ; \ - echo "#include " >config.h + @./mkconfig $(@:_config=) ppc mpc8xx pcu_e siemens R360MPI_config: unconfig - @echo "Configuring for $(@:_config=) Board..." ; \ - cd include ; \ - echo "ARCH = ppc" > config.mk ; \ - echo "BOARD = r360mpi" >>config.mk ; \ - echo "CPU = mpc8xx" >>config.mk ; \ - echo "#include " >config.h + @./mkconfig $(@:_config=) ppc mpc8xx r360mpi RPXClassic_config: unconfig - @echo "Configuring for $(@:_config=) Board..." ; \ - cd include ; \ - echo "ARCH = ppc" > config.mk ; \ - echo "BOARD = RPXClassic" >>config.mk ; \ - echo "CPU = mpc8xx" >>config.mk ; \ - echo "#include " >config.h + @./mkconfig $(@:_config=) ppc mpc8xx RPXClassic RPXlite_config: unconfig - @echo "Configuring for $(@:_config=) Board..." ; \ - cd ./include ; \ - echo "ARCH = ppc" > config.mk ; \ - echo "BOARD = RPXlite" >>config.mk ; \ - echo "CPU = mpc8xx" >>config.mk ; \ - echo "#include " >config.h + @./mkconfig $(@:_config=) ppc mpc8xx RPXlite SM850_config : unconfig - @echo "Configuring for $(@:_config=) Board..." ; \ - cd ./include ; \ - echo "ARCH = ppc" > config.mk ; \ - echo "BOARD = tqm8xx" >>config.mk ; \ - echo "CPU = mpc8xx" >>config.mk ; \ - echo "#include " >config.h + @./mkconfig $(@:_config=) ppc mpc8xx tqm8xx SPD823TS_config: unconfig - @echo "Configuring for $(@:_config=) Board..." ; \ - cd ./include ; \ - echo "ARCH = ppc" > config.mk ; \ - echo "BOARD = spd8xx" >>config.mk ; \ - echo "CPU = mpc8xx" >>config.mk ; \ - echo "#include " >config.h + @./mkconfig $(@:_config=) ppc mpc8xx spd8xx SXNI855T_config: unconfig - @echo "Configuring for $(@:_config=) Board..." ; \ - cd ./include ; \ - echo "ARCH = ppc" > config.mk ; \ - echo "BOARD = sixnet" >>config.mk ; \ - echo "CPU = mpc8xx" >>config.mk ; \ - echo "#include " >config.h + @./mkconfig $(@:_config=) ppc mpc8xx sixnet # Play some tricks for configuration selection # All boards can come with 50 MHz (default), 66MHz or 80MHz clock, @@ -466,12 +310,7 @@ TQM860L_80MHz_config \ TQM860L_FEC_config \ TQM860L_FEC_66MHz_config \ TQM860L_FEC_80MHz_config: unconfig - @echo "Configuring for $(call xtract_8xx,$@) Board..." ; \ - cd ./include ; \ - echo "ARCH = ppc" > config.mk ; \ - echo "BOARD = tqm8xx" >>config.mk ; \ - echo "CPU = mpc8xx" >>config.mk - @echo "/* Automatically generated - do not edit */" >include/config.h + @ >include/config.h @[ -z "$(findstring _FEC,$@)" ] || \ { echo "#define CONFIG_FEC_ENET" >>include/config.h ; \ echo "... with FEC support" ; \ @@ -489,210 +328,87 @@ TQM860L_FEC_80MHz_config: unconfig echo "#define CONFIG_NEC_NL6648BC20" >>include/config.h ; \ echo "... with LCD display" ; \ } - @echo "#include " >>include/config.h + @./mkconfig -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx TTTech_config: unconfig - @echo "Configuring for $@ Board..." ; \ - cd ./include ; \ - echo "ARCH = ppc" > config.mk ; \ - echo "BOARD = tqm8xx" >>config.mk ; \ - echo "CPU = mpc8xx" >>config.mk - @echo "/* Automatically generated - do not edit */" >include/config.h - @echo "#define CONFIG_LCD" >>include/config.h + @echo "#define CONFIG_LCD" >include/config.h @echo "#define CONFIG_SHARP_LQ104V7DS01" >>include/config.h - @echo "#include " >>include/config.h + @./mkconfig -a TQM823L ppc mpc8xx tqm8xx ######################################################################### ## PPC4xx Systems ######################################################################### ADCIOP_config: unconfig - @echo "Configuring for $(@:_config=) Board..." ; \ - cd ./include ; \ - echo "ARCH = ppc" > config.mk ; \ - echo "BOARD = adciop" >>config.mk ; \ - echo "CPU = ppc4xx" >>config.mk ; \ - echo "VENDOR = esd" >>config.mk ; \ - echo "#include " >config.h + @./mkconfig $(@:_config=) ppc ppc4xx adciop esd AR405_config: unconfig - @echo "Configuring for $(@:_config=) Board..." ; \ - cd ./include ; \ - echo "ARCH = ppc" > config.mk ; \ - echo "BOARD = ar405" >>config.mk ; \ - echo "CPU = ppc4xx" >>config.mk ; \ - echo "VENDOR = esd" >>config.mk ; \ - echo "#include " >config.h + @./mkconfig $(@:_config=) ppc ppc4xx ar405 esd CANBT_config: unconfig - @echo "Configuring for $(@:_config=) Board..." ; \ - cd ./include ; \ - echo "ARCH = ppc" > config.mk ; \ - echo "BOARD = canbt" >>config.mk ; \ - echo "CPU = ppc4xx" >>config.mk ; \ - echo "VENDOR = esd" >>config.mk ; \ - echo "#include " >config.h + @./mkconfig $(@:_config=) ppc ppc4xx canbt esd CPCI405_config \ CPCI4052_config: unconfig - @echo "Configuring for $(@:_config=) Board..." ; \ - cd ./include ; \ - echo "ARCH = ppc" > config.mk ; \ - echo "BOARD = cpci405" >>config.mk ; \ - echo "CPU = ppc4xx" >>config.mk ; \ - echo "VENDOR = esd" >>config.mk ; \ - echo "TARGET = $(@:_config=)" >>config.mk ; \ - echo "#include " >config.h + @./mkconfig $(@:_config=) ppc ppc4xx cpci405 esd + @echo "TARGET = $(@:_config=)" >>include/config.mk CPCIISER4_config: unconfig - @echo "Configuring for $(@:_config=) Board..." ; \ - cd ./include ; \ - echo "ARCH = ppc" > config.mk ; \ - echo "BOARD = cpciiser4">>config.mk ; \ - echo "CPU = ppc4xx" >>config.mk ; \ - echo "VENDOR = esd" >>config.mk ; \ - echo "#include " >config.h + @./mkconfig $(@:_config=) ppc ppc4xx cpciiser4 esd CRAYL1_config:unconfig - @echo "Configuring for $(@:_config=) Board..(SV2 L1)." ; \ - cd ./include ; \ - echo "ARCH = ppc" > config.mk ; \ - echo "BOARD = L1" >>config.mk ; \ - echo "CPU = ppc4xx" >>config.mk ; \ - echo "VENDOR = cray" >>config.mk ; \ - echo "#include " >config.h + @./mkconfig $(@:_config=) ppc ppc4xx L1 cray DASA_SIM_config: unconfig - @echo "Configuring for $(@:_config=) Board..." ; \ - cd ./include ; \ - echo "ARCH = ppc" > config.mk ; \ - echo "BOARD = dasa_sim" >>config.mk ; \ - echo "CPU = ppc4xx" >>config.mk ; \ - echo "VENDOR = esd" >>config.mk ; \ - echo "#include " >config.h + @./mkconfig $(@:_config=) ppc ppc4xx dasa_sim esd DU405_config: unconfig - @echo "Configuring for $(@:_config=) Board..." ; \ - cd ./include ; \ - echo "ARCH = ppc" > config.mk ; \ - echo "BOARD = du405" >>config.mk ; \ - echo "CPU = ppc4xx" >>config.mk ; \ - echo "VENDOR = esd" >>config.mk ; \ - echo "#include " >config.h + @./mkconfig $(@:_config=) ppc ppc4xx du405 esd ERIC_config:unconfig - @echo "Configuring for $(@:_config=) Board..." ; \ - cd ./include ; \ - echo "ARCH = ppc" > config.mk ; \ - echo "BOARD = eric" >>config.mk ; \ - echo "CPU = ppc4xx" >>config.mk ; \ - echo "#include " >config.h + @./mkconfig $(@:_config=) ppc ppc4xx eric MIP405_config:unconfig - @echo "Configuring for $(@:_config=) Board..." ; \ - cd ./include ; \ - echo "ARCH = ppc" > config.mk ; \ - echo "BOARD = mip405" >>config.mk ; \ - echo "CPU = ppc4xx" >>config.mk ; \ - echo "VENDOR = mpl" >>config.mk ; \ - echo "#include " >config.h + @./mkconfig $(@:_config=) ppc ppc4xx mip405 mpl OCRTC_config \ ORSG_config: unconfig - @echo "Configuring for $(@:_config=) Board..." ; \ - cd ./include ; \ - echo "ARCH = ppc" > config.mk ; \ - echo "BOARD = ocrtc" >>config.mk ; \ - echo "CPU = ppc4xx" >>config.mk ; \ - echo "VENDOR = esd" >>config.mk ; \ - echo "#include " >config.h + @./mkconfig $(@:_config=) ppc ppc4xx ocrtc esd PCI405_config: unconfig - @echo "Configuring for $(@:_config=) Board..." ; \ - cd ./include ; \ - echo "ARCH = ppc" > config.mk ; \ - echo "BOARD = pci405" >>config.mk ; \ - echo "CPU = ppc4xx" >>config.mk ; \ - echo "VENDOR = esd" >>config.mk ; \ - echo "#include " >config.h + @./mkconfig $(@:_config=) ppc ppc4xx pci405 esd PIP405_config:unconfig - @echo "Configuring for $(@:_config=) Board..." ; \ - cd ./include ; \ - echo "ARCH = ppc" > config.mk ; \ - echo "BOARD = pip405" >>config.mk ; \ - echo "CPU = ppc4xx" >>config.mk ; \ - echo "VENDOR = mpl" >>config.mk ; \ - echo "#include " >config.h + @./mkconfig $(@:_config=) ppc ppc4xx pip405 mpl W7OLMC_config \ W7OLMG_config: unconfig - @echo "Configuring for $(@:_config=) Board..." ; \ - cd ./include ; \ - echo "ARCH = ppc" > config.mk ; \ - echo "BOARD = w7o" >>config.mk ; \ - echo "CPU = ppc4xx" >>config.mk ; \ - echo "#include " >config.h + @./mkconfig $(@:_config=) ppc ppc4xx w7o WALNUT405_config:unconfig - @echo "Configuring for $(@:_config=) Board..." ; \ - cd ./include ; \ - echo "ARCH = ppc" > config.mk ; \ - echo "BOARD = walnut405">>config.mk ; \ - echo "CPU = ppc4xx" >>config.mk ; \ - echo "#include " >config.h + @./mkconfig $(@:_config=) ppc ppc4xx walnut405 ######################################################################### ## MPC824x Systems ######################################################################### CU824_config: unconfig - @echo "Configuring for $(@:_config=) Board..." ; \ - cd ./include ; \ - echo "ARCH = ppc" > config.mk ; \ - echo "BOARD = cu824" >>config.mk ; \ - echo "CPU = mpc824x" >>config.mk ; \ - echo "#include " >config.h + @./mkconfig $(@:_config=) ppc mpc824x cu824 MOUSSE_config: unconfig - @echo "Configuring for $(@:_config=) Board..." ; \ - cd ./include ; \ - echo "ARCH = ppc" > config.mk ; \ - echo "BOARD = mousse" >>config.mk ; \ - echo "CPU = mpc824x" >>config.mk ; \ - echo "#include " >config.h + @./mkconfig $(@:_config=) ppc mpc824x mousse MUSENKI_config: unconfig - @echo "Configuring for $(@:_config=) Board..." ; \ - cd ./include ; \ - echo "ARCH = ppc" > config.mk ; \ - echo "BOARD = musenki" >>config.mk ; \ - echo "CPU = mpc824x" >>config.mk ; \ - echo "#include " >config.h + @./mkconfig $(@:_config=) ppc mpc824x musenki OXC_config: unconfig - @echo "Configuring for $(@:_config=) Board..." ; \ - cd ./include ; \ - echo "ARCH = ppc" > config.mk ; \ - echo "BOARD = oxc" >>config.mk ; \ - echo "CPU = mpc824x" >>config.mk ; \ - echo "#include " >config.h + @./mkconfig $(@:_config=) ppc mpc824x oxc Sandpoint8240_config: unconfig - @echo "Configuring for $(@:_config=) Board..." ; \ - cd ./include ; \ - echo "ARCH = ppc" > config.mk ; \ - echo "BOARD = sandpoint">>config.mk ; \ - echo "CPU = mpc824x" >>config.mk ; \ - echo "#include " >config.h + @./mkconfig $(@:_config=) ppc mpc824x sandpoint Sandpoint8245_config: unconfig - @echo "Configuring for $(@:_config=) Board..." ; \ - cd ./include ; \ - echo "ARCH = ppc" > config.mk ; \ - echo "BOARD = sandpoint">>config.mk ; \ - echo "CPU = mpc824x" >>config.mk ; \ - echo "#include " >config.h + @./mkconfig $(@:_config=) ppc mpc824x sandpoint ######################################################################### @@ -701,20 +417,12 @@ Sandpoint8245_config: unconfig xtract_82xx = $(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1))))) cogent_mpc8260_config: unconfig - @echo "Configuring for $(@:_config=) Board..." ; \ - cd ./include ; \ - echo "ARCH = ppc" > config.mk ; \ - echo "BOARD = cogent" >>config.mk ; \ - echo "CPU = mpc8260" >>config.mk ; \ - echo "#include " >config.h + @./mkconfig $(@:_config=) ppc mpc8260 cogent CPU86_config \ CPU86_ROMBOOT_config: unconfig - @echo "Configuring for $(call xtract_82xx,$@) Board..." ; \ - cd ./include ; \ - echo "ARCH = ppc" > config.mk ; \ - echo "BOARD = cpu86" >>config.mk ; \ - echo "CPU = mpc8260" >>config.mk ; \ + @./mkconfig $(call xtract_82xx,$@) ppc mpc8260 cpu86 + @cd ./include ; \ if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ echo "CONFIG_BOOT_ROM = y" >> config.mk ; \ echo "... booting from 8-bit flash" ; \ @@ -722,111 +430,54 @@ CPU86_ROMBOOT_config: unconfig echo "CONFIG_BOOT_ROM = n" >> config.mk ; \ echo "... booting from 64-bit flash" ; \ fi; \ - echo "export CONFIG_BOOT_ROM" >>config.mk; - @echo "/* Automatically generated - do not edit */" >include/config.h - @echo "#include " >>include/config.h + echo "export CONFIG_BOOT_ROM" >> config.mk; ep8260_config: unconfig - @echo "Configuring for $(@:_config=) Board..." ; \ - cd ./include ; \ - echo "ARCH = ppc" > config.mk ; \ - echo "BOARD = ep8260" >>config.mk ; \ - echo "CPU = mpc8260" >>config.mk ; - @echo "/* Automatically generated - do not edit */" >include/config.h - @echo "#include " >>include/config.h + @./mkconfig $(@:_config=) ppc mpc8260 ep8260 gw8260_config: unconfig - @echo "Configuring for $(@:_config=) Board..." ; \ - cd ./include ; \ - echo "ARCH = ppc" > config.mk ; \ - echo "BOARD = gw8260" >>config.mk ; \ - echo "CPU = mpc8260" >>config.mk ; \ - echo "#include " >config.h + @./mkconfig $(@:_config=) ppc mpc8260 gw8260 hymod_config: unconfig - @echo "Configuring for $(@:_config=) Board..." ; \ - cd ./include ; \ - echo "ARCH = ppc" > config.mk ; \ - echo "BOARD = hymod" >>config.mk ; \ - echo "CPU = mpc8260" >>config.mk ; \ - echo "#include " >config.h + @./mkconfig $(@:_config=) ppc mpc8260 hymod IPHASE4539_config: unconfig - @echo "Configuring for $(@:_config=) Board..." ; \ - cd ./include ; \ - echo "ARCH = ppc" > config.mk ; \ - echo "BOARD = iphase4539" >>config.mk ; \ - echo "CPU = mpc8260" >>config.mk ; \ - echo "#include " >config.h + @./mkconfig $(@:_config=) ppc mpc8260 iphase4539 MPC8260ADS_config: unconfig - @echo "Configuring for $(@:_config=) Board..." ; \ - cd ./include ; \ - echo "ARCH = ppc" > config.mk ; \ - echo "BOARD = mpc8260ads" >>config.mk ; \ - echo "CPU = mpc8260" >>config.mk ; \ - echo "#include " >config.h + @./mkconfig $(@:_config=) ppc mpc8260 mpc8260ads PM826_config \ PM826_ROMBOOT_config: unconfig - @echo "Configuring for $(@:_config=) Board..." ; \ - cd ./include ; \ - echo "ARCH = ppc" > config.mk ; \ - echo "BOARD = pm826" >>config.mk ; \ - echo "CPU = mpc8260" >>config.mk ; \ + @./mkconfig $(call xtract_82xx,$@) ppc mpc8260 pm826 + @cd ./include ; \ if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ - echo "CONFIG_BOOT_ROM = y" >>config.mk ; \ + echo "CONFIG_BOOT_ROM = y" >> config.mk ; \ echo "... booting from 8-bit flash" ; \ else \ - echo "CONFIG_BOOT_ROM = n" >>config.mk ; \ + echo "CONFIG_BOOT_ROM = n" >> config.mk ; \ echo "... booting from 64-bit flash" ; \ fi; \ - echo "export CONFIG_BOOT_ROM" >>config.mk; \ - echo "#include " >config.h + echo "export CONFIG_BOOT_ROM" >> config.mk; \ ppmc8260_config: unconfig - @echo "Configuring for $(@:_config=) Board..." ; \ - cd ./include ; \ - echo "ARCH = ppc" > config.mk ; \ - echo "BOARD = ppmc8260" >>config.mk ; \ - echo "CPU = mpc8260" >>config.mk ; \ - echo "#include " >config.h + @./mkconfig $(@:_config=) ppc mpc8260 ppmc8260 RPXsuper_config: unconfig - @echo "Configuring for $(@:_config=) Board..." ; \ - cd ./include ; \ - echo "ARCH = ppc" > config.mk ; \ - echo "BOARD = rpxsuper" >>config.mk ; \ - echo "CPU = mpc8260" >>config.mk ; \ - echo "#include " >config.h + @./mkconfig $(@:_config=) ppc mpc8260 rpxsuper rsdproto_config: unconfig - @echo "Configuring for $(@:_config=) Board..." ; \ - cd ./include ; \ - echo "ARCH = ppc" > config.mk ; \ - echo "BOARD = rsdproto" >>config.mk ; \ - echo "CPU = mpc8260" >>config.mk ; \ - echo "#include " >config.h + @./mkconfig $(@:_config=) ppc mpc8260 rsdproto sbc8260_config: unconfig - @echo "Configuring for $(@:_config=) Board..." ; \ - cd ./include ; \ - echo "ARCH = ppc" > config.mk ; \ - echo "BOARD = sbc8260" >>config.mk ; \ - echo "CPU = mpc8260" >>config.mk ; \ - echo "#include " >config.h + @./mkconfig $(@:_config=) ppc mpc8260 sbc8260 TQM8260_config \ TQM8260_L2_config \ TQM8260_266MHz_config \ TQM8260_L2_266MHz_config \ TQM8260_300MHz_config: unconfig - @echo "Configuring for $(call xtract_82xx,$@) Board..." ; \ - cd ./include ; \ - echo "ARCH = ppc" > config.mk ; \ - echo "BOARD = tqm8260" >>config.mk ; \ - echo "CPU = mpc8260" >>config.mk ; - @echo "/* Automatically generated - do not edit */" >include/config.h + @ >include/config.h @if [ "$(findstring _L2_,$@)" ] ; then \ echo "#define CONFIG_L2_CACHE" >>include/config.h ; \ echo "... with L2 Cache support (60x Bus Mode)" ; \ @@ -835,14 +486,15 @@ TQM8260_300MHz_config: unconfig echo "... without L2 Cache support" ; \ fi @[ -z "$(findstring _266MHz,$@)" ] || \ - { echo "#define CONFIG_266MHz" >>include/config.h ; \ + { echo "#define CONFIG_266MHz" >>include/config.h ; \ echo "... with 266MHz system clock" ; \ } @[ -z "$(findstring _300MHz,$@)" ] || \ - { echo "#define CONFIG_300MHz" >>include/config.h ; \ + { echo "#define CONFIG_300MHz" >>include/config.h ; \ echo "... with 300MHz system clock" ; \ } - @echo "#include " >>include/config.h + @./mkconfig -a $(call xtract_82xx,$@) ppc mpc8260 tqm8260 + ######################################################################### ## 74xx/7xx Systems @@ -850,34 +502,18 @@ TQM8260_300MHz_config: unconfig EVB64260_config \ ZUMA_config: unconfig - @echo "Configuring for $(@:_config=) Board..." ; \ - cd ./include ; \ - echo "ARCH = ppc" > config.mk ; \ - echo "BOARD = evb64260" >>config.mk ; \ - echo "CPU = 74xx_7xx" >>config.mk ; \ - echo "#include " >config.h + @./mkconfig $(@:_config=) ppc 74xx_7xx evb64260 PCIPPC2_config \ PCIPPC6_config: unconfig - @echo "Configuring for $(@:_config=) Board..." ; \ - cd include ; \ - echo "ARCH = ppc" > config.mk ; \ - echo "BOARD = pcippc2" >>config.mk ; \ - echo "CPU = 74xx_7xx" >>config.mk ; \ - echo "#include " >config.h + @./mkconfig $(@:_config=) ppc 74xx_7xx pcippc2 ######################################################################### ## MPC7xx Systems ######################################################################### BAB750_config: unconfig - @echo "Configuring for $(@:_config=) Board..." ; \ - cd include ; \ - echo "ARCH = ppc" > config.mk ; \ - echo "VENDOR= eltec" >>config.mk ; \ - echo "BOARD = bab750" >>config.mk ; \ - echo "CPU = mpc75x" >>config.mk ; \ - echo "#include " >config.h + @./mkconfig $(@:_config=) ppc mpc75x bab750 eltec ######################################################################### diff --git a/board/mpl/mip405/init.S b/board/mpl/mip405/init.S index 9dc7910..33fc15a 100644 --- a/board/mpl/mip405/init.S +++ b/board/mpl/mip405/init.S @@ -41,7 +41,7 @@ #define _LINUX_CONFIG_H 1 /* avoid reading Linux autoconf.h file */ -#include "config_MIP405.h" +#include "configs/MIP405.h" #include #include diff --git a/board/mpl/pip405/init.S b/board/mpl/pip405/init.S index e3c0fbe..4a70ec9 100644 --- a/board/mpl/pip405/init.S +++ b/board/mpl/pip405/init.S @@ -41,7 +41,7 @@ #define _LINUX_CONFIG_H 1 /* avoid reading Linux autoconf.h file */ -#include "config_PIP405.h" +#include "configs/PIP405.h" #include #include diff --git a/include/asm/8xx_immap.h b/include/asm-ppc/8xx_immap.h similarity index 100% rename from include/asm/8xx_immap.h rename to include/asm-ppc/8xx_immap.h diff --git a/include/asm/atomic.h b/include/asm-ppc/atomic.h similarity index 100% rename from include/asm/atomic.h rename to include/asm-ppc/atomic.h diff --git a/include/asm/bitops.h b/include/asm-ppc/bitops.h similarity index 100% rename from include/asm/bitops.h rename to include/asm-ppc/bitops.h diff --git a/include/asm/byteorder.h b/include/asm-ppc/byteorder.h similarity index 100% rename from include/asm/byteorder.h rename to include/asm-ppc/byteorder.h diff --git a/include/asm/cache.h b/include/asm-ppc/cache.h similarity index 100% rename from include/asm/cache.h rename to include/asm-ppc/cache.h diff --git a/include/asm/cpm_8260.h b/include/asm-ppc/cpm_8260.h similarity index 100% rename from include/asm/cpm_8260.h rename to include/asm-ppc/cpm_8260.h diff --git a/include/asm/errno.h b/include/asm-ppc/errno.h similarity index 100% rename from include/asm/errno.h rename to include/asm-ppc/errno.h diff --git a/include/asm/hymod.h b/include/asm-ppc/hymod.h similarity index 100% rename from include/asm/hymod.h rename to include/asm-ppc/hymod.h diff --git a/include/asm/immap_8260.h b/include/asm-ppc/immap_8260.h similarity index 100% rename from include/asm/immap_8260.h rename to include/asm-ppc/immap_8260.h diff --git a/include/asm/io.h b/include/asm-ppc/io.h old mode 100755 new mode 100644 similarity index 100% rename from include/asm/io.h rename to include/asm-ppc/io.h diff --git a/include/asm/iopin_8260.h b/include/asm-ppc/iopin_8260.h similarity index 100% rename from include/asm/iopin_8260.h rename to include/asm-ppc/iopin_8260.h diff --git a/include/asm/mc146818rtc.h b/include/asm-ppc/mc146818rtc.h old mode 100755 new mode 100644 similarity index 100% rename from include/asm/mc146818rtc.h rename to include/asm-ppc/mc146818rtc.h diff --git a/include/asm/mmu.h b/include/asm-ppc/mmu.h similarity index 100% rename from include/asm/mmu.h rename to include/asm-ppc/mmu.h diff --git a/include/asm/pci_io.h b/include/asm-ppc/pci_io.h old mode 100755 new mode 100644 similarity index 100% rename from include/asm/pci_io.h rename to include/asm-ppc/pci_io.h diff --git a/include/asm/pnp.h b/include/asm-ppc/pnp.h similarity index 100% rename from include/asm/pnp.h rename to include/asm-ppc/pnp.h diff --git a/include/asm/posix_types.h b/include/asm-ppc/posix_types.h similarity index 100% rename from include/asm/posix_types.h rename to include/asm-ppc/posix_types.h diff --git a/include/asm/processor.h b/include/asm-ppc/processor.h similarity index 100% rename from include/asm/processor.h rename to include/asm-ppc/processor.h diff --git a/include/asm/ptrace.h b/include/asm-ppc/ptrace.h similarity index 100% rename from include/asm/ptrace.h rename to include/asm-ppc/ptrace.h diff --git a/include/asm/residual.h b/include/asm-ppc/residual.h similarity index 100% rename from include/asm/residual.h rename to include/asm-ppc/residual.h diff --git a/include/asm/sigcontext.h b/include/asm-ppc/sigcontext.h similarity index 100% rename from include/asm/sigcontext.h rename to include/asm-ppc/sigcontext.h diff --git a/include/asm/signal.h b/include/asm-ppc/signal.h similarity index 100% rename from include/asm/signal.h rename to include/asm-ppc/signal.h diff --git a/include/asm/string.h b/include/asm-ppc/string.h similarity index 100% rename from include/asm/string.h rename to include/asm-ppc/string.h diff --git a/include/asm/types.h b/include/asm-ppc/types.h similarity index 100% rename from include/asm/types.h rename to include/asm-ppc/types.h diff --git a/include/config_ADCIOP.h b/include/configs/ADCIOP.h similarity index 100% rename from include/config_ADCIOP.h rename to include/configs/ADCIOP.h diff --git a/include/config_ADS860.h b/include/configs/ADS860.h similarity index 100% rename from include/config_ADS860.h rename to include/configs/ADS860.h diff --git a/include/config_AMX860.h b/include/configs/AMX860.h similarity index 100% rename from include/config_AMX860.h rename to include/configs/AMX860.h diff --git a/include/config_AR405.h b/include/configs/AR405.h similarity index 100% rename from include/config_AR405.h rename to include/configs/AR405.h diff --git a/include/config_BAB750.h b/include/configs/BAB750.h similarity index 100% rename from include/config_BAB750.h rename to include/configs/BAB750.h diff --git a/include/config_CANBT.h b/include/configs/CANBT.h similarity index 100% rename from include/config_CANBT.h rename to include/configs/CANBT.h diff --git a/include/config_CCM.h b/include/configs/CCM.h similarity index 100% rename from include/config_CCM.h rename to include/configs/CCM.h diff --git a/include/config_CPCI405.h b/include/configs/CPCI405.h similarity index 100% rename from include/config_CPCI405.h rename to include/configs/CPCI405.h diff --git a/include/config_CPCI4052.h b/include/configs/CPCI4052.h similarity index 100% rename from include/config_CPCI4052.h rename to include/configs/CPCI4052.h diff --git a/include/config_CPCIISER4.h b/include/configs/CPCIISER4.h similarity index 100% rename from include/config_CPCIISER4.h rename to include/configs/CPCIISER4.h diff --git a/include/config_CPU86.h b/include/configs/CPU86.h similarity index 100% rename from include/config_CPU86.h rename to include/configs/CPU86.h diff --git a/include/config_CRAYL1.h b/include/configs/CRAYL1.h similarity index 100% rename from include/config_CRAYL1.h rename to include/configs/CRAYL1.h diff --git a/include/config_CU824.h b/include/configs/CU824.h similarity index 100% rename from include/config_CU824.h rename to include/configs/CU824.h diff --git a/include/config_DASA_SIM.h b/include/configs/DASA_SIM.h similarity index 100% rename from include/config_DASA_SIM.h rename to include/configs/DASA_SIM.h diff --git a/include/config_DU405.h b/include/configs/DU405.h similarity index 100% rename from include/config_DU405.h rename to include/configs/DU405.h diff --git a/include/config_ERIC.h b/include/configs/ERIC.h similarity index 100% rename from include/config_ERIC.h rename to include/configs/ERIC.h diff --git a/include/config_ESTEEM192E.h b/include/configs/ESTEEM192E.h similarity index 100% rename from include/config_ESTEEM192E.h rename to include/configs/ESTEEM192E.h diff --git a/include/config_ETX094.h b/include/configs/ETX094.h similarity index 100% rename from include/config_ETX094.h rename to include/configs/ETX094.h diff --git a/include/config_EVB64260.h b/include/configs/EVB64260.h similarity index 100% rename from include/config_EVB64260.h rename to include/configs/EVB64260.h diff --git a/include/config_FADS823.h b/include/configs/FADS823.h similarity index 100% rename from include/config_FADS823.h rename to include/configs/FADS823.h diff --git a/include/config_FADS850SAR.h b/include/configs/FADS850SAR.h similarity index 100% rename from include/config_FADS850SAR.h rename to include/configs/FADS850SAR.h diff --git a/include/config_FADS860T.h b/include/configs/FADS860T.h similarity index 100% rename from include/config_FADS860T.h rename to include/configs/FADS860T.h diff --git a/include/config_FLAGADM.h b/include/configs/FLAGADM.h similarity index 100% rename from include/config_FLAGADM.h rename to include/configs/FLAGADM.h diff --git a/include/config_FPS850L.h b/include/configs/FPS850L.h similarity index 100% rename from include/config_FPS850L.h rename to include/configs/FPS850L.h diff --git a/include/config_GENIETV.h b/include/configs/GENIETV.h similarity index 100% rename from include/config_GENIETV.h rename to include/configs/GENIETV.h diff --git a/include/config_GTH.h b/include/configs/GTH.h similarity index 100% rename from include/config_GTH.h rename to include/configs/GTH.h diff --git a/include/config_IAD210.h b/include/configs/IAD210.h similarity index 100% rename from include/config_IAD210.h rename to include/configs/IAD210.h diff --git a/include/config_ICU862.h b/include/configs/ICU862.h similarity index 100% rename from include/config_ICU862.h rename to include/configs/ICU862.h diff --git a/include/config_IP860.h b/include/configs/IP860.h similarity index 100% rename from include/config_IP860.h rename to include/configs/IP860.h diff --git a/include/config_IPHASE4539.h b/include/configs/IPHASE4539.h similarity index 100% rename from include/config_IPHASE4539.h rename to include/configs/IPHASE4539.h diff --git a/include/config_IVML24.h b/include/configs/IVML24.h similarity index 100% rename from include/config_IVML24.h rename to include/configs/IVML24.h diff --git a/include/config_IVMS8.h b/include/configs/IVMS8.h similarity index 100% rename from include/config_IVMS8.h rename to include/configs/IVMS8.h diff --git a/include/config_LANTEC.h b/include/configs/LANTEC.h similarity index 100% rename from include/config_LANTEC.h rename to include/configs/LANTEC.h diff --git a/include/config_MBX.h b/include/configs/MBX.h similarity index 100% rename from include/config_MBX.h rename to include/configs/MBX.h diff --git a/include/config_MBX860T.h b/include/configs/MBX860T.h similarity index 100% rename from include/config_MBX860T.h rename to include/configs/MBX860T.h diff --git a/include/config_MHPC.h b/include/configs/MHPC.h similarity index 100% rename from include/config_MHPC.h rename to include/configs/MHPC.h diff --git a/include/config_MIP405.h b/include/configs/MIP405.h similarity index 100% rename from include/config_MIP405.h rename to include/configs/MIP405.h diff --git a/include/config_MOUSSE.h b/include/configs/MOUSSE.h similarity index 100% rename from include/config_MOUSSE.h rename to include/configs/MOUSSE.h diff --git a/include/config_MPC8260ADS.h b/include/configs/MPC8260ADS.h similarity index 100% rename from include/config_MPC8260ADS.h rename to include/configs/MPC8260ADS.h diff --git a/include/config_MUSENKI.h b/include/configs/MUSENKI.h similarity index 100% rename from include/config_MUSENKI.h rename to include/configs/MUSENKI.h diff --git a/include/config_MVS1.h b/include/configs/MVS1.h similarity index 100% rename from include/config_MVS1.h rename to include/configs/MVS1.h diff --git a/include/config_NX823.h b/include/configs/NX823.h similarity index 100% rename from include/config_NX823.h rename to include/configs/NX823.h diff --git a/include/config_OCRTC.h b/include/configs/OCRTC.h similarity index 100% rename from include/config_OCRTC.h rename to include/configs/OCRTC.h diff --git a/include/config_ORSG.h b/include/configs/ORSG.h similarity index 100% rename from include/config_ORSG.h rename to include/configs/ORSG.h diff --git a/include/config_OXC.h b/include/configs/OXC.h similarity index 100% rename from include/config_OXC.h rename to include/configs/OXC.h diff --git a/include/config_PCI405.h b/include/configs/PCI405.h similarity index 100% rename from include/config_PCI405.h rename to include/configs/PCI405.h diff --git a/include/config_PCIPPC2.h b/include/configs/PCIPPC2.h similarity index 100% rename from include/config_PCIPPC2.h rename to include/configs/PCIPPC2.h diff --git a/include/config_PCIPPC6.h b/include/configs/PCIPPC6.h similarity index 100% rename from include/config_PCIPPC6.h rename to include/configs/PCIPPC6.h diff --git a/include/config_PIP405.h b/include/configs/PIP405.h similarity index 100% rename from include/config_PIP405.h rename to include/configs/PIP405.h diff --git a/include/config_PM826.h b/include/configs/PM826.h similarity index 100% rename from include/config_PM826.h rename to include/configs/PM826.h diff --git a/include/configs/R360MPI.h b/include/configs/R360MPI.h new file mode 100644 index 0000000..1f2afc4 --- /dev/null +++ b/include/configs/R360MPI.h @@ -0,0 +1,441 @@ +/* + * (C) Copyright 2000, 2001, 2002 + * Wolfgang Denk, DENX Software Engineering, wd@denx.de. + * + * See file CREDITS for list of people who contributed to this + * project. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + */ + +/* + * board/config.h - configuration options, board specific + */ + +#ifndef __CONFIG_H +#define __CONFIG_H + +/* + * High Level Configuration Options + * (easy to change) + */ + +#define CONFIG_MPC823 1 /* This is a MPC823 CPU */ +#define CONFIG_R360MPI 1 + +#ifdef CONFIG_LCD /* with LCD controller ? */ +/* #define CONFIG_NEC_NL6648BC20 1 / * use NEC NL6648BC20 display */ +#endif + +#define MPC8XX_FACT 1 /* Multiply by 1 */ +#define MPC8XX_XIN 50000000 /* 50 MHz in */ +#define CONFIG_8xx_GCLK_FREQ 50000000 /* define if cant use get_gclk_freq */ + +#define CONFIG_8xx_CONS_SMC1 1 /* Console is on SMC1 */ +#undef CONFIG_8xx_CONS_SMC2 +#undef CONFIG_8xx_CONS_NONE +#define CONFIG_BAUDRATE 9600 /* console baudrate = 9600bps */ +#if 0 +#define CONFIG_BOOTDELAY -1 /* autoboot disabled */ +#else +#define CONFIG_BOOTDELAY 5 /* autoboot after 5 seconds */ +#endif + +#define CONFIG_CLOCKS_IN_MHZ 1 /* clocks passsed to Linux in MHz */ + +#define CONFIG_PREBOOT "echo;echo Type \"run flash_nfs\" to mount root filesystem over NFS;echo" + +#undef CONFIG_BOOTARGS +#define CONFIG_BOOTCOMMAND \ + "bootp; " \ + "setenv bootargs root=/dev/nfs rw nfsroot=$(serverip):$(rootpath) " \ + "ip=$(ipaddr):$(serverip):$(gatewayip):$(netmask):$(hostname)::off; " \ + "bootm" + +#undef CONFIG_SCC1_ENET +#define CONFIG_SCC2_ENET + +#define CONFIG_LOADS_ECHO 1 /* echo on for serial download */ +#undef CFG_LOADS_BAUD_CHANGE /* don't allow baudrate change */ + +#undef CONFIG_WATCHDOG /* watchdog disabled */ + +#if 0 +#ifdef CONFIG_LCD +# undef CONFIG_STATUS_LED /* disturbs display */ +#else +# define CONFIG_STATUS_LED 1 /* Status LED enabled */ +#endif /* CONFIG_LCD */ +#endif + +#undef CONFIG_CAN_DRIVER /* CAN Driver support disabled */ + +#define CONFIG_BOOTP_MASK (CONFIG_BOOTP_DEFAULT | CONFIG_BOOTP_BOOTFILESIZE) + +#define CONFIG_RTC_MPC8xx /* use internal RTC of MPC8xx */ + +#define CONFIG_COMMANDS ( CONFIG_CMD_DFL | \ + CFG_CMD_DHCP | \ + CFG_CMD_DATE ) + +/* this must be included AFTER the definition of CONFIG_COMMANDS (if any) */ +#include + +/* + * Miscellaneous configurable options + */ +#define CFG_LONGHELP /* undef to save memory */ +#define CFG_PROMPT "=> " /* Monitor Command Prompt */ +#if (CONFIG_COMMANDS & CFG_CMD_KGDB) +#define CFG_CBSIZE 1024 /* Console I/O Buffer Size */ +#else +#define CFG_CBSIZE 256 /* Console I/O Buffer Size */ +#endif +#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */ +#define CFG_MAXARGS 16 /* max number of command args */ +#define CFG_BARGSIZE CFG_CBSIZE /* Boot Argument Buffer Size */ + +#define CFG_MEMTEST_START 0x0400000 /* memtest works on */ +#define CFG_MEMTEST_END 0x0C00000 /* 4 ... 12 MB in DRAM */ + +#define CFG_LOAD_ADDR 0x100000 /* default load address */ + +#define CFG_HZ 1000 /* decrementer freq: 1 ms ticks */ + +#define CFG_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200 } + +/* + * Low Level Configuration Settings + * (address mappings, register initial values, etc.) + * You should know what you are doing if you make changes here. + */ +/*----------------------------------------------------------------------- + * Internal Memory Mapped Register + */ +#define CFG_IMMR 0xFF000000 + +/*----------------------------------------------------------------------- + * Definitions for initial stack pointer and data area (in DPRAM) + */ +#define CFG_INIT_RAM_ADDR CFG_IMMR +#define CFG_INIT_RAM_END 0x2F00 /* End of used area in DPRAM */ +#define CFG_INIT_DATA_SIZE 64 /* size in bytes reserved for initial data */ +#define CFG_INIT_DATA_OFFSET (CFG_INIT_RAM_END - CFG_INIT_DATA_SIZE) +#define CFG_INIT_SP_OFFSET CFG_INIT_DATA_OFFSET + +/*----------------------------------------------------------------------- + * Start addresses for the final memory configuration + * (Set up by the startup code) + * Please note that CFG_SDRAM_BASE _must_ start at 0 + */ +#define CFG_SDRAM_BASE 0x00000000 +#define CFG_FLASH_BASE 0x40000000 +#if defined(DEBUG) +#define CFG_MONITOR_LEN (256 << 10) /* Reserve 256 kB for Monitor */ +#else +#define CFG_MONITOR_LEN (192 << 10) /* Reserve 192 kB for Monitor */ +#endif +#define CFG_MONITOR_BASE CFG_FLASH_BASE +#define CFG_MALLOC_LEN (128 << 10) /* Reserve 128 kB for malloc() */ + +/* + * For booting Linux, the board info and command line data + * have to be in the first 8 MB of memory, since this is + * the maximum mapped by the Linux kernel during initialization. + */ +#define CFG_BOOTMAPSZ (8 << 20) /* Initial Memory map for Linux */ + +/*----------------------------------------------------------------------- + * FLASH organization + */ +#define CFG_MAX_FLASH_BANKS 1 /* max number of memory banks */ +#define CFG_MAX_FLASH_SECT 64 /* max number of sectors on one chip */ + +#define CFG_FLASH_ERASE_TOUT 120000 /* Timeout for Flash Erase (in ms) */ +#define CFG_FLASH_WRITE_TOUT 500 /* Timeout for Flash Write (in ms) */ + +#define CFG_ENV_IS_IN_FLASH 1 +#define CFG_ENV_SECT_SIZE 0x20000 +#define CFG_ENV_OFFSET 0x20000 /* Offset of Environment Sector */ +#define CFG_ENV_SIZE 0x4000 /* Total Size of Environment Sector */ + +/*----------------------------------------------------------------------- + * Cache Configuration + */ +#define CFG_CACHELINE_SIZE 16 /* For all MPC8xx CPUs */ +#if (CONFIG_COMMANDS & CFG_CMD_KGDB) +#define CFG_CACHELINE_SHIFT 4 /* log base 2 of the above value */ +#endif + +/*----------------------------------------------------------------------- + * SYPCR - System Protection Control 11-9 + * SYPCR can only be written once after reset! + *----------------------------------------------------------------------- + * Software & Bus Monitor Timer max, Bus Monitor enable, SW Watchdog freeze + */ +#if defined(CONFIG_WATCHDOG) +#define CFG_SYPCR (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \ + SYPCR_SWE | SYPCR_SWRI| SYPCR_SWP) +#else +#define CFG_SYPCR (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP) +#endif + +/*----------------------------------------------------------------------- + * SIUMCR - SIU Module Configuration 11-6 + *----------------------------------------------------------------------- + * PCMCIA config., multi-function pin tri-state + */ +#ifndef CONFIG_CAN_DRIVER +#define CFG_SIUMCR (SIUMCR_DBGC00 | SIUMCR_DBPC00 | SIUMCR_MLRC01) +#else /* we must activate GPL5 in the SIUMCR for CAN */ +#define CFG_SIUMCR (SIUMCR_DBGC11 | SIUMCR_DBPC00 | SIUMCR_MLRC01) +#endif /* CONFIG_CAN_DRIVER */ + +/*----------------------------------------------------------------------- + * TBSCR - Time Base Status and Control 11-26 + *----------------------------------------------------------------------- + * Clear Reference Interrupt Status, Timebase freezing enabled + */ +#define CFG_TBSCR (TBSCR_REFA | TBSCR_REFB | TBSCR_TBE) + +/*----------------------------------------------------------------------- + * RTCSC - Real-Time Clock Status and Control Register 11-27 + *----------------------------------------------------------------------- + */ +#define CFG_RTCSC (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE) + +/*----------------------------------------------------------------------- + * PISCR - Periodic Interrupt Status and Control 11-31 + *----------------------------------------------------------------------- + * Clear Periodic Interrupt Status, Interrupt Timer freezing enabled + */ +#define CFG_PISCR (PISCR_PS | PISCR_PITF) + +/*----------------------------------------------------------------------- + * PLPRCR - PLL, Low-Power, and Reset Control Register 15-30 + *----------------------------------------------------------------------- + * Reset PLL lock status sticky bit, timer expired status bit and timer + * interrupt status bit + * + * If this is a 80 MHz CPU, set PLL multiplication factor to 5 (5*16=80)! + */ +#ifdef CONFIG_80MHz /* for 80 MHz, we use a 16 MHz clock * 5 */ +#define CFG_PLPRCR \ + ( (5-1)< ms + * 32 PTP (pre-divider from MPTPR) from SDRAM example configuration + * 4 Number of refresh cycles per period + * 64 Refresh cycle in ms per number of rows + * -------------------------------------------- + * Divider = 4096 * 32 * 1000 / (4 * 64) = 512000 + * + * 50 MHz => 50.000.000 / Divider = 98 + * 66 Mhz => 66.000.000 / Divider = 129 + * 80 Mhz => 80.000.000 / Divider = 156 + */ +#if defined(CONFIG_80MHz) +#define CFG_MAMR_PTA 156 +#elif defined(CONFIG_66MHz) +#define CFG_MAMR_PTA 129 +#else /* 50 MHz */ +#define CFG_MAMR_PTA 98 +#endif /*CONFIG_??MHz */ + +/* + * For 16 MBit, refresh rates could be 31.3 us + * (= 64 ms / 2K = 125 / quad bursts). + * For a simpler initialization, 15.6 us is used instead. + * + * #define CFG_MPTPR_2BK_2K MPTPR_PTP_DIV32 for 2 banks + * #define CFG_MPTPR_1BK_2K MPTPR_PTP_DIV64 for 1 bank + */ +#define CFG_MPTPR_2BK_4K MPTPR_PTP_DIV16 /* setting for 2 banks */ +#define CFG_MPTPR_1BK_4K MPTPR_PTP_DIV32 /* setting for 1 bank */ + +/* refresh rate 7.8 us (= 64 ms / 8K = 31.2 / quad bursts) for 256 MBit */ +#define CFG_MPTPR_2BK_8K MPTPR_PTP_DIV8 /* setting for 2 banks */ +#define CFG_MPTPR_1BK_8K MPTPR_PTP_DIV16 /* setting for 1 bank */ + +/* + * MAMR settings for SDRAM + */ + +/* 8 column SDRAM */ +#define CFG_MAMR_8COL ((CFG_MAMR_PTA << MAMR_PTA_SHIFT) | MAMR_PTAE | \ + MAMR_AMA_TYPE_0 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A11 | \ + MAMR_RLFA_1X | MAMR_WLFA_1X | MAMR_TLFA_4X) +/* 9 column SDRAM */ +#define CFG_MAMR_9COL ((CFG_MAMR_PTA << MAMR_PTA_SHIFT) | MAMR_PTAE | \ + MAMR_AMA_TYPE_1 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A10 | \ + MAMR_RLFA_1X | MAMR_WLFA_1X | MAMR_TLFA_4X) + + +/* + * Internal Definitions + * + * Boot Flags + */ +#define BOOTFLAG_COLD 0x01 /* Normal Power-On: Boot from FLASH */ +#define BOOTFLAG_WARM 0x02 /* Software reboot */ + +#endif /* __CONFIG_H */ diff --git a/include/config_RPXClassic.h b/include/configs/RPXClassic.h similarity index 100% rename from include/config_RPXClassic.h rename to include/configs/RPXClassic.h diff --git a/include/config_RPXlite.h b/include/configs/RPXlite.h similarity index 100% rename from include/config_RPXlite.h rename to include/configs/RPXlite.h diff --git a/include/config_RPXsuper.h b/include/configs/RPXsuper.h similarity index 100% rename from include/config_RPXsuper.h rename to include/configs/RPXsuper.h diff --git a/include/config_SCM.h b/include/configs/SCM.h similarity index 100% rename from include/config_SCM.h rename to include/configs/SCM.h diff --git a/include/config_SM850.h b/include/configs/SM850.h similarity index 100% rename from include/config_SM850.h rename to include/configs/SM850.h diff --git a/include/config_SPD823TS.h b/include/configs/SPD823TS.h similarity index 100% rename from include/config_SPD823TS.h rename to include/configs/SPD823TS.h diff --git a/include/config_SXNI855T.h b/include/configs/SXNI855T.h similarity index 100% rename from include/config_SXNI855T.h rename to include/configs/SXNI855T.h diff --git a/include/config_Sandpoint8240.h b/include/configs/Sandpoint8240.h similarity index 100% rename from include/config_Sandpoint8240.h rename to include/configs/Sandpoint8240.h diff --git a/include/config_Sandpoint8245.h b/include/configs/Sandpoint8245.h similarity index 100% rename from include/config_Sandpoint8245.h rename to include/configs/Sandpoint8245.h diff --git a/include/config_TQM823L.h b/include/configs/TQM823L.h similarity index 100% rename from include/config_TQM823L.h rename to include/configs/TQM823L.h diff --git a/include/config_TQM8260.h b/include/configs/TQM8260.h similarity index 100% rename from include/config_TQM8260.h rename to include/configs/TQM8260.h diff --git a/include/config_TQM850L.h b/include/configs/TQM850L.h similarity index 100% rename from include/config_TQM850L.h rename to include/configs/TQM850L.h diff --git a/include/config_TQM855L.h b/include/configs/TQM855L.h similarity index 100% rename from include/config_TQM855L.h rename to include/configs/TQM855L.h diff --git a/include/config_TQM860L.h b/include/configs/TQM860L.h similarity index 100% rename from include/config_TQM860L.h rename to include/configs/TQM860L.h diff --git a/include/config_W7OLMC.h b/include/configs/W7OLMC.h similarity index 100% rename from include/config_W7OLMC.h rename to include/configs/W7OLMC.h diff --git a/include/config_W7OLMG.h b/include/configs/W7OLMG.h similarity index 100% rename from include/config_W7OLMG.h rename to include/configs/W7OLMG.h diff --git a/include/config_WALNUT405.h b/include/configs/WALNUT405.h similarity index 100% rename from include/config_WALNUT405.h rename to include/configs/WALNUT405.h diff --git a/include/config_ZUMA.h b/include/configs/ZUMA.h similarity index 100% rename from include/config_ZUMA.h rename to include/configs/ZUMA.h diff --git a/include/config_c2mon.h b/include/configs/c2mon.h similarity index 100% rename from include/config_c2mon.h rename to include/configs/c2mon.h diff --git a/include/config_cogent_common.h b/include/configs/cogent_common.h similarity index 100% rename from include/config_cogent_common.h rename to include/configs/cogent_common.h diff --git a/include/config_cogent_mpc8260.h b/include/configs/cogent_mpc8260.h similarity index 99% rename from include/config_cogent_mpc8260.h rename to include/configs/cogent_mpc8260.h index b0d3fde..0a0e041 100644 --- a/include/config_cogent_mpc8260.h +++ b/include/configs/cogent_mpc8260.h @@ -154,7 +154,7 @@ */ #define CFG_CMA_MB_BASE 0x00000000 /* base of m/b address space */ -#include +#include #ifdef CONFIG_CONS_NONE #define CFG_CMA_CONS_SERIAL /* use Cogent motherboard serial for console */ diff --git a/include/config_cogent_mpc8xx.h b/include/configs/cogent_mpc8xx.h similarity index 99% rename from include/config_cogent_mpc8xx.h rename to include/configs/cogent_mpc8xx.h index 78ca1b1..a365fa5 100644 --- a/include/config_cogent_mpc8xx.h +++ b/include/configs/cogent_mpc8xx.h @@ -121,7 +121,7 @@ */ #define CFG_CMA_MB_BASE 0x00000000 /* base of m/b address space */ -#include +#include #define CFG_CMA_CONS_SERIAL /* use Cogent motherboard serial for console */ #define CONFIG_CONS_INDEX 1 diff --git a/include/config_ep8260.h b/include/configs/ep8260.h similarity index 100% rename from include/config_ep8260.h rename to include/configs/ep8260.h diff --git a/include/config_gw8260.h b/include/configs/gw8260.h similarity index 100% rename from include/config_gw8260.h rename to include/configs/gw8260.h diff --git a/include/config_hermes.h b/include/configs/hermes.h similarity index 100% rename from include/config_hermes.h rename to include/configs/hermes.h diff --git a/include/config_hymod.h b/include/configs/hymod.h similarity index 100% rename from include/config_hymod.h rename to include/configs/hymod.h diff --git a/include/config_lwmon.h b/include/configs/lwmon.h similarity index 100% rename from include/config_lwmon.h rename to include/configs/lwmon.h diff --git a/include/config_pcu_e.h b/include/configs/pcu_e.h similarity index 100% rename from include/config_pcu_e.h rename to include/configs/pcu_e.h diff --git a/include/config_ppmc8260.h b/include/configs/ppmc8260.h similarity index 100% rename from include/config_ppmc8260.h rename to include/configs/ppmc8260.h diff --git a/include/config_rsdproto.h b/include/configs/rsdproto.h similarity index 100% rename from include/config_rsdproto.h rename to include/configs/rsdproto.h diff --git a/include/config_sbc8260.h b/include/configs/sbc8260.h similarity index 100% rename from include/config_sbc8260.h rename to include/configs/sbc8260.h diff --git a/mkconfig b/mkconfig new file mode 100755 index 0000000..3c5fdff --- /dev/null +++ b/mkconfig @@ -0,0 +1,55 @@ +#!/bin/sh -e + +# Script to create header files and links to configure +# PPCBoot for a specific board. +# +# Parameters: Target Architecture CPU Board +# +# (C) 2002 DENX Software Engineering, Wolfgang Denk +# + +APPEND=no # Default: Create new config file + +while [ $# -gt 0 ] ; do + case "$1" in + --) shift ; break ;; + -a) shift ; APPEND=yes ;; + *) break ;; + esac +done + +[ $# -lt 4 ] && exit 1 +[ $# -gt 5 ] && exit 1 + +echo "Configuring for $1 board..." + +cd ./include + +# +# Create link to architecture specific headers +# +rm -f asm +ln -s asm-$2 asm + +# +# Create include file for Make +# +echo "ARCH = $2" > config.mk +echo "CPU = $3" >> config.mk +echo "BOARD = $4" >> config.mk + +[ "$5" ] && echo "VENDOR = $5" >> config.mk + +# +# Create board specific header file +# +if [ "$APPEND" = "yes" ] # Append to existing config file +then + echo >> config.h +else + > config.h # Create new config file +fi +echo "/* Automatically generated - do not edit */" >>config.h +echo "#include " >>config.h + +exit 0