m68k: fix an undefined behavior warning of M5253DEMO board

The latest GCC is so clever that it reports more warnings
than old ones did:

 ------------------------------>8------------------------------

  board/freescale/m5253demo/flash.c: In function 'flash_get_offsets':
  board/freescale/m5253demo/flash.c:65:23: warning: iteration 2047u
  invokes undefined behavior [-Waggressive-loop-optimizations]
      info->start[k + 1] = info->start[k] + CONFIG_SYS_SST_SECTSZ;
                         ^
  board/freescale/m5253demo/flash.c:64:3: note: containing loop
     for (k = 0, j = 0; j < CONFIG_SYS_SST_SECT; j++, k++) {
     ^

 ------------------------------8<------------------------------

The cause of the warning is like this:

The for statement iterates 2048 times in flash_get_offsets() func.
(Notice CONFIG_SYS_SST_SECT is defined as '2048')

The last iteration does
  info->start[2048] = info->start[2047] + CONFIG_SYS_SST_SECTSZ;
causing an undefined behavior.

(Please note the array size of info->start is 2048.
CONFIG_SYS_MAX_FLASH_SECT is defined as 2048 for this board.)

This commit fixes that so as not to overrun the info->start array.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Cc: Jason Jin <Jason.jin@freescale.com>
Series-to: uboot
Series-cc: trini
Series-cc: sjg
Series-cc: Jason Jin <Jason.jin@freescale.com>
Cover-letter:
Now all the M68K boards can be cleanly built

This series consists of two fixes.

With this series and the crosstools distributed on www.kernel.org,
M68K boards can be built without any warnings.

You can download it from:

https://www.kernel.org/pub/tools/crosstool/files/bin/x86_64/4.9.0/
x86_64-gcc-4.9.0-nolibc_m68k-linux.tar.xz

My build log is as follows:

$ m68k-linux-gcc --version
m68k-linux-gcc (GCC) 4.9.0
Copyright (C) 2014 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$ CROSS_COMPILE=m68k-linux- ./MAKEALL -a m68k
Configuring for M52277EVB - Board: M52277EVB, Options: SYS_SPANSION_BOOT,SYS_TEXT_BASE=0x00000000
   text	   data	    bss	    dec	    hex	filename
 115847	  11542	   4096	 131485	  2019d	./u-boot
Configuring for M52277EVB_stmicro - Board: M52277EVB, Options: CF_SBF,SYS_STMICRO_BOOT,SYS_TEXT_BASE=0x43E00000
   text	   data	    bss	    dec	    hex	filename
 115474	  11542	   4100	 131116	  2002c	./u-boot
Configuring for M5235EVB - Board: M5235EVB, Options: SYS_TEXT_BASE=0xFFE00000
   text	   data	    bss	    dec	    hex	filename
 132258	  12240	  21132	 165630	  286fe	./u-boot
Configuring for M5235EVB_Flash32 - Board: M5235EVB, Options: NORFLASH_PS32BIT,SYS_TEXT_BASE=0xFFC00000
   text	   data	    bss	    dec	    hex	filename
 132258	  12240	  21132	 165630	  286fe	./u-boot
Configuring for cobra5272 board...
   text	   data	    bss	    dec	    hex	filename
 112166	   9360	  19880	 141406	  2285e	./u-boot
Configuring for eb_cpu5282 - Board: eb_cpu5282, Options: SYS_TEXT_BASE=0xFF000000,SYS_MONITOR_BASE=0xFF000400
   text	   data	    bss	    dec	    hex	filename
 117802	  12608	  59632	 190042	  2e65a	./u-boot
Configuring for eb_cpu5282_internal - Board: eb_cpu5282, Options: SYS_TEXT_BASE=0xF0000000,SYS_MONITOR_BASE=0xF0000418
   text	   data	    bss	    dec	    hex	filename
 117871	  12612	  59632	 190115	  2e6a3	./u-boot
Configuring for TASREG board...
   text	   data	    bss	    dec	    hex	filename
 173998	  10290	   4784	 189072	  2e290	./u-boot
Configuring for M5208EVBE board...
   text	   data	    bss	    dec	    hex	filename
 125563	  11252	  22852	 159667	  26fb3	./u-boot
Configuring for M5249EVB board...
   text	   data	    bss	    dec	    hex	filename
 107905	   8654	   4224	 120783	  1d7cf	./u-boot
Configuring for M5253DEMO board...
   text	   data	    bss	    dec	    hex	filename
 153476	  11348	 222476	 387300	  5e8e4	./u-boot
Configuring for M5272C3 board...
   text	   data	    bss	    dec	    hex	filename
 126385	  10676	  20588	 157649	  267d1	./u-boot
Configuring for M5275EVB board...
   text	   data	    bss	    dec	    hex	filename
 134047	  12284	  21016	 167347	  28db3	./u-boot
Configuring for M5282EVB board...
   text	   data	    bss	    dec	    hex	filename
 124852	  10544	  21100	 156496	  26350	./u-boot
Configuring for astro_mcf5373l board...
   text	   data	    bss	    dec	    hex	filename
 130047	  12516	  10304	 152867	  25523	./u-boot
Configuring for M53017EVB board...
   text	   data	    bss	    dec	    hex	filename
 151345	  11564	  22268	 185177	  2d359	./u-boot
Configuring for M5329AFEE - Board: M5329EVB, Options: NANDFLASH_SIZE=0
   text	   data	    bss	    dec	    hex	filename
 176789	  28016	  22896	 227701	  37975	./u-boot
Configuring for M5329BFEE - Board: M5329EVB, Options: NANDFLASH_SIZE=16
   text	   data	    bss	    dec	    hex	filename
 176793	  28016	  22896	 227705	  37979	./u-boot
Configuring for M5373EVB - Board: M5373EVB, Options: NANDFLASH_SIZE=16
   text	   data	    bss	    dec	    hex	filename
 176811	  28016	  22896	 227723	  3798b	./u-boot
Configuring for M54418TWR - Board: M54418TWR, Options: CF_SBF,SYS_SERIAL_BOOT,SYS_TEXT_BASE=0x47E00000,SYS_INPUT_CLKSRC=50000000
   text	   data	    bss	    dec	    hex	filename
 110939	  10362	  11620	 132921	  20739	./u-boot
Configuring for M54418TWR_nand_mii - Board: M54418TWR, Options: SYS_NAND_BOOT,SYS_TEXT_BASE=0x47E00000,SYS_INPUT_CLKSRC=25000000
   text	   data	    bss	    dec	    hex	filename
 109786	  10226	  11620	 131632	  20230	./u-boot
Configuring for M54418TWR_nand_rmii - Board: M54418TWR, Options: SYS_NAND_BOOT,SYS_TEXT_BASE=0x47E00000,SYS_INPUT_CLKSRC=50000000
   text	   data	    bss	    dec	    hex	filename
 109786	  10226	  11620	 131632	  20230	./u-boot
Configuring for M54418TWR_nand_rmii_lowfreq - Board: M54418TWR, Options: SYS_NAND_BOOT,LOW_MCFCLK,SYS_TEXT_BASE=0x47E00000,SYS_INPUT_CLKSRC=50000000
   text	   data	    bss	    dec	    hex	filename
 109830	  10226	  11620	 131676	  2025c	./u-boot
Configuring for M54418TWR_serial_mii - Board: M54418TWR, Options: CF_SBF,SYS_SERIAL_BOOT,SYS_TEXT_BASE=0x47E00000,SYS_INPUT_CLKSRC=25000000
   text	   data	    bss	    dec	    hex	filename
 110939	  10362	  11620	 132921	  20739	./u-boot
Configuring for M54418TWR_serial_rmii - Board: M54418TWR, Options: CF_SBF,SYS_SERIAL_BOOT,SYS_TEXT_BASE=0x47E00000,SYS_INPUT_CLKSRC=50000000
   text	   data	    bss	    dec	    hex	filename
 110939	  10362	  11620	 132921	  20739	./u-boot
Configuring for M54451EVB - Board: M54451EVB, Options: SYS_TEXT_BASE=0x00000000,SYS_INPUT_CLKSRC=24000000
   text	   data	    bss	    dec	    hex	filename
 124083	  11792	  21220	 157095	  265a7	./u-boot
Configuring for M54451EVB_stmicro - Board: M54451EVB, Options: CF_SBF,SYS_STMICRO_BOOT,SYS_TEXT_BASE=0x47e00000,SYS_INPUT_CLKSRC=24000000
   text	   data	    bss	    dec	    hex	filename
 123716	  11784	  21224	 156724	  26434	./u-boot
Configuring for M54455EVB - Board: M54455EVB, Options: SYS_ATMEL_BOOT,SYS_TEXT_BASE=0x04000000,SYS_INPUT_CLKSRC=33333333
   text	   data	    bss	    dec	    hex	filename
 167701	  13486	 221212	 402399	  623df	./u-boot
Configuring for M54455EVB_a66 - Board: M54455EVB, Options: SYS_ATMEL_BOOT,SYS_TEXT_BASE=0x04000000,SYS_INPUT_CLKSRC=66666666
   text	   data	    bss	    dec	    hex	filename
 167701	  13486	 221212	 402399	  623df	./u-boot
Configuring for M54455EVB_i66 - Board: M54455EVB, Options: SYS_INTEL_BOOT,SYS_TEXT_BASE=0x00000000,SYS_INPUT_CLKSRC=66666666
   text	   data	    bss	    dec	    hex	filename
 167663	  13486	 221212	 402361	  623b9	./u-boot
Configuring for M54455EVB_intel - Board: M54455EVB, Options: SYS_INTEL_BOOT,SYS_TEXT_BASE=0x00000000,SYS_INPUT_CLKSRC=33333333
   text	   data	    bss	    dec	    hex	filename
 167663	  13486	 221212	 402361	  623b9	./u-boot
Configuring for M54455EVB_stm33 - Board: M54455EVB, Options: SYS_STMICRO_BOOT,CF_SBF,SYS_TEXT_BASE=0x4FE00000,SYS_INPUT_CLKSRC=33333333
   text	   data	    bss	    dec	    hex	filename
 167504	  13486	 221212	 402202	  6231a	./u-boot
Configuring for M5475AFE - Board: M5475EVB, Options: SYS_BUSCLK=133333333,SYS_BOOTSZ=2,SYS_DRAMSZ=64
   text	   data	    bss	    dec	    hex	filename
 165234	  17308	 151404	 333946	  5187a	./u-boot
Configuring for M5475BFE - Board: M5475EVB, Options: SYS_BUSCLK=133333333,SYS_BOOTSZ=2,SYS_DRAMSZ=64,SYS_NOR1SZ=16
   text	   data	    bss	    dec	    hex	filename
 165802	  17308	 152172	 335282	  51db2	./u-boot
Configuring for M5475CFE - Board: M5475EVB, Options: SYS_BUSCLK=133333333,SYS_BOOTSZ=2,SYS_DRAMSZ=64,SYS_NOR1SZ=16,SYS_VIDEO,SYS_USBCTRL
   text	   data	    bss	    dec	    hex	filename
 165802	  17308	 152172	 335282	  51db2	./u-boot
Configuring for M5475DFE - Board: M5475EVB, Options: SYS_BUSCLK=133333333,SYS_BOOTSZ=2,SYS_DRAMSZ=64,SYS_USBCTRL
   text	   data	    bss	    dec	    hex	filename
 165234	  17308	 151404	 333946	  5187a	./u-boot
Configuring for M5475EFE - Board: M5475EVB, Options: SYS_BUSCLK=133333333,SYS_BOOTSZ=2,SYS_DRAMSZ=64,SYS_VIDEO,SYS_USBCTRL
   text	   data	    bss	    dec	    hex	filename
 165234	  17308	 151404	 333946	  5187a	./u-boot
Configuring for M5475FFE - Board: M5475EVB, Options: SYS_BUSCLK=133333333,SYS_BOOTSZ=2,SYS_DRAMSZ=64,SYS_NOR1SZ=32,SYS_VIDEO,SYS_USBCTRL,SYS_DRAMSZ1=64
   text	   data	    bss	    dec	    hex	filename
 165838	  17308	 152172	 335318	  51dd6	./u-boot
Configuring for M5475GFE - Board: M5475EVB, Options: SYS_BUSCLK=133333333,SYS_BOOTSZ=4,SYS_DRAMSZ=64
   text	   data	    bss	    dec	    hex	filename
 165234	  17308	 151404	 333946	  5187a	./u-boot
Configuring for M5485AFE - Board: M5485EVB, Options: SYS_BUSCLK=100000000,SYS_BOOTSZ=2,SYS_DRAMSZ=64
   text	   data	    bss	    dec	    hex	filename
 164704	  17264	 151404	 333372	  5163c	./u-boot
Configuring for M5485BFE - Board: M5485EVB, Options: SYS_BUSCLK=100000000,SYS_BOOTSZ=2,SYS_DRAMSZ=64,SYS_NOR1SZ=16
   text	   data	    bss	    dec	    hex	filename
 165272	  17264	 152172	 334708	  51b74	./u-boot
Configuring for M5485CFE - Board: M5485EVB, Options: SYS_BUSCLK=100000000,SYS_BOOTSZ=2,SYS_DRAMSZ=64,SYS_NOR1SZ=16,SYS_VIDEO,SYS_USBCTRL
   text	   data	    bss	    dec	    hex	filename
 165272	  17264	 152172	 334708	  51b74	./u-boot
Configuring for M5485DFE - Board: M5485EVB, Options: SYS_BUSCLK=100000000,SYS_BOOTSZ=2,SYS_DRAMSZ=64,SYS_USBCTRL
   text	   data	    bss	    dec	    hex	filename
 164704	  17264	 151404	 333372	  5163c	./u-boot
Configuring for M5485EFE - Board: M5485EVB, Options: SYS_BUSCLK=100000000,SYS_BOOTSZ=2,SYS_DRAMSZ=64,SYS_VIDEO,SYS_USBCTRL
   text	   data	    bss	    dec	    hex	filename
 164704	  17264	 151404	 333372	  5163c	./u-boot
Configuring for M5485FFE - Board: M5485EVB, Options: SYS_BUSCLK=100000000,SYS_BOOTSZ=2,SYS_DRAMSZ=64,SYS_NOR1SZ=32,SYS_VIDEO,SYS_USBCTRL,SYS_DRAMSZ1=64
   text	   data	    bss	    dec	    hex	filename
 165308	  17264	 152172	 334744	  51b98	./u-boot
Configuring for M5485GFE - Board: M5485EVB, Options: SYS_BUSCLK=100000000,SYS_BOOTSZ=4,SYS_DRAMSZ=64
   text	   data	    bss	    dec	    hex	filename
 164704	  17264	 151404	 333372	  5163c	./u-boot
Configuring for M5485HFE - Board: M5485EVB, Options: SYS_BUSCLK=100000000,SYS_BOOTSZ=2,SYS_DRAMSZ=64,SYS_NOR1SZ=16,SYS_VIDEO
   text	   data	    bss	    dec	    hex	filename
 165272	  17264	 152172	 334708	  51b74	./u-boot
Configuring for M5253EVBE board...
   text	   data	    bss	    dec	    hex	filename
 135677	   9760	 200128	 345565	  545dd	./u-boot

--------------------- SUMMARY ----------------------------
Boards compiled: 48
----------------------------------------------------------

END
m68k: define __kernel_size_t as unsinged int again

Commit ddc94378d changed the definition of __kernel_size_t
from unsigned int to unsigned long.

It is true that it fixed warnings on some crosstools
but it increased warnings on the others.

The problem is that we cannot see consistency in terms of
the typedef of __kernel_size_t on M68K architecture.

However, I'd like to suggest to get __kernel_size_t to be
unsigned int again.

Rationale:

[1] Linux Kernel defines __kernel_size_t on M68K as unsigned int.
    Let's stick to the Linux's way.

[2] We want to build boards with pre-built and popular toolchains,
    not the one locally-built by indivisuals.
    I think m68-linux-gcc which can be downloaded from www.kernel.org
    is the candidate for our _recommended_ toolchains.

With this patch, all the m68k boards can be built without any warnings.

Give it a try with the following crosstools:

https://www.kernel.org/pub/tools/crosstool/files/bin/x86_64/4.6.3/
x86_64-gcc-4.6.3-nolibc_m68k-linux.tar.xz

or

https://www.kernel.org/pub/tools/crosstool/files/bin/x86_64/4.9.0/
x86_64-gcc-4.9.0-nolibc_m68k-linux.tar.xz

(The latter is newer.)

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Cc: Simon Glass <sjg@chromium.org>
Cc: Jason Jin <Jason.jin@freescale.com>
Don't send: tools: Add remove_redundant_config
Don't send: tools: add find_unused_source
Don't send: tools: Add find_unused_header
Don't send: tools: run_sed
Don't send: tools: check_config

Check if specified CONFIG is defined or not.
Don't send: tools: insert_config
arm: include config.h in arch/arm/lib/vectors.S

Commit 41623c91 moved exception handling to arch/arm/lib/vectors.S,
but it missed to include <config.h>.

This mistake causes two problems.

[1]
"enbw_cmc", "da850evm_direct_nor", "calimain" boards are broken.

They expect CONFIG_SYS_DV_NOR_BOOT_CFG (= 0x00000011) at the beginning
of the boot image.

But it is missing since commit 41623c91 because
CONFIG_SYS_DV_NOR_BOOT_CFG is never defined in arch/arm/lib/vectors.S.

[2]
Boards with CONFIG_USE_IRQ fail with undefined reference error
of "IRQ_STACK_START" and "FIQ_STACK_START".

This is _potential_ problem because currently there is no board
enabling CONFIG_USE_IRQ.
But we cannot deny the possibility some board may enable it in future.

(If we are not willing to support interrupt feature, all references
to CONFIG_USE_IRQ should be dropped immediately.)

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
Series-to: uboot
Series-version: 2
Series-changes: 2
  - Rephrase commit subject and description. (No change in code-diff)

Cover-letter:
ARM: bug fixes of commit 41623c91 (arch/arm/lib/vectors.S)

END
powerpc: mpc8xx: remove some of tqm8xx board family without maintainers

Remove NSCU, TK885D, TQM823M, TQM850M, TQM855M, TQM860M,
TQM862L, TQM826M, TQM866M, TQM885D boards support.

These boards are old enough and have no maintainers.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Cc: Wolfgang Denk <wd@denx.de>
Series-to: uboot
Commit-notes:

I built all the other boards and compared MD5SUM.

I confirmed this patch has no impact against them.

END
mpc8260: remove ppmc8260 board support
powerpc: mpc824x: remove MUSENKI and Sandpoint8245 board support

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
powerpc: mpc8xx: remove stxxtc board support

Because this is the last board defining CONFIG_MPC885_FAMILY,
drivers/usb/gadget/mpc8xx_udc.c has also been dropped.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
powerpc: mpc8xx: remove svm_sc8xx board
powerpc: mpc8xx: remove SXNI855T board support

Because this is the last board definint CONFIG_RTC_DS1306,
drivers/rtc/ds1306.c has also been removed.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
powerpc: mpc8xx: remove GEN860T, GEN806T_SC board support

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
powerpc: mpc8xx: remove FLAGADM board support

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
powerpc: mpc8260: remove sacsng board support
powerpc: mpc8260: remove ep8260 board support
boards.cfg: fix some maintainers fields

Add a white space between the name and the email address.