diff options
Diffstat (limited to 'common')
147 files changed, 283 insertions, 2736 deletions
| diff --git a/common/Makefile b/common/Makefile index 53c92ef62..87ba82e20 100644 --- a/common/Makefile +++ b/common/Makefile @@ -2,23 +2,7 @@  # (C) Copyright 2004-2006  # 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 +# SPDX-License-Identifier:	GPL-2.0+  #  include $(TOPDIR)/config.mk diff --git a/common/board_f.c b/common/board_f.c index ab4242a77..0ada1afe1 100644 --- a/common/board_f.c +++ b/common/board_f.c @@ -7,23 +7,7 @@   * Sysgo Real-Time Solutions, GmbH <www.elinos.com>   * Marius Groeger <mgroeger@sysgo.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 + * SPDX-License-Identifier:	GPL-2.0+   */  #include <common.h> @@ -261,7 +245,7 @@ void __dram_init_banksize(void)  void dram_init_banksize(void)  	__attribute__((weak, alias("__dram_init_banksize"))); -#if defined(CONFIG_HARD_I2C) || defined(CONFIG_SOFT_I2C) +#if defined(CONFIG_HARD_I2C) || defined(CONFIG_SYS_I2C)  static int init_func_i2c(void)  {  	puts("I2C:   "); @@ -919,7 +903,7 @@ static init_fnc_t init_sequence_f[] = {  	misc_init_f,  #endif  	INIT_FUNC_WATCHDOG_RESET -#if defined(CONFIG_HARD_I2C) || defined(CONFIG_SOFT_I2C) +#if defined(CONFIG_HARD_I2C) || defined(CONFIG_SYS_I2C)  	init_func_i2c,  #endif  #if defined(CONFIG_HARD_SPI) diff --git a/common/board_r.c b/common/board_r.c index f7a036e32..86ca1cbbd 100644 --- a/common/board_r.c +++ b/common/board_r.c @@ -7,23 +7,7 @@   * Sysgo Real-Time Solutions, GmbH <www.elinos.com>   * Marius Groeger <mgroeger@sysgo.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 + * SPDX-License-Identifier:	GPL-2.0+   */  #include <common.h> diff --git a/common/bootstage.c b/common/bootstage.c index 94a32a997..35bce3d88 100644 --- a/common/bootstage.c +++ b/common/bootstage.c @@ -1,23 +1,7 @@  /*   * Copyright (c) 2011, Google Inc. All rights reserved.   * - * 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 + * SPDX-License-Identifier:	GPL-2.0+   */ diff --git a/common/bouncebuf.c b/common/bouncebuf.c index 1df12cdda..9eece6d75 100644 --- a/common/bouncebuf.c +++ b/common/bouncebuf.c @@ -3,23 +3,7 @@   *   * Copyright (C) 2012 Marek Vasut <marex@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 + * SPDX-License-Identifier:	GPL-2.0+   */  #include <common.h> diff --git a/common/cmd_ambapp.c b/common/cmd_ambapp.c index fa7d7e280..2a1995a76 100644 --- a/common/cmd_ambapp.c +++ b/common/cmd_ambapp.c @@ -2,23 +2,7 @@   * (C) Copyright 2007   * Daniel Hellstrom, Gaisler Research, daniel@gaisler.com.   * - * 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 + * SPDX-License-Identifier:	GPL-2.0+   */  /* diff --git a/common/cmd_bdinfo.c b/common/cmd_bdinfo.c index 17dc96179..af884b8a6 100644 --- a/common/cmd_bdinfo.c +++ b/common/cmd_bdinfo.c @@ -2,23 +2,7 @@   * (C) Copyright 2003   * 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 + * SPDX-License-Identifier:	GPL-2.0+   */  /* diff --git a/common/cmd_bmp.c b/common/cmd_bmp.c index a7c5fbd26..c093fefd4 100644 --- a/common/cmd_bmp.c +++ b/common/cmd_bmp.c @@ -2,23 +2,7 @@   * (C) Copyright 2002   * Detlev Zundel, DENX Software Engineering, dzu@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 + * SPDX-License-Identifier:	GPL-2.0+   */  /* diff --git a/common/cmd_boot.c b/common/cmd_boot.c index d3836fdfd..8f2e0701b 100644 --- a/common/cmd_boot.c +++ b/common/cmd_boot.c @@ -2,23 +2,7 @@   * (C) Copyright 2000-2003   * 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 + * SPDX-License-Identifier:	GPL-2.0+   */  /* diff --git a/common/cmd_bootm.c b/common/cmd_bootm.c index c0eabd259..046e22ff4 100644 --- a/common/cmd_bootm.c +++ b/common/cmd_bootm.c @@ -2,23 +2,7 @@   * (C) Copyright 2000-2009   * 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 + * SPDX-License-Identifier:	GPL-2.0+   */ diff --git a/common/cmd_bootmenu.c b/common/cmd_bootmenu.c index 7cb6876f1..163d5b2e2 100644 --- a/common/cmd_bootmenu.c +++ b/common/cmd_bootmenu.c @@ -1,23 +1,7 @@  /*   * (C) Copyright 2011-2013 Pali Rohár <pali.rohar@gmail.com>   * - * 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 + * SPDX-License-Identifier:	GPL-2.0+   */  #include <common.h> diff --git a/common/cmd_bootstage.c b/common/cmd_bootstage.c index 7aa7895c8..106894aa5 100644 --- a/common/cmd_bootstage.c +++ b/common/cmd_bootstage.c @@ -1,23 +1,7 @@  /*   * Copyright (c) 2012, Google Inc. All rights reserved.   * - * 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 + * SPDX-License-Identifier:	GPL-2.0+   */  #include <common.h> diff --git a/common/cmd_cache.c b/common/cmd_cache.c index 5512f924b..602fecaba 100644 --- a/common/cmd_cache.c +++ b/common/cmd_cache.c @@ -2,23 +2,7 @@   * (C) Copyright 2000   * 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 + * SPDX-License-Identifier:	GPL-2.0+   */  /* diff --git a/common/cmd_cbfs.c b/common/cmd_cbfs.c index f51534b07..35d8a7a89 100644 --- a/common/cmd_cbfs.c +++ b/common/cmd_cbfs.c @@ -1,23 +1,7 @@  /*   * Copyright (c) 2011 The Chromium OS Authors. All rights reserved.   * - * 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 + * SPDX-License-Identifier:	GPL-2.0+   */  /* diff --git a/common/cmd_console.c b/common/cmd_console.c index e8d9f11bd..93dc50505 100644 --- a/common/cmd_console.c +++ b/common/cmd_console.c @@ -2,23 +2,7 @@   * (C) Copyright 2000   * 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 + * SPDX-License-Identifier:	GPL-2.0+   */  /* diff --git a/common/cmd_cramfs.c b/common/cmd_cramfs.c index 0e43ab67c..1d31326bd 100644 --- a/common/cmd_cramfs.c +++ b/common/cmd_cramfs.c @@ -1,18 +1,5 @@  /* - * 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 + * SPDX-License-Identifier:	GPL-2.0+   *   * based on: cmd_jffs2.c   * diff --git a/common/cmd_dataflash_mmc_mux.c b/common/cmd_dataflash_mmc_mux.c index f8f178742..3832248cb 100644 --- a/common/cmd_dataflash_mmc_mux.c +++ b/common/cmd_dataflash_mmc_mux.c @@ -2,23 +2,7 @@   * (C) Copyright 2000   * 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 + * SPDX-License-Identifier:	GPL-2.0+   */  #include <common.h> diff --git a/common/cmd_date.c b/common/cmd_date.c index 0ac032cf3..e3491662b 100644 --- a/common/cmd_date.c +++ b/common/cmd_date.c @@ -2,23 +2,7 @@   * (C) Copyright 2001   * 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 + * SPDX-License-Identifier:	GPL-2.0+   */  /* @@ -50,8 +34,13 @@ static int do_date(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])  	int old_bus;  	/* switch to correct I2C bus */ +#ifdef CONFIG_SYS_I2C +	old_bus = i2c_get_bus_num(); +	i2c_set_bus_num(CONFIG_SYS_RTC_BUS_NUM); +#else  	old_bus = I2C_GET_BUS();  	I2C_SET_BUS(CONFIG_SYS_RTC_BUS_NUM); +#endif  	switch (argc) {  	case 2:			/* set date & time */ @@ -97,7 +86,11 @@ static int do_date(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])  	}  	/* switch back to original I2C bus */ +#ifdef CONFIG_SYS_I2C +	i2c_set_bus_num(old_bus); +#else  	I2C_SET_BUS(old_bus); +#endif  	return rcode;  } diff --git a/common/cmd_dcr.c b/common/cmd_dcr.c index d3bbc36c5..896f79f41 100644 --- a/common/cmd_dcr.c +++ b/common/cmd_dcr.c @@ -2,23 +2,7 @@   * (C) Copyright 2001   * Erik Theisen,  Wave 7 Optics, etheisen@mindspring.com.   * - * 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 + * SPDX-License-Identifier:	GPL-2.0+   */  /* diff --git a/common/cmd_dfu.c b/common/cmd_dfu.c index 83ef32497..db066acc3 100644 --- a/common/cmd_dfu.c +++ b/common/cmd_dfu.c @@ -5,19 +5,7 @@   * authors: Andrzej Pietrasiewicz <andrzej.p@samsung.com>   *	    Lukasz Majewski <l.majewski@samsung.com>   * - * 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 + * SPDX-License-Identifier:	GPL-2.0+   */  #include <common.h> diff --git a/common/cmd_diag.c b/common/cmd_diag.c index 317ea6605..14ae04f2a 100644 --- a/common/cmd_diag.c +++ b/common/cmd_diag.c @@ -2,23 +2,7 @@   * (C) Copyright 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 + * SPDX-License-Identifier:	GPL-2.0+   */  /* diff --git a/common/cmd_disk.c b/common/cmd_disk.c index 8c4d0bd8b..3e457f672 100644 --- a/common/cmd_disk.c +++ b/common/cmd_disk.c @@ -2,24 +2,7 @@   * (C) Copyright 2000-2011   * 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 - * + * SPDX-License-Identifier:	GPL-2.0+   */  #include <common.h>  #include <command.h> diff --git a/common/cmd_display.c b/common/cmd_display.c index d5d5d8c31..bc1b1ebb8 100644 --- a/common/cmd_display.c +++ b/common/cmd_display.c @@ -2,23 +2,7 @@   * (C) Copyright 2005   * 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 + * SPDX-License-Identifier:	GPL-2.0+   */  #include <common.h> diff --git a/common/cmd_dtt.c b/common/cmd_dtt.c index edbd4a83c..7257f10fb 100644 --- a/common/cmd_dtt.c +++ b/common/cmd_dtt.c @@ -2,23 +2,7 @@   * (C) Copyright 2001   * Erik Theisen, Wave 7 Optics, etheisen@mindspring.com   * - * 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 + * SPDX-License-Identifier:	GPL-2.0+    */  #include <common.h> @@ -73,8 +57,13 @@ int dtt_i2c(void)  	/* Force a compilation error, if there are more then 32 sensors */  	BUILD_BUG_ON(sizeof(sensors) > 32);  	/* switch to correct I2C bus */ +#ifdef CONFIG_SYS_I2C +	old_bus = i2c_get_bus_num(); +	i2c_set_bus_num(CONFIG_SYS_DTT_BUS_NUM); +#else  	old_bus = I2C_GET_BUS();  	I2C_SET_BUS(CONFIG_SYS_DTT_BUS_NUM); +#endif  	_initialize_dtt(); @@ -86,8 +75,12 @@ int dtt_i2c(void)  		printf("DTT%d: %i C\n", i + 1, dtt_get_temp(sensors[i]));  	/* switch back to original I2C bus */ +#ifdef CONFIG_SYS_I2C +	i2c_set_bus_num(old_bus); +#else  	I2C_SET_BUS(old_bus);  #endif +#endif  	return 0;  } diff --git a/common/cmd_echo.c b/common/cmd_echo.c index 52123fee2..3dc3a63f6 100644 --- a/common/cmd_echo.c +++ b/common/cmd_echo.c @@ -2,23 +2,7 @@   * Copyright 2000-2009   * 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 + * SPDX-License-Identifier:	GPL-2.0+   */  #include <common.h> diff --git a/common/cmd_eeprom.c b/common/cmd_eeprom.c index 4a43116e9..ef694d8f8 100644 --- a/common/cmd_eeprom.c +++ b/common/cmd_eeprom.c @@ -2,24 +2,7 @@   * (C) Copyright 2000, 2001   * 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 - * + * SPDX-License-Identifier:	GPL-2.0+   */  /* @@ -406,8 +389,7 @@ void eeprom_init  (void)  #if defined(CONFIG_SPI) && !defined(CONFIG_ENV_EEPROM_IS_ON_I2C)  	spi_init_f ();  #endif -#if defined(CONFIG_HARD_I2C) || \ -    defined(CONFIG_SOFT_I2C) +#if defined(CONFIG_HARD_I2C) || defined(CONFIG_SYS_I2C_SOFT)  	i2c_init (CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE);  #endif  } diff --git a/common/cmd_exit.c b/common/cmd_exit.c index 0f2ee4046..c7892333b 100644 --- a/common/cmd_exit.c +++ b/common/cmd_exit.c @@ -2,23 +2,7 @@   * Copyright 2000-2009   * 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 + * SPDX-License-Identifier:	GPL-2.0+   */  #include <common.h> diff --git a/common/cmd_ext2.c b/common/cmd_ext2.c index f25e22b0a..173191980 100644 --- a/common/cmd_ext2.c +++ b/common/cmd_ext2.c @@ -14,24 +14,7 @@   * Sysgo Real-Time Solutions, AG <www.elinos.com>   * Pavel Bartusek <pba@sysgo.com>   * - * 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 - * + * SPDX-License-Identifier:	GPL-2.0+   */  /* diff --git a/common/cmd_ext4.c b/common/cmd_ext4.c index 706fd54a5..4a27cd97c 100644 --- a/common/cmd_ext4.c +++ b/common/cmd_ext4.c @@ -17,21 +17,7 @@   * Sysgo Real-Time Solutions, AG <www.elinos.com>   * Pavel Bartusek <pba@sysgo.com>   * - * 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 - * + * SPDX-License-Identifier:	GPL-2.0+   */  /* diff --git a/common/cmd_fat.c b/common/cmd_fat.c index 0487438fa..f6d7affa0 100644 --- a/common/cmd_fat.c +++ b/common/cmd_fat.c @@ -2,23 +2,7 @@   * (C) Copyright 2002   * Richard Jones, rjones@nexus-tech.net   * - * 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 + * SPDX-License-Identifier:	GPL-2.0+   */  /* diff --git a/common/cmd_fdc.c b/common/cmd_fdc.c index dfa36901e..98b3c4c00 100644 --- a/common/cmd_fdc.c +++ b/common/cmd_fdc.c @@ -2,24 +2,7 @@   * (C) Copyright 2001   * Denis Peter, MPL AG, d.peter@mpl.ch.   * - * 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 - * + * SPDX-License-Identifier:	GPL-2.0+   */  /*   * Floppy Disk support diff --git a/common/cmd_fdos.c b/common/cmd_fdos.c index 8ea1140e7..69303255f 100644 --- a/common/cmd_fdos.c +++ b/common/cmd_fdos.c @@ -3,23 +3,7 @@   * Stäubli Faverges - <www.staubli.com>   * Pierre AUBERT  p.aubert@staubli.com   * - * 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 + * SPDX-License-Identifier:	GPL-2.0+   */  /* diff --git a/common/cmd_fdt.c b/common/cmd_fdt.c index edefd7773..3a9edd646 100644 --- a/common/cmd_fdt.c +++ b/common/cmd_fdt.c @@ -5,23 +5,7 @@   *   Pantelis Antoniou <pantelis.antoniou@gmail.com> and   *   Matthew McClintock <msm@freescale.com>   * - * 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 + * SPDX-License-Identifier:	GPL-2.0+   */  #include <common.h> diff --git a/common/cmd_fitupd.c b/common/cmd_fitupd.c index 618ff7c8d..e811473b4 100644 --- a/common/cmd_fitupd.c +++ b/common/cmd_fitupd.c @@ -1,9 +1,12 @@ -/* - * (C) Copyright 2011 - * Andreas Pretzsch, carpe noctem engineering, apr@cn-eng.de - * - * This file is released under the terms of GPL v2 and any later version. - * See the file COPYING in the root directory of the source tree for details. +de <net.h> + +#if !defined(CONFIG_UPDATE_TFTP) +#error "CONFIG_UPDATE_TFTP required" +#endif + +static int do_fitupd(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) +{ +	ulong addr = 0Un the root directory of the source tree for details.   */  #include <common.h> diff --git a/common/cmd_flash.c b/common/cmd_flash.c index 687eb68db..85d18bb2c 100644 --- a/common/cmd_flash.c +++ b/common/cmd_flash.c @@ -2,23 +2,7 @@   * (C) Copyright 2000   * 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 + * SPDX-License-Identifier:	GPL-2.0+   */  /* diff --git a/common/cmd_fpga.c b/common/cmd_fpga.c index 3cd1b13b3..c4b3c8fc5 100644 --- a/common/cmd_fpga.c +++ b/common/cmd_fpga.c @@ -2,24 +2,7 @@   * (C) Copyright 2000, 2001   * Rich Ireland, Enterasys Networks, rireland@enterasys.com.   * - * 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 - * + * SPDX-License-Identifier:	GPL-2.0+   */  /* diff --git a/common/cmd_fuse.c b/common/cmd_fuse.c index f24c01c2d..0df57dbc8 100644 --- a/common/cmd_fuse.c +++ b/common/cmd_fuse.c @@ -6,23 +6,7 @@   * Copyright 2008 Silicon Turnkey Express, Inc.   * Martha Marx <mmarx@silicontkx.com>   * - * 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 + * SPDX-License-Identifier:	GPL-2.0+   */  #include <common.h> diff --git a/common/cmd_gettime.c b/common/cmd_gettime.c index d7d36a987..320ff709f 100644 --- a/common/cmd_gettime.c +++ b/common/cmd_gettime.c @@ -6,23 +6,7 @@   * (C) Copyright 2001   * 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 + * SPDX-License-Identifier:	GPL-2.0+   */  /* diff --git a/common/cmd_gpt.c b/common/cmd_gpt.c index efd7934bd..06767aa5e 100644 --- a/common/cmd_gpt.c +++ b/common/cmd_gpt.c @@ -5,19 +5,7 @@   * author: Lukasz Majewski <l.majewski@samsung.com>   * author: Piotr Wilczek <p.wilczek@samsung.com>   * - * 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 + * SPDX-License-Identifier:	GPL-2.0+   */  #include <common.h> diff --git a/common/cmd_hash.c b/common/cmd_hash.c index 4fe0e7861..90facbbe1 100644 --- a/common/cmd_hash.c +++ b/common/cmd_hash.c @@ -7,20 +7,7 @@   * (C) Copyright 2000   * Wolfgang Denk, DENX Software Engineering, wd@denx.de.   * - * 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 + * SPDX-License-Identifier:	GPL-2.0+   */  #include <common.h> diff --git a/common/cmd_help.c b/common/cmd_help.c index d9bdc4d17..6ff494d79 100644 --- a/common/cmd_help.c +++ b/common/cmd_help.c @@ -2,23 +2,7 @@   * Copyright 2000-2009   * 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 + * SPDX-License-Identifier:	GPL-2.0+   */  #include <common.h> diff --git a/common/cmd_i2c.c b/common/cmd_i2c.c index 438079447..29f5181ba 100644 --- a/common/cmd_i2c.c +++ b/common/cmd_i2c.c @@ -1,24 +1,13 @@  /* - * (C) Copyright 2001 - * Gerald Van Baren, Custom IDEAS, vanbaren@cideas.com. + * (C) Copyright 2009 + * Sergey Kubushyn, himself, ksi@koi8.net   * - * See file CREDITS for list of people who contributed to this - * project. + * Changes for unified multibus/multiadapter I2C support.   * - * 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. + * (C) Copyright 2001 + * Gerald Van Baren, Custom IDEAS, vanbaren@cideas.com.   * - * 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 + * SPDX-License-Identifier:	GPL-2.0+   */  /* @@ -85,6 +74,8 @@  #include <asm/byteorder.h>  #include <linux/compiler.h> +DECLARE_GLOBAL_DATA_PTR; +  /* Display values from last command.   * Memory modify remembered values are different from display memory.   */ @@ -103,7 +94,7 @@ static uint	i2c_mm_last_alen;   * pairs.  The following macros take care of this */  #if defined(CONFIG_SYS_I2C_NOPROBES) -#if defined(CONFIG_I2C_MULTI_BUS) +#if defined(CONFIG_SYS_I2C) || defined(CONFIG_I2C_MULTI_BUS)  static struct  {  	uchar	bus; @@ -119,17 +110,7 @@ static uchar i2c_no_probes[] = CONFIG_SYS_I2C_NOPROBES;  #define COMPARE_BUS(b,i)	((b) == 0)	/* Make compiler happy */  #define COMPARE_ADDR(a,i)	(i2c_no_probes[(i)] == (a))  #define NO_PROBE_ADDR(i)	i2c_no_probes[(i)] -#endif	/* CONFIG_MULTI_BUS */ - -#define NUM_ELEMENTS_NOPROBE (sizeof(i2c_no_probes)/sizeof(i2c_no_probes[0])) -#endif - -#if defined(CONFIG_I2C_MUX) -static I2C_MUX_DEVICE	*i2c_mux_devices = NULL; -static	int	i2c_mux_busid = CONFIG_SYS_MAX_I2C_BUS; - -DECLARE_GLOBAL_DATA_PTR; - +#endif	/* defined(CONFIG_SYS_I2C) */  #endif  #define DISP_LINE_LEN	16 @@ -144,7 +125,6 @@ DECLARE_GLOBAL_DATA_PTR;  __weak  void i2c_init_board(void)  { -	return;  }  /* TODO: Implement architecture-specific get/set functions */ @@ -161,6 +141,11 @@ void i2c_init_board(void)   *   * Returns I2C bus speed in Hz.   */ +#if !defined(CONFIG_SYS_I2C) +/* + * TODO: Implement architecture-specific get/set functions + * Should go away, if we switched completely to new multibus support + */  __weak  unsigned int i2c_get_bus_speed(void)  { @@ -188,6 +173,7 @@ int i2c_set_bus_speed(unsigned int speed)  	return 0;  } +#endif  /**   * get_alen() - Small parser helper function to get address length @@ -700,7 +686,7 @@ static int do_i2c_probe (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv  	int found = 0;  #if defined(CONFIG_SYS_I2C_NOPROBES)  	int k, skip; -	uchar bus = GET_BUS_NUM; +	unsigned int bus = GET_BUS_NUM;  #endif	/* NOPROBES */  	if (argc == 2) @@ -713,7 +699,7 @@ static int do_i2c_probe (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv  #if defined(CONFIG_SYS_I2C_NOPROBES)  		skip = 0; -		for (k=0; k < NUM_ELEMENTS_NOPROBE; k++) { +		for (k = 0; k < ARRAY_SIZE(i2c_no_probes); k++) {  			if (COMPARE_BUS(bus, k) && COMPARE_ADDR(j, k)) {  				skip = 1;  				break; @@ -731,7 +717,7 @@ static int do_i2c_probe (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv  #if defined(CONFIG_SYS_I2C_NOPROBES)  	puts ("Excluded chip addresses:"); -	for (k=0; k < NUM_ELEMENTS_NOPROBE; k++) { +	for (k = 0; k < ARRAY_SIZE(i2c_no_probes); k++) {  		if (COMPARE_BUS(bus,k))  			printf(" %02X", NO_PROBE_ADDR(k));  	} @@ -1373,9 +1359,8 @@ int do_edid(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])  }  #endif /* CONFIG_I2C_EDID */ -#if defined(CONFIG_I2C_MUX)  /** - * do_i2c_add_bus() - Handle the "i2c bus" command-line command + * do_i2c_show_bus() - Handle the "i2c bus" command-line command   * @cmdtp:	Command data struct pointer   * @flag:	Command flag   * @argc:	Command-line argument count @@ -1383,35 +1368,55 @@ int do_edid(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])   *   * Returns zero always.   */ -static int do_i2c_add_bus(cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[]) +#if defined(CONFIG_SYS_I2C) +int do_i2c_show_bus(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])  { -	int ret=0; +	int	i; +#ifndef CONFIG_SYS_I2C_DIRECT_BUS +	int	j; +#endif  	if (argc == 1) {  		/* show all busses */ -		I2C_MUX		*mux; -		I2C_MUX_DEVICE	*device = i2c_mux_devices; - -		printf ("Busses reached over muxes:\n"); -		while (device != NULL) { -			printf ("Bus ID: %x\n", device->busid); -			printf ("  reached over Mux(es):\n"); -			mux = device->mux; -			while (mux != NULL) { -				printf ("    %s@%x ch: %x\n", mux->name, mux->chip, mux->channel); -				mux = mux->next; +		for (i = 0; i < CONFIG_SYS_NUM_I2C_BUSES; i++) { +			printf("Bus %d:\t%s", i, I2C_ADAP_NR(i)->name); +#ifndef CONFIG_SYS_I2C_DIRECT_BUS +			for (j = 0; j < CONFIG_SYS_I2C_MAX_HOPS; j++) { +				if (i2c_bus[i].next_hop[j].chip == 0) +					break; +				printf("->%s@0x%2x:%d", +				       i2c_bus[i].next_hop[j].mux.name, +				       i2c_bus[i].next_hop[j].chip, +				       i2c_bus[i].next_hop[j].channel);  			} -			device = device->next; +#endif +			printf("\n");  		}  	} else { -		(void)i2c_mux_ident_muxstring ((uchar *)argv[1]); -		ret = 0; +		/* show specific bus */ +		i = simple_strtoul(argv[1], NULL, 10); +		if (i >= CONFIG_SYS_NUM_I2C_BUSES) { +			printf("Invalid bus %d\n", i); +			return -1; +		} +		printf("Bus %d:\t%s", i, I2C_ADAP_NR(i)->name); +#ifndef CONFIG_SYS_I2C_DIRECT_BUS +			for (j = 0; j < CONFIG_SYS_I2C_MAX_HOPS; j++) { +				if (i2c_bus[i].next_hop[j].chip == 0) +					break; +				printf("->%s@0x%2x:%d", +				       i2c_bus[i].next_hop[j].mux.name, +				       i2c_bus[i].next_hop[j].chip, +				       i2c_bus[i].next_hop[j].channel); +			} +#endif +		printf("\n");  	} -	return ret; + +	return 0;  } -#endif  /* CONFIG_I2C_MUX */ +#endif -#if defined(CONFIG_I2C_MULTI_BUS)  /**   * do_i2c_bus_num() - Handle the "i2c dev" command-line command   * @cmdtp:	Command data struct pointer @@ -1422,23 +1427,29 @@ static int do_i2c_add_bus(cmd_tbl_t * cmdtp, int flag, int argc, char * const ar   * Returns zero on success, CMD_RET_USAGE in case of misuse and negative   * on error.   */ -static int do_i2c_bus_num(cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[]) +#if defined(CONFIG_SYS_I2C) || defined(CONFIG_I2C_MULTI_BUS) +int do_i2c_bus_num(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])  { -	int bus_idx, ret=0; +	int		ret = 0; +	unsigned int	bus_no;  	if (argc == 1)  		/* querying current setting */  		printf("Current bus is %d\n", i2c_get_bus_num());  	else { -		bus_idx = simple_strtoul(argv[1], NULL, 10); -		printf("Setting bus to %d\n", bus_idx); -		ret = i2c_set_bus_num(bus_idx); +		bus_no = simple_strtoul(argv[1], NULL, 10); +		if (bus_no >= CONFIG_SYS_NUM_I2C_BUSES) { +			printf("Invalid bus %d\n", bus_no); +			return -1; +		} +		printf("Setting bus to %d\n", bus_no); +		ret = i2c_set_bus_num(bus_no);  		if (ret)  			printf("Failure changing bus number (%d)\n", ret);  	}  	return ret;  } -#endif  /* CONFIG_I2C_MULTI_BUS */ +#endif  /* defined(CONFIG_SYS_I2C) */  /**   * do_i2c_bus_speed() - Handle the "i2c speed" command-line command @@ -1508,16 +1519,21 @@ static int do_i2c_nm(cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[])   */  static int do_i2c_reset(cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[])  { +#if defined(CONFIG_SYS_I2C) +	i2c_init(I2C_ADAP->speed, I2C_ADAP->slaveaddr); +#else  	i2c_init(CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE); +#endif  	return 0;  }  static cmd_tbl_t cmd_i2c_sub[] = { -#if defined(CONFIG_I2C_MUX) -	U_BOOT_CMD_MKENT(bus, 1, 1, do_i2c_add_bus, "", ""), -#endif  /* CONFIG_I2C_MUX */ +#if defined(CONFIG_SYS_I2C) +	U_BOOT_CMD_MKENT(bus, 1, 1, do_i2c_show_bus, "", ""), +#endif  	U_BOOT_CMD_MKENT(crc32, 3, 1, do_i2c_crc, "", ""), -#if defined(CONFIG_I2C_MULTI_BUS) +#if defined(CONFIG_SYS_I2C) || \ +	defined(CONFIG_I2C_MULTI_BUS)  	U_BOOT_CMD_MKENT(dev, 1, 1, do_i2c_bus_num, "", ""),  #endif  /* CONFIG_I2C_MULTI_BUS */  #if defined(CONFIG_I2C_EDID) @@ -1576,11 +1592,12 @@ static int do_i2c(cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[])  /***************************************************/  #ifdef CONFIG_SYS_LONGHELP  static char i2c_help_text[] = -#if defined(CONFIG_I2C_MUX) -	"bus [muxtype:muxaddr:muxchannel] - add a new bus reached over muxes\ni2c " -#endif  /* CONFIG_I2C_MUX */ +#if defined(CONFIG_SYS_I2C) +	"bus [muxtype:muxaddr:muxchannel] - show I2C bus info\n" +#endif  	"crc32 chip address[.0, .1, .2] count - compute CRC32 checksum\n" -#if defined(CONFIG_I2C_MULTI_BUS) +#if defined(CONFIG_SYS_I2C) || \ +	defined(CONFIG_I2C_MULTI_BUS)  	"i2c dev [dev] - show or set current I2C bus\n"  #endif  /* CONFIG_I2C_MULTI_BUS */  #if defined(CONFIG_I2C_EDID) @@ -1606,225 +1623,3 @@ U_BOOT_CMD(  	"I2C sub-system",  	i2c_help_text  ); - -#if defined(CONFIG_I2C_MUX) -static int i2c_mux_add_device(I2C_MUX_DEVICE *dev) -{ -	I2C_MUX_DEVICE	*devtmp = i2c_mux_devices; - -	if (i2c_mux_devices == NULL) { -		i2c_mux_devices = dev; -		return 0; -	} -	while (devtmp->next != NULL) -		devtmp = devtmp->next; - -	devtmp->next = dev; -	return 0; -} - -I2C_MUX_DEVICE	*i2c_mux_search_device(int id) -{ -	I2C_MUX_DEVICE	*device = i2c_mux_devices; - -	while (device != NULL) { -		if (device->busid == id) -			return device; -		device = device->next; -	} -	return NULL; -} - -/* searches in the buf from *pos the next ':'. - * returns: - *     0 if found (with *pos = where) - *   < 0 if an error occured - *   > 0 if the end of buf is reached - */ -static int i2c_mux_search_next (int *pos, uchar	*buf, int len) -{ -	while ((buf[*pos] != ':') && (*pos < len)) { -		*pos += 1; -	} -	if (*pos >= len) -		return 1; -	if (buf[*pos] != ':') -		return -1; -	return 0; -} - -static int i2c_mux_get_busid (void) -{ -	int	tmp = i2c_mux_busid; - -	i2c_mux_busid ++; -	return tmp; -} - -/* Analyses a Muxstring and immediately sends the -   commands to the muxes. Runs from flash. - */ -int i2c_mux_ident_muxstring_f (uchar *buf) -{ -	int	pos = 0; -	int	oldpos; -	int	ret = 0; -	int	len = strlen((char *)buf); -	int	chip; -	uchar	channel; -	int	was = 0; - -	while (ret == 0) { -		oldpos = pos; -		/* search name */ -		ret = i2c_mux_search_next(&pos, buf, len); -		if (ret != 0) -			printf ("ERROR\n"); -		/* search address */ -		pos ++; -		oldpos = pos; -		ret = i2c_mux_search_next(&pos, buf, len); -		if (ret != 0) -			printf ("ERROR\n"); -		buf[pos] = 0; -		chip = simple_strtoul((char *)&buf[oldpos], NULL, 16); -		buf[pos] = ':'; -		/* search channel */ -		pos ++; -		oldpos = pos; -		ret = i2c_mux_search_next(&pos, buf, len); -		if (ret < 0) -			printf ("ERROR\n"); -		was = 0; -		if (buf[pos] != 0) { -			buf[pos] = 0; -			was = 1; -		} -		channel = simple_strtoul((char *)&buf[oldpos], NULL, 16); -		if (was) -			buf[pos] = ':'; -		if (i2c_write(chip, 0, 0, &channel, 1) != 0) { -			printf ("Error setting Mux: chip:%x channel: \ -				%x\n", chip, channel); -			return -1; -		} -		pos ++; -		oldpos = pos; - -	} -	i2c_init_board(); - -	return 0; -} - -/* Analyses a Muxstring and if this String is correct - * adds a new I2C Bus. - */ -I2C_MUX_DEVICE *i2c_mux_ident_muxstring (uchar *buf) -{ -	I2C_MUX_DEVICE	*device; -	I2C_MUX		*mux; -	int	pos = 0; -	int	oldpos; -	int	ret = 0; -	int	len = strlen((char *)buf); -	int	was = 0; - -	device = (I2C_MUX_DEVICE *)malloc (sizeof(I2C_MUX_DEVICE)); -	device->mux = NULL; -	device->busid = i2c_mux_get_busid (); -	device->next = NULL; -	while (ret == 0) { -		mux = (I2C_MUX *)malloc (sizeof(I2C_MUX)); -		mux->next = NULL; -		/* search name of mux */ -		oldpos = pos; -		ret = i2c_mux_search_next(&pos, buf, len); -		if (ret != 0) -			printf ("%s no name.\n", __FUNCTION__); -		mux->name = (char *)malloc (pos - oldpos + 1); -		memcpy (mux->name, &buf[oldpos], pos - oldpos); -		mux->name[pos - oldpos] = 0; -		/* search address */ -		pos ++; -		oldpos = pos; -		ret = i2c_mux_search_next(&pos, buf, len); -		if (ret != 0) -			printf ("%s no mux address.\n", __FUNCTION__); -		buf[pos] = 0; -		mux->chip = simple_strtoul((char *)&buf[oldpos], NULL, 16); -		buf[pos] = ':'; -		/* search channel */ -		pos ++; -		oldpos = pos; -		ret = i2c_mux_search_next(&pos, buf, len); -		if (ret < 0) -			printf ("%s no mux channel.\n", __FUNCTION__); -		was = 0; -		if (buf[pos] != 0) { -			buf[pos] = 0; -			was = 1; -		} -		mux->channel = simple_strtoul((char *)&buf[oldpos], NULL, 16); -		if (was) -			buf[pos] = ':'; -		if (device->mux == NULL) -			device->mux = mux; -		else { -			I2C_MUX		*muxtmp = device->mux; -			while (muxtmp->next != NULL) { -				muxtmp = muxtmp->next; -			} -			muxtmp->next = mux; -		} -		pos ++; -		oldpos = pos; -	} -	if (ret > 0) { -		/* Add Device */ -		i2c_mux_add_device (device); -		return device; -	} - -	return NULL; -} - -int i2x_mux_select_mux(int bus) -{ -	I2C_MUX_DEVICE  *dev; -	I2C_MUX		*mux; - -	if ((gd->flags & GD_FLG_RELOC) != GD_FLG_RELOC) { -		/* select Default Mux Bus */ -#if defined(CONFIG_SYS_I2C_IVM_BUS) -		i2c_mux_ident_muxstring_f ((uchar *)CONFIG_SYS_I2C_IVM_BUS); -#else -		{ -		unsigned char *buf; -		buf = (unsigned char *) getenv("EEprom_ivm"); -		if (buf != NULL) -			i2c_mux_ident_muxstring_f (buf); -		} -#endif -		return 0; -	} -	dev = i2c_mux_search_device(bus); -	if (dev == NULL) -		return -1; - -	mux = dev->mux; -	while (mux != NULL) { -		/* do deblocking on each level of mux, before mux config */ -		i2c_init_board(); -		if (i2c_write(mux->chip, 0, 0, &mux->channel, 1) != 0) { -			printf ("Error setting Mux: chip:%x channel: \ -				%x\n", mux->chip, mux->channel); -			return -1; -		} -		mux = mux->next; -	} -	/* do deblocking on each level of mux and after mux config */ -	i2c_init_board(); -	return 0; -} -#endif /* CONFIG_I2C_MUX */ diff --git a/common/cmd_ide.c b/common/cmd_ide.c index 59e95dfa1..c375ef209 100644 --- a/common/cmd_ide.c +++ b/common/cmd_ide.c @@ -2,24 +2,7 @@   * (C) Copyright 2000-2011   * 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 - * + * SPDX-License-Identifier:	GPL-2.0+   */  /* diff --git a/common/cmd_immap.c b/common/cmd_immap.c index bb15795e2..bdf53a4db 100644 --- a/common/cmd_immap.c +++ b/common/cmd_immap.c @@ -2,23 +2,7 @@   * (C) Copyright 2000-2003   * 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 + * SPDX-License-Identifier:	GPL-2.0+   */  /* diff --git a/common/cmd_io.c b/common/cmd_io.c index 6450cb576..eefac36f8 100644 --- a/common/cmd_io.c +++ b/common/cmd_io.c @@ -1,23 +1,7 @@  /*   * Copyright (c) 2012 The Chromium OS Authors.   * - * 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 + * SPDX-License-Identifier:     GPL-2.0+   */  /* diff --git a/common/cmd_irq.c b/common/cmd_irq.c index 1e82883bd..a91d0bf1f 100644 --- a/common/cmd_irq.c +++ b/common/cmd_irq.c @@ -1,23 +1,7 @@  /*   * Copyright 2008 Freescale Semiconductor, Inc.   * - * 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 + * SPDX-License-Identifier:	GPL-2.0+    */  #include <common.h> diff --git a/common/cmd_itest.c b/common/cmd_itest.c index 2c8e5d05e..10d53a063 100644 --- a/common/cmd_itest.c +++ b/common/cmd_itest.c @@ -2,23 +2,7 @@   * (C) Copyright 2003   * Tait Electronics Limited, Christchurch, New Zealand   * - * 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 + * SPDX-License-Identifier:	GPL-2.0+    */  /* diff --git a/common/cmd_jffs2.c b/common/cmd_jffs2.c index 4a4a0000b..bce098315 100644 --- a/common/cmd_jffs2.c +++ b/common/cmd_jffs2.c @@ -18,23 +18,7 @@   *   $Id: cmdlinepart.c,v 1.17 2004/11/26 11:18:47 lavinen Exp $   *   Copyright 2002 SYSGO Real-Time Solutions GmbH   * - * 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 + * SPDX-License-Identifier:	GPL-2.0+   */  /* diff --git a/common/cmd_led.c b/common/cmd_led.c index 84f79fae0..c48603cad 100644 --- a/common/cmd_led.c +++ b/common/cmd_led.c @@ -7,23 +7,7 @@   * (C) Copyright 2008   * Ulf Samuelsson <ulf.samuelsson@atmel.com>   * - * 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 + * SPDX-License-Identifier:	GPL-2.0+    */  #include <common.h> diff --git a/common/cmd_license.c b/common/cmd_license.c index 70645d5ed..b07de72d3 100644 --- a/common/cmd_license.c +++ b/common/cmd_license.c @@ -2,23 +2,7 @@   * (C) Copyright 2007 by OpenMoko, Inc.   * Author: Harald Welte <laforge@openmoko.org>   * - * 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 + * SPDX-License-Identifier:	GPL-2.0+   */  #include <common.h> diff --git a/common/cmd_load.c b/common/cmd_load.c index 0832e92b1..0ce949683 100644 --- a/common/cmd_load.c +++ b/common/cmd_load.c @@ -2,23 +2,7 @@   * (C) Copyright 2000-2004   * 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 + * SPDX-License-Identifier:	GPL-2.0+   */  /* diff --git a/common/cmd_log.c b/common/cmd_log.c index ee291c1b4..8164bdf48 100644 --- a/common/cmd_log.c +++ b/common/cmd_log.c @@ -5,23 +5,7 @@   * Code used from linux/kernel/printk.c   * Copyright (C) 1991, 1992  Linus Torvalds   * - * 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 + * SPDX-License-Identifier:	GPL-2.0+   *   * Comments:   * diff --git a/common/cmd_mac.c b/common/cmd_mac.c index fcc2867b7..52d3ba0f2 100644 --- a/common/cmd_mac.c +++ b/common/cmd_mac.c @@ -2,23 +2,7 @@   * Copyright 2006 Freescale Semiconductor   * York Sun (yorksun@freescale.com)   * - * 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 + * SPDX-License-Identifier:	GPL-2.0+   */  #include <common.h> diff --git a/common/cmd_md5sum.c b/common/cmd_md5sum.c index 3f81fdf6e..ae0f62e26 100644 --- a/common/cmd_md5sum.c +++ b/common/cmd_md5sum.c @@ -5,23 +5,7 @@   * (C) Copyright 2000   * 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 + * SPDX-License-Identifier:	GPL-2.0+   */  #include <common.h> diff --git a/common/cmd_mdio.c b/common/cmd_mdio.c index ff0063b30..65a1f10a9 100644 --- a/common/cmd_mdio.c +++ b/common/cmd_mdio.c @@ -2,23 +2,7 @@   * (C) Copyright 2011 Freescale Semiconductor, Inc   * Andy Fleming   * - * 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 + * SPDX-License-Identifier:	GPL-2.0+   */  /* diff --git a/common/cmd_mem.c b/common/cmd_mem.c index 77eafa0b8..c3aab3d4b 100644 --- a/common/cmd_mem.c +++ b/common/cmd_mem.c @@ -2,23 +2,7 @@   * (C) Copyright 2000   * 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 + * SPDX-License-Identifier:	GPL-2.0+   */  /* diff --git a/common/cmd_mfsl.c b/common/cmd_mfsl.c index ddf80d71f..d735c9e59 100644 --- a/common/cmd_mfsl.c +++ b/common/cmd_mfsl.c @@ -1,25 +1,9 @@ -/* - * (C) Copyright 2007 Michal Simek - * - * Michal  SIMEK <monstr@monstr.eu> - * - * See file CREDITS for list of people who contributed to this +ve received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * 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 + * SPDX-License-Identifier:	GPL-2.0+   */  /* diff --git a/common/cmd_mii.c b/common/cmd_mii.c index 8df44cc42..d3dd6b1c9 100644 --- a/common/cmd_mii.c +++ b/common/cmd_mii.c @@ -2,23 +2,7 @@   * (C) Copyright 2001   * Gerald Van Baren, Custom IDEAS, vanbaren@cideas.com   * - * 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 + * SPDX-License-Identifier:	GPL-2.0+   */  /* diff --git a/common/cmd_misc.c b/common/cmd_misc.c index dc2772e85..93f9eabd6 100644 --- a/common/cmd_misc.c +++ b/common/cmd_misc.c @@ -2,23 +2,7 @@   * (C) Copyright 2001   * 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 + * SPDX-License-Identifier:	GPL-2.0+   */  /* diff --git a/common/cmd_mmc.c b/common/cmd_mmc.c index 5f1ed430e..1cdeb443f 100644 --- a/common/cmd_mmc.c +++ b/common/cmd_mmc.c @@ -2,23 +2,7 @@   * (C) Copyright 2003   * Kyle Harris, kharris@nexus-tech.net   * - * 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 + * SPDX-License-Identifier:	GPL-2.0+   */  #include <common.h> diff --git a/common/cmd_mp.c b/common/cmd_mp.c index 2143814d4..328b33806 100644 --- a/common/cmd_mp.c +++ b/common/cmd_mp.c @@ -1,23 +1,7 @@  /*   * Copyright 2008-2009 Freescale Semiconductor, Inc.   * - * 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 + * SPDX-License-Identifier:	GPL-2.0+   */  #include <common.h> diff --git a/common/cmd_mtdparts.c b/common/cmd_mtdparts.c index 1c35f9dd6..3023479d1 100644 --- a/common/cmd_mtdparts.c +++ b/common/cmd_mtdparts.c @@ -21,23 +21,7 @@   *   $Id: cmdlinepart.c,v 1.17 2004/11/26 11:18:47 lavinen Exp $   *   Copyright 2002 SYSGO Real-Time Solutions GmbH   * - * 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 + * SPDX-License-Identifier:	GPL-2.0+   */  /* diff --git a/common/cmd_net.c b/common/cmd_net.c index 3b93ef27c..09489d404 100644 --- a/common/cmd_net.c +++ b/common/cmd_net.c @@ -2,23 +2,7 @@   * (C) Copyright 2000   * 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 + * SPDX-License-Identifier:	GPL-2.0+   */  /* diff --git a/common/cmd_nvedit.c b/common/cmd_nvedit.c index 2478c95b7..778dca5af 100644 --- a/common/cmd_nvedit.c +++ b/common/cmd_nvedit.c @@ -7,23 +7,7 @@   *   * Copyright 2011 Freescale Semiconductor, Inc.   * - * 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 + * SPDX-License-Identifier:	GPL-2.0+    */  /* diff --git a/common/cmd_part.c b/common/cmd_part.c index b79f074f8..14248548d 100644 --- a/common/cmd_part.c +++ b/common/cmd_part.c @@ -13,21 +13,7 @@   * Sysgo Real-Time Solutions, AG <www.elinos.com>   * Pavel Bartusek <pba@sysgo.com>   * - * 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, see <http://www.gnu.org/licenses/>. + * SPDX-License-Identifier:	GPL-2.0+   */  #include <common.h> diff --git a/common/cmd_pci.c b/common/cmd_pci.c index 8550b6400..d3e7c089b 100644 --- a/common/cmd_pci.c +++ b/common/cmd_pci.c @@ -6,23 +6,7 @@   * Wolfgang Denk, DENX Software Engineering, wd@denx.de.   * Wolfgang Grandegger, DENX Software Engineering, wg@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 + * SPDX-License-Identifier:	GPL-2.0+   */  /* diff --git a/common/cmd_pcmcia.c b/common/cmd_pcmcia.c index 70e52104f..ddc24be7d 100644 --- a/common/cmd_pcmcia.c +++ b/common/cmd_pcmcia.c @@ -2,23 +2,7 @@   * (C) Copyright 2000-2006   * 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 + * SPDX-License-Identifier:	GPL-2.0+   *   ********************************************************************   * diff --git a/common/cmd_portio.c b/common/cmd_portio.c index eae8f079d..bf3a99791 100644 --- a/common/cmd_portio.c +++ b/common/cmd_portio.c @@ -2,23 +2,7 @@   * (C) Copyright 2003   * Marc Singer, elf@buici.com   * - * 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 + * SPDX-License-Identifier:	GPL-2.0+   */  /* diff --git a/common/cmd_pxe.c b/common/cmd_pxe.c index 1fb75d8ae..a2fb50ab9 100644 --- a/common/cmd_pxe.c +++ b/common/cmd_pxe.c @@ -1,19 +1,9 @@  /*   * Copyright 2010-2011 Calxeda, Inc.   * - * 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 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, see <http://www.gnu.org/licenses/>. + * SPDX-License-Identifier:	GPL-2.0+   */ +  #include <common.h>  #include <command.h>  #include <malloc.h> diff --git a/common/cmd_reginfo.c b/common/cmd_reginfo.c index b591bd377..5f19e7911 100644 --- a/common/cmd_reginfo.c +++ b/common/cmd_reginfo.c @@ -2,23 +2,7 @@   * (C) Copyright 2000   * Subodh Nijsure, SkyStream Networks, snijsure@skystream.com   * - * 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 + * SPDX-License-Identifier:	GPL-2.0+   */  #include <common.h> diff --git a/common/cmd_reiser.c b/common/cmd_reiser.c index 717c7f657..b9d2449e3 100644 --- a/common/cmd_reiser.c +++ b/common/cmd_reiser.c @@ -3,24 +3,7 @@   * Sysgo Real-Time Solutions, AG <www.elinos.com>   * Pavel Bartusek <pba@sysgo.com>   * - * 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 - * + * SPDX-License-Identifier:	GPL-2.0+   */  /* diff --git a/common/cmd_sandbox.c b/common/cmd_sandbox.c index a28a844ae..75eb23adf 100644 --- a/common/cmd_sandbox.c +++ b/common/cmd_sandbox.c @@ -1,20 +1,7 @@  /*   * Copyright (c) 2012, Google Inc.   * - * 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 + * SPDX-License-Identifier:	GPL-2.0+   */  #include <common.h> diff --git a/common/cmd_sata.c b/common/cmd_sata.c index 5a57a3794..fc9213196 100644 --- a/common/cmd_sata.c +++ b/common/cmd_sata.c @@ -7,20 +7,7 @@   * Copyright (C) 2008 Freescale Semiconductor, Inc.   *		Dave Liu <daveliu@freescale.com>   * - * 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 + * SPDX-License-Identifier:	GPL-2.0+   */  #include <common.h> diff --git a/common/cmd_scsi.c b/common/cmd_scsi.c index 3b5994462..7b97dc933 100644 --- a/common/cmd_scsi.c +++ b/common/cmd_scsi.c @@ -2,26 +2,7 @@   * (C) Copyright 2001   * Denis Peter, MPL AG Switzerland   * - * 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 - * - * - * + * SPDX-License-Identifier:	GPL-2.0+   */  /* diff --git a/common/cmd_setexpr.c b/common/cmd_setexpr.c index 93cb255b2..1fc080b9b 100644 --- a/common/cmd_setexpr.c +++ b/common/cmd_setexpr.c @@ -2,23 +2,7 @@   * Copyright 2008 Freescale Semiconductor, Inc.   * Copyright 2013 Wolfgang Denk <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 + * SPDX-License-Identifier:	GPL-2.0+    */  /* diff --git a/common/cmd_sha1sum.c b/common/cmd_sha1sum.c index 9f08629b8..644b9a0e6 100644 --- a/common/cmd_sha1sum.c +++ b/common/cmd_sha1sum.c @@ -5,23 +5,7 @@   * (C) Copyright 2000   * 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 + * SPDX-License-Identifier:	GPL-2.0+   */  #include <common.h> diff --git a/common/cmd_sound.c b/common/cmd_sound.c index cfca9dd13..f5dd8bcf2 100644 --- a/common/cmd_sound.c +++ b/common/cmd_sound.c @@ -2,23 +2,7 @@   * Copyright (C) 2012 Samsung Electronics   * Rajeshwari Shinde <rajeshwari.s@samsung.com>   * - * 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 + * SPDX-License-Identifier:	GPL-2.0+   */  #include <common.h> diff --git a/common/cmd_source.c b/common/cmd_source.c index a44061432..54ffd1647 100644 --- a/common/cmd_source.c +++ b/common/cmd_source.c @@ -2,23 +2,7 @@   * (C) Copyright 2001   * Kyle Harris, kharris@nexus-tech.net   * - * 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 + * SPDX-License-Identifier:	GPL-2.0+   */  /* diff --git a/common/cmd_spi.c b/common/cmd_spi.c index eba5fb83d..3c8e913be 100644 --- a/common/cmd_spi.c +++ b/common/cmd_spi.c @@ -2,23 +2,7 @@   * (C) Copyright 2002   * Gerald Van Baren, Custom IDEAS, vanbaren@cideas.com   * - * 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 + * SPDX-License-Identifier:	GPL-2.0+   */  /* diff --git a/common/cmd_spl.c b/common/cmd_spl.c index 94b0a1715..057764aa8 100644 --- a/common/cmd_spl.c +++ b/common/cmd_spl.c @@ -2,23 +2,7 @@   * Copyright (C) 2011   * Corscience GmbH & Co. KG - Simon Schwarz <schwarz@corscience.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 + * SPDX-License-Identifier:	GPL-2.0+   */  #include <common.h> diff --git a/common/cmd_terminal.c b/common/cmd_terminal.c index 7cc1a6c6a..4b9c0b34d 100644 --- a/common/cmd_terminal.c +++ b/common/cmd_terminal.c @@ -2,23 +2,7 @@   * (C) Copyright 2007 OpenMoko, Inc.   * Written by Harald Welte <laforge@openmoko.org>   * - * 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 + * SPDX-License-Identifier:	GPL-2.0+   */  /* diff --git a/common/cmd_test.c b/common/cmd_test.c index acc0ecf99..bacc36840 100644 --- a/common/cmd_test.c +++ b/common/cmd_test.c @@ -2,23 +2,7 @@   * Copyright 2000-2009   * 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 + * SPDX-License-Identifier:	GPL-2.0+   */  /* diff --git a/common/cmd_time.c b/common/cmd_time.c index 9808cd669..5180cb46a 100644 --- a/common/cmd_time.c +++ b/common/cmd_time.c @@ -1,22 +1,6 @@  /*   * Copyright (c) 2011 The Chromium OS Authors. - * 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 + * SPDX-License-Identifier:	GPL-2.0+   */  #include <common.h> diff --git a/common/cmd_tpm.c b/common/cmd_tpm.c index c34000a6e..0294952e6 100644 --- a/common/cmd_tpm.c +++ b/common/cmd_tpm.c @@ -1,23 +1,7 @@  /*   * Copyright (c) 2013 The Chromium OS Authors.   * - * 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 + * SPDX-License-Identifier:	GPL-2.0+   */  #include <common.h> diff --git a/common/cmd_trace.c b/common/cmd_trace.c index ec3137a8a..8c630e6a8 100644 --- a/common/cmd_trace.c +++ b/common/cmd_trace.c @@ -1,20 +1,7 @@  /*   * Copyright (c) 2011 The Chromium OS Authors.   * - * 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 + * SPDX-License-Identifier:	GPL-2.0+   */  #include <common.h> diff --git a/common/cmd_tsi148.c b/common/cmd_tsi148.c index 7f48ea2e6..317ba50fd 100644 --- a/common/cmd_tsi148.c +++ b/common/cmd_tsi148.c @@ -5,23 +5,7 @@   *   * (C) Copyright 2003 Stefan Roese, stefan.roese@esd-electronics.com   * - * 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 + * SPDX-License-Identifier:	GPL-2.0+    */  #include <common.h> diff --git a/common/cmd_ubifs.c b/common/cmd_ubifs.c index 7752123cd..eba54fd00 100644 --- a/common/cmd_ubifs.c +++ b/common/cmd_ubifs.c @@ -2,24 +2,7 @@   * (C) Copyright 2008   * Stefan Roese, DENX Software Engineering, sr@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 - * + * SPDX-License-Identifier:	GPL-2.0+   */ diff --git a/common/cmd_universe.c b/common/cmd_universe.c index 58384f3b8..ad1561384 100644 --- a/common/cmd_universe.c +++ b/common/cmd_universe.c @@ -1,23 +1,7 @@  /*   * (C) Copyright 2003 Stefan Roese, stefan.roese@esd-electronics.com   * - * 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 + * SPDX-License-Identifier:	GPL-2.0+    */  #include <common.h> diff --git a/common/cmd_unzip.c b/common/cmd_unzip.c index 7470c2b12..b02c69e58 100644 --- a/common/cmd_unzip.c +++ b/common/cmd_unzip.c @@ -2,23 +2,7 @@   * (C) Copyright 2000   * 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 + * SPDX-License-Identifier:	GPL-2.0+   */  #include <common.h> diff --git a/common/cmd_usb.c b/common/cmd_usb.c index 70e803b5b..2519497da 100644 --- a/common/cmd_usb.c +++ b/common/cmd_usb.c @@ -5,24 +5,7 @@   * Most of this source has been derived from the Linux USB   * project.   * - * 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 - * + * SPDX-License-Identifier:	GPL-2.0+   */  #include <common.h> diff --git a/common/cmd_usb_mass_storage.c b/common/cmd_usb_mass_storage.c index 87a5f2f3a..33a471500 100644 --- a/common/cmd_usb_mass_storage.c +++ b/common/cmd_usb_mass_storage.c @@ -2,20 +2,7 @@   * Copyright (C) 2011 Samsung Electronics   * Lukasz Majewski <l.majewski@samsung.com>   * - * 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 + * SPDX-License-Identifier:	GPL-2.0+   */  #include <errno.h> diff --git a/common/cmd_version.c b/common/cmd_version.c index e8f40d3ed..1be0667f0 100644 --- a/common/cmd_version.c +++ b/common/cmd_version.c @@ -2,23 +2,7 @@   * Copyright 2000-2009   * 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 + * SPDX-License-Identifier:	GPL-2.0+   */  #include <common.h> diff --git a/common/cmd_ximg.c b/common/cmd_ximg.c index 270e80309..b439be3d0 100644 --- a/common/cmd_ximg.c +++ b/common/cmd_ximg.c @@ -5,23 +5,7 @@   * (C) Copyright 2003   * Kai-Uwe Bloem, Auerswald GmbH & Co KG, <linux-development@auerswald.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 + * SPDX-License-Identifier:	GPL-2.0+   */ diff --git a/common/cmd_zfs.c b/common/cmd_zfs.c index 900e977c1..911086809 100644 --- a/common/cmd_zfs.c +++ b/common/cmd_zfs.c @@ -6,21 +6,7 @@   * zfsfs support   * made from existing GRUB Sources by Sun, GNU and others.   * - * 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 - * + * SPDX-License-Identifier:	GPL-2.0+   */  #include <common.h> diff --git a/common/cmd_zip.c b/common/cmd_zip.c index 8607da81e..7fcd9d5bf 100644 --- a/common/cmd_zip.c +++ b/common/cmd_zip.c @@ -2,23 +2,7 @@   * (C) Copyright 2012   * Lei Wen <leiwen@marvell.com>, Marvell Inc.   * - * 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 + * SPDX-License-Identifier:	GPL-2.0+   */  #include <common.h> diff --git a/common/command.c b/common/command.c index 305a236fa..625571dd4 100644 --- a/common/command.c +++ b/common/command.c @@ -2,23 +2,7 @@   * (C) Copyright 2000-2009   * 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 + * SPDX-License-Identifier:	GPL-2.0+   */  /* diff --git a/common/console.c b/common/console.c index bf7317869..cc55068c7 100644 --- a/common/console.c +++ b/common/console.c @@ -2,23 +2,7 @@   * (C) Copyright 2000   * Paolo Scaffardi, AIRVENT SAM s.p.a - RIMINI(ITALY), arsenio@tin.it   * - * 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 + * SPDX-License-Identifier:	GPL-2.0+   */  #include <common.h> diff --git a/common/edid.c b/common/edid.c index c82c29809..e66108f24 100644 --- a/common/edid.c +++ b/common/edid.c @@ -4,27 +4,10 @@   * (C) Copyright 2010   * Petr Stetiar <ynezz@true.cz>   * - * 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 + * SPDX-License-Identifier:	GPL-2.0+   *   * Contains stolen code from ddcprobe project which is:   * Copyright (C) Nalin Dahyabhai <bigfun@pobox.com> - *   */  #include <common.h> diff --git a/common/env_attr.c b/common/env_attr.c index 210c98dcf..64baca5a1 100644 --- a/common/env_attr.c +++ b/common/env_attr.c @@ -2,23 +2,7 @@   * (C) Copyright 2012   * Joe Hershberger, National Instruments, joe.hershberger@ni.com   * - * 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 + * SPDX-License-Identifier:	GPL-2.0+   */  #ifdef USE_HOSTCC /* Eliminate "ANSI does not permit..." warnings */ diff --git a/common/env_callback.c b/common/env_callback.c index 78aafb4f2..34bb58e4a 100644 --- a/common/env_callback.c +++ b/common/env_callback.c @@ -2,23 +2,7 @@   * (C) Copyright 2012   * Joe Hershberger, National Instruments, joe.hershberger@ni.com   * - * 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 + * SPDX-License-Identifier:	GPL-2.0+   */  #include <common.h> diff --git a/common/env_common.c b/common/env_common.c index 906b41fcc..f387f9ab9 100644 --- a/common/env_common.c +++ b/common/env_common.c @@ -5,23 +5,7 @@   * (C) Copyright 2001 Sysgo Real-Time Solutions, GmbH <www.elinos.com>   * Andreas Heppel <aheppel@sysgo.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 + * SPDX-License-Identifier:	GPL-2.0+    */  #include <common.h> diff --git a/common/env_dataflash.c b/common/env_dataflash.c index 38c96157b..5f21d5c38 100644 --- a/common/env_dataflash.c +++ b/common/env_dataflash.c @@ -2,20 +2,7 @@   * LowLevel function for DataFlash environment support   * Author : Gilles Gastaldi (Atmel)   * - * 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 + * SPDX-License-Identifier:	GPL-2.0+   */  #include <common.h>  #include <command.h> diff --git a/common/env_eeprom.c b/common/env_eeprom.c index 45c935b6d..149370f83 100644 --- a/common/env_eeprom.c +++ b/common/env_eeprom.c @@ -5,23 +5,7 @@   * (C) Copyright 2001 Sysgo Real-Time Solutions, GmbH <www.elinos.com>   * Andreas Heppel <aheppel@sysgo.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 + * SPDX-License-Identifier:	GPL-2.0+    */  #include <common.h> @@ -49,24 +33,8 @@ static int eeprom_bus_read(unsigned dev_addr, unsigned offset,  #if defined(CONFIG_I2C_ENV_EEPROM_BUS)  	int old_bus = i2c_get_bus_num(); -	if (gd->flags & GD_FLG_RELOC) { -		if (env_eeprom_bus == -1) { -			I2C_MUX_DEVICE *dev = NULL; -			dev = i2c_mux_ident_muxstring( -				(uchar *)CONFIG_I2C_ENV_EEPROM_BUS); -			if (dev != NULL) -				env_eeprom_bus = dev->busid; -			else -				printf("error adding env eeprom bus.\n"); -		} -		if (old_bus != env_eeprom_bus) { -			i2c_set_bus_num(env_eeprom_bus); -			old_bus = env_eeprom_bus; -		} -	} else { -		rcode = i2c_mux_ident_muxstring_f( -				(uchar *)CONFIG_I2C_ENV_EEPROM_BUS); -	} +	if (old_bus != CONFIG_I2C_ENV_EEPROM_BUS) +		i2c_set_bus_num(CONFIG_I2C_ENV_EEPROM_BUS);  #endif  	rcode = eeprom_read(dev_addr, offset, buffer, cnt); @@ -75,6 +43,7 @@ static int eeprom_bus_read(unsigned dev_addr, unsigned offset,  	if (old_bus != env_eeprom_bus)  		i2c_set_bus_num(old_bus);  #endif +  	return rcode;  } @@ -85,9 +54,12 @@ static int eeprom_bus_write(unsigned dev_addr, unsigned offset,  #if defined(CONFIG_I2C_ENV_EEPROM_BUS)  	int old_bus = i2c_get_bus_num(); -	rcode = i2c_mux_ident_muxstring_f((uchar *)CONFIG_I2C_ENV_EEPROM_BUS); +	if (old_bus != CONFIG_I2C_ENV_EEPROM_BUS) +		i2c_set_bus_num(CONFIG_I2C_ENV_EEPROM_BUS);  #endif +  	rcode = eeprom_write(dev_addr, offset, buffer, cnt); +  #if defined(CONFIG_I2C_ENV_EEPROM_BUS)  	i2c_set_bus_num(old_bus);  #endif diff --git a/common/env_embedded.c b/common/env_embedded.c index 52bc6873d..91d8ba308 100644 --- a/common/env_embedded.c +++ b/common/env_embedded.c @@ -2,23 +2,7 @@   * (C) Copyright 2001   * Erik Theisen,  Wave 7 Optics, etheisen@mindspring.com.   * - * 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 + * SPDX-License-Identifier:	GPL-2.0+    */  #ifndef __ASSEMBLY__ diff --git a/common/env_fat.c b/common/env_fat.c index c0f18ab97..e114921c4 100644 --- a/common/env_fat.c +++ b/common/env_fat.c @@ -4,23 +4,7 @@   * Author:   *  Maximilian Schwerin <mvs@tigris.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 + * SPDX-License-Identifier:	GPL-2.0+    */  #include <common.h> diff --git a/common/env_flags.c b/common/env_flags.c index 336cae4e9..e9b72e60a 100644 --- a/common/env_flags.c +++ b/common/env_flags.c @@ -2,23 +2,7 @@   * (C) Copyright 2012   * Joe Hershberger, National Instruments, joe.hershberger@ni.com   * - * 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 + * SPDX-License-Identifier:	GPL-2.0+   */  #include <linux/string.h> diff --git a/common/env_flash.c b/common/env_flash.c index e07d336a4..d4a0e18c3 100644 --- a/common/env_flash.c +++ b/common/env_flash.c @@ -5,23 +5,7 @@   * (C) Copyright 2001 Sysgo Real-Time Solutions, GmbH <www.elinos.com>   * Andreas Heppel <aheppel@sysgo.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 + * SPDX-License-Identifier:	GPL-2.0+    */  /* #define DEBUG */ diff --git a/common/env_mmc.c b/common/env_mmc.c index 5d3a769db..65aafa9ca 100644 --- a/common/env_mmc.c +++ b/common/env_mmc.c @@ -1,23 +1,7 @@  /*   * (C) Copyright 2008-2011 Freescale Semiconductor, Inc.   * - * 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 + * SPDX-License-Identifier:	GPL-2.0+    */  /* #define DEBUG */ diff --git a/common/env_nand.c b/common/env_nand.c index b745822be..9a6b8a6fb 100644 --- a/common/env_nand.c +++ b/common/env_nand.c @@ -11,23 +11,7 @@   * (C) Copyright 2001 Sysgo Real-Time Solutions, GmbH <www.elinos.com>   * Andreas Heppel <aheppel@sysgo.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 + * SPDX-License-Identifier:	GPL-2.0+    */  #include <common.h> diff --git a/common/env_nowhere.c b/common/env_nowhere.c index 18fcf2ca4..c411e8cfe 100644 --- a/common/env_nowhere.c +++ b/common/env_nowhere.c @@ -5,23 +5,7 @@   * (C) Copyright 2001 Sysgo Real-Time Solutions, GmbH <www.elinos.com>   * Andreas Heppel <aheppel@sysgo.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 + * SPDX-License-Identifier:	GPL-2.0+    */  #include <common.h> diff --git a/common/env_nvram.c b/common/env_nvram.c index eab0e7be0..49144220b 100644 --- a/common/env_nvram.c +++ b/common/env_nvram.c @@ -5,23 +5,7 @@   * (C) Copyright 2001 Sysgo Real-Time Solutions, GmbH <www.elinos.com>   * Andreas Heppel <aheppel@sysgo.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 + * SPDX-License-Identifier:	GPL-2.0+    */  /* diff --git a/common/env_onenand.c b/common/env_onenand.c index e8bde3726..4b4463218 100644 --- a/common/env_onenand.c +++ b/common/env_onenand.c @@ -5,23 +5,7 @@   * (C) Copyright 2005-2009 Samsung Electronics   * Kyungmin Park <kyungmin.park@samsung.com>   * - * 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 + * SPDX-License-Identifier:	GPL-2.0+   */  #include <common.h> diff --git a/common/env_remote.c b/common/env_remote.c index 6c10c90c0..1b6609b90 100644 --- a/common/env_remote.c +++ b/common/env_remote.c @@ -1,23 +1,7 @@  /*   * (C) Copyright 2011-2012 Freescale Semiconductor, Inc.   * - * 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 + * SPDX-License-Identifier:	GPL-2.0+    */  /* #define DEBUG */ diff --git a/common/env_sf.c b/common/env_sf.c index d9e908546..e3e1897cc 100644 --- a/common/env_sf.c +++ b/common/env_sf.c @@ -7,23 +7,7 @@   *   * (C) Copyright 2008 Atmel Corporation   * - * 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 + * SPDX-License-Identifier:	GPL-2.0+    */  #include <common.h>  #include <environment.h> diff --git a/common/env_ubi.c b/common/env_ubi.c index 1ed8b02e8..f24a96c3e 100644 --- a/common/env_ubi.c +++ b/common/env_ubi.c @@ -2,23 +2,7 @@   * (c) Copyright 2012 by National Instruments,   *        Joe Hershberger <joe.hershberger@ni.com>   * - * 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 + * SPDX-License-Identifier:	GPL-2.0+    */  #include <common.h> diff --git a/common/fdt_support.c b/common/fdt_support.c index 9a6f6b7d8..b034c9835 100644 --- a/common/fdt_support.c +++ b/common/fdt_support.c @@ -4,23 +4,7 @@   *   * Copyright 2010-2011 Freescale Semiconductor, Inc.   * - * 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 + * SPDX-License-Identifier:	GPL-2.0+   */  #include <common.h> diff --git a/common/flash.c b/common/flash.c index 0c57a3fcd..f1440c2c1 100644 --- a/common/flash.c +++ b/common/flash.c @@ -2,23 +2,7 @@   * (C) Copyright 2000   * 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 + * SPDX-License-Identifier:	GPL-2.0+   */  /* #define DEBUG */ diff --git a/common/hash.c b/common/hash.c index fe19b735a..722c40b3f 100644 --- a/common/hash.c +++ b/common/hash.c @@ -7,20 +7,7 @@   * (C) Copyright 2000   * Wolfgang Denk, DENX Software Engineering, wd@denx.de.   * - * 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 + * SPDX-License-Identifier:	GPL-2.0+   */  #include <common.h> diff --git a/common/hush.c b/common/hush.c index cc81c9c3e..3f3a79c50 100644 --- a/common/hush.c +++ b/common/hush.c @@ -71,20 +71,9 @@   *      maybe change map[] to use 2-bit entries   *      (eventually) remove all the printf's   * - * 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 + * SPDX-License-Identifier:	GPL-2.0+   */ +  #define __U_BOOT__  #ifdef __U_BOOT__  #include <malloc.h>         /* malloc, free, realloc*/ diff --git a/common/hwconfig.c b/common/hwconfig.c index e47d4d742..4ae042ee3 100644 --- a/common/hwconfig.c +++ b/common/hwconfig.c @@ -6,10 +6,7 @@   *   * Author: Anton Vorontsov <avorontsov@ru.mvista.com>   * - * 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. + * SPDX-License-Identifier:	GPL-2.0+   */  #ifndef HWCONFIG_TEST diff --git a/common/image-fdt.c b/common/image-fdt.c index 203404afb..2e22cca54 100644 --- a/common/image-fdt.c +++ b/common/image-fdt.c @@ -6,23 +6,7 @@   * (C) Copyright 2000-2006   * 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 + * SPDX-License-Identifier:	GPL-2.0+   */  #include <common.h> diff --git a/common/image-fit.c b/common/image-fit.c index e28dd0547..683c1a511 100644 --- a/common/image-fit.c +++ b/common/image-fit.c @@ -6,23 +6,7 @@   * (C) Copyright 2000-2006   * 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 + * SPDX-License-Identifier:	GPL-2.0+   */  #ifdef USE_HOSTCC diff --git a/common/image-sig.c b/common/image-sig.c index 5d907cfc4..973b06d50 100644 --- a/common/image-sig.c +++ b/common/image-sig.c @@ -1,20 +1,7 @@  /*   * Copyright (c) 2013, Google Inc.   * - * 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 + * SPDX-License-Identifier:	GPL-2.0+   */  #ifdef USE_HOSTCC diff --git a/common/image.c b/common/image.c index f5ad0978d..56a5a626e 100644 --- a/common/image.c +++ b/common/image.c @@ -4,23 +4,7 @@   * (C) Copyright 2000-2006   * 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 + * SPDX-License-Identifier:	GPL-2.0+   */  #ifndef USE_HOSTCC diff --git a/common/iomux.c b/common/iomux.c index 6a757041f..cf4da4570 100644 --- a/common/iomux.c +++ b/common/iomux.c @@ -2,23 +2,7 @@   * (C) Copyright 2008   * Gary Jennejohn, DENX Software Engineering GmbH, garyj@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 + * SPDX-License-Identifier:	GPL-2.0+    */  #include <common.h> diff --git a/common/lcd.c b/common/lcd.c index 50ea4d6ca..8d5c63c29 100644 --- a/common/lcd.c +++ b/common/lcd.c @@ -4,23 +4,7 @@   * (C) Copyright 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 + * SPDX-License-Identifier:	GPL-2.0+    */  /************************************************************************/ diff --git a/common/main.c b/common/main.c index 56da214b2..ae37fee46 100644 --- a/common/main.c +++ b/common/main.c @@ -6,23 +6,7 @@   * (C) Copyright 2005   * JinHua Luo, GuangDong Linux Center, <luo.jinhua@gd-linux.com>   * - * 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 + * SPDX-License-Identifier:	GPL-2.0+   */  /* #define	DEBUG	*/ diff --git a/common/memsize.c b/common/memsize.c index 963e4f35b..73b92c8a0 100644 --- a/common/memsize.c +++ b/common/memsize.c @@ -2,23 +2,7 @@   * (C) Copyright 2004   * 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 + * SPDX-License-Identifier:	GPL-2.0+   */  #include <config.h> diff --git a/common/menu.c b/common/menu.c index 64b461abb..ba393adc3 100644 --- a/common/menu.c +++ b/common/menu.c @@ -1,18 +1,7 @@  /*   * Copyright 2010-2011 Calxeda, Inc.   * - * 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 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, see <http://www.gnu.org/licenses/>. + * SPDX-License-Identifier:	GPL-2.0+   */  #include <common.h> diff --git a/common/miiphyutil.c b/common/miiphyutil.c index 2cc23b410..74812e6e1 100644 --- a/common/miiphyutil.c +++ b/common/miiphyutil.c @@ -2,23 +2,7 @@   * (C) Copyright 2001   * Gerald Van Baren, Custom IDEAS, vanbaren@cideas.com.   * - * 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 + * SPDX-License-Identifier:	GPL-2.0+   */  /* diff --git a/common/modem.c b/common/modem.c index e37e1eae8..be54b1011 100644 --- a/common/modem.c +++ b/common/modem.c @@ -2,23 +2,7 @@   * (C) Copyright 2002-2009   * 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 + * SPDX-License-Identifier:	GPL-2.0+   */  #include <common.h> diff --git a/common/s_record.c b/common/s_record.c index c52bf1bb6..aa82668a0 100644 --- a/common/s_record.c +++ b/common/s_record.c @@ -2,23 +2,7 @@   * (C) Copyright 2000   * 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 + * SPDX-License-Identifier:	GPL-2.0+   */  #include <common.h> diff --git a/common/spl/Makefile b/common/spl/Makefile index a74563cc4..e8144f704 100644 --- a/common/spl/Makefile +++ b/common/spl/Makefile @@ -3,8 +3,7 @@  # Texas Instruments Incorporated - http://www.ti.com/  # Aneesh V <aneesh@ti.com>  # -# This file is released under the terms of GPL v2 and any later version. -# See the file COPYING in the root directory of the source tree for details. +# SPDX-License-Identifier:	GPL-2.0+  #  # Based on common/Makefile.  # diff --git a/common/spl/spl.c b/common/spl/spl.c index 628c3990f..d6b0e0107 100644 --- a/common/spl/spl.c +++ b/common/spl/spl.c @@ -4,23 +4,7 @@   *   * Aneesh V <aneesh@ti.com>   * - * 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 + * SPDX-License-Identifier:	GPL-2.0+   */  #include <common.h>  #include <spl.h> diff --git a/common/spl/spl_mmc.c b/common/spl/spl_mmc.c index 170fa3871..e369ce397 100644 --- a/common/spl/spl_mmc.c +++ b/common/spl/spl_mmc.c @@ -4,23 +4,7 @@   *   * Aneesh V <aneesh@ti.com>   * - * 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 + * SPDX-License-Identifier:	GPL-2.0+   */  #include <common.h>  #include <spl.h> diff --git a/common/spl/spl_nand.c b/common/spl/spl_nand.c index 61de5a4f0..9da021862 100644 --- a/common/spl/spl_nand.c +++ b/common/spl/spl_nand.c @@ -2,23 +2,7 @@   * Copyright (C) 2011   * Corscience GmbH & Co. KG - Simon Schwarz <schwarz@corscience.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 + * SPDX-License-Identifier:	GPL-2.0+   */  #include <common.h>  #include <config.h> diff --git a/common/spl/spl_net.c b/common/spl/spl_net.c index e1596fee2..ff5370592 100644 --- a/common/spl/spl_net.c +++ b/common/spl/spl_net.c @@ -5,22 +5,7 @@   * (C) Copyright 2012   * Ilya Yanok <ilya.yanok@gmail.com>   * - * 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. + * SPDX-License-Identifier:	GPL-2.0+   */  #include <common.h>  #include <spl.h> diff --git a/common/spl/spl_nor.c b/common/spl/spl_nor.c index 976e86510..b444a3ea2 100644 --- a/common/spl/spl_nor.c +++ b/common/spl/spl_nor.c @@ -1,18 +1,7 @@  /*   * Copyright (C) 2012 Stefan Roese <sr@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. + * SPDX-License-Identifier:	GPL-2.0+   */  #include <common.h> diff --git a/common/spl/spl_onenand.c b/common/spl/spl_onenand.c index 434930356..d8d80974f 100644 --- a/common/spl/spl_onenand.c +++ b/common/spl/spl_onenand.c @@ -6,23 +6,7 @@   * Copyright (C) 2011   * Corscience GmbH & Co. KG - Simon Schwarz <schwarz@corscience.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 + * SPDX-License-Identifier:	GPL-2.0+   */  #include <common.h>  #include <config.h> diff --git a/common/spl/spl_ymodem.c b/common/spl/spl_ymodem.c index 40e50356f..0f1e99707 100644 --- a/common/spl/spl_ymodem.c +++ b/common/spl/spl_ymodem.c @@ -7,23 +7,7 @@   *   * Matt Porter <mporter@ti.com>   * - * 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 + * SPDX-License-Identifier:	GPL-2.0+   */  #include <common.h>  #include <spl.h> diff --git a/common/stdio.c b/common/stdio.c index 5d5117c0e..721e9a144 100644 --- a/common/stdio.c +++ b/common/stdio.c @@ -1,24 +1,12 @@  /* - * (C) Copyright 2000 - * Paolo Scaffardi, AIRVENT SAM s.p.a - RIMINI(ITALY), arsenio@tin.it + * Copyright (C) 2009 Sergey Kubushyn <ksi@koi8.net>   * - * See file CREDITS for list of people who contributed to this - * project. + * Changes for multibus/multiadapter I2C support.   * - * 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. + * (C) Copyright 2000 + * Paolo Scaffardi, AIRVENT SAM s.p.a - RIMINI(ITALY), arsenio@tin.it   * - * 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 + * SPDX-License-Identifier:	GPL-2.0+   */  #include <config.h> @@ -30,7 +18,8 @@  #ifdef CONFIG_LOGBUFFER  #include <logbuff.h>  #endif -#if defined(CONFIG_HARD_I2C) || defined(CONFIG_SOFT_I2C) + +#if defined(CONFIG_HARD_I2C) || defined(CONFIG_SYS_I2C)  #include <i2c.h>  #endif @@ -210,9 +199,13 @@ int stdio_init (void)  #ifdef CONFIG_ARM_DCC  	drv_arm_dcc_init ();  #endif -#if defined(CONFIG_HARD_I2C) || defined(CONFIG_SOFT_I2C) +#ifdef CONFIG_SYS_I2C +	i2c_init_all(); +#else +#if defined(CONFIG_HARD_I2C)  	i2c_init (CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE);  #endif +#endif  #ifdef CONFIG_LCD  	drv_lcd_init ();  #endif diff --git a/common/update.c b/common/update.c index 87941ec8a..cc830a786 100644 --- a/common/update.c +++ b/common/update.c @@ -4,24 +4,7 @@   * Written by: Rafal Czubak <rcz@semihalf.com>   *             Bartlomiej Sieka <tur@semihalf.com>   * - * 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 - * + * SPDX-License-Identifier:	GPL-2.0+   */  #include <common.h> diff --git a/common/usb.c b/common/usb.c index 55fff5b1e..f740e5ec2 100644 --- a/common/usb.c +++ b/common/usb.c @@ -1,5 +1,4 @@  /* - *   * Most of this source has been derived from the Linux USB   * project:   * (C) Copyright Linus Torvalds 1999 @@ -15,24 +14,7 @@   * Adapted for U-Boot:   * (C) Copyright 2001 Denis Peter, MPL AG Switzerland   * - * 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 - * + * SPDX-License-Identifier:	GPL-2.0+   */  /* diff --git a/common/usb_hub.c b/common/usb_hub.c index 774ba6387..754d436ad 100644 --- a/common/usb_hub.c +++ b/common/usb_hub.c @@ -1,5 +1,4 @@  /* - *   * Most of this source has been derived from the Linux USB   * project:   * (C) Copyright Linus Torvalds 1999 @@ -15,24 +14,7 @@   * Adapted for U-Boot:   * (C) Copyright 2001 Denis Peter, MPL AG Switzerland   * - * 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 - * + * SPDX-License-Identifier:	GPL-2.0+   */  /**************************************************************************** diff --git a/common/usb_kbd.c b/common/usb_kbd.c index 3174b5e1b..2ca3767ec 100644 --- a/common/usb_kbd.c +++ b/common/usb_kbd.c @@ -5,24 +5,7 @@   * Part of this source has been derived from the Linux USB   * project.   * - * 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 - * + * SPDX-License-Identifier:	GPL-2.0+   */  #include <common.h>  #include <malloc.h> diff --git a/common/usb_storage.c b/common/usb_storage.c index 4599d03c3..6ac358d5e 100644 --- a/common/usb_storage.c +++ b/common/usb_storage.c @@ -16,24 +16,7 @@   * BBB support based on /sys/dev/usb/umass.c from   * FreeBSD.   * - * 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 - * + * SPDX-License-Identifier:	GPL-2.0+   */  /* Note: diff --git a/common/xyzModem.c b/common/xyzModem.c index f30b0020a..39f7d17a7 100644 --- a/common/xyzModem.c +++ b/common/xyzModem.c @@ -6,39 +6,7 @@   *      RedBoot stream handler for xyzModem protocol   *   *========================================================================== - *####ECOSGPLCOPYRIGHTBEGIN#### - * ------------------------------------------- - * This file is part of eCos, the Embedded Configurable Operating System. - * Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc. - * Copyright (C) 2002 Gary Thomas - * - * eCos 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 or (at your option) any later version. - * - * eCos 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 eCos; if not, write to the Free Software Foundation, Inc., - * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. - * - * As a special exception, if other files instantiate templates or use macros - * or inline functions from this file, or you compile this file and link it - * with other works to produce a work based on this file, this file does not - * by itself cause the resulting work to be covered by the GNU General Public - * License. However the source code for this file must still be made available - * in accordance with section (3) of the GNU General Public License. - * - * This exception does not invalidate any other reasons why a work based on - * this file might be covered by the GNU General Public License. - * - * Alternative licenses for eCos may be arranged by contacting Red Hat, Inc. - * at http: *sources.redhat.com/ecos/ecos-license/ - * ------------------------------------------- - *####ECOSGPLCOPYRIGHTEND#### + * SPDX-License-Identifier:	eCos-2.0   *==========================================================================   *#####DESCRIPTIONBEGIN####   * |