License cleanup: add SPDX GPL-2.0 license identifier to files with no license
Many source files in the tree are missing licensing information, which
makes it harder for compliance tools to determine the correct license.
By default all files without license information are under the default
license of the kernel, which is GPL version 2.
Update the files which contain no license information with the 'GPL-2.0'
SPDX license identifier. The SPDX identifier is a legally binding
shorthand, which can be used instead of the full boiler plate text.
This patch is based on work done by Thomas Gleixner and Kate Stewart and
Philippe Ombredanne.
How this work was done:
Patches were generated and checked against linux-4.14-rc6 for a subset of
the use cases:
- file had no licensing information it it.
- file was a */uapi/* one with no licensing information in it,
- file was a */uapi/* one with existing licensing information,
Further patches will be generated in subsequent months to fix up cases
where non-standard license headers were used, and references to license
had to be inferred by heuristics based on keywords.
The analysis to determine which SPDX License Identifier to be applied to
a file was done in a spreadsheet of side by side results from of the
output of two independent scanners (ScanCode & Windriver) producing SPDX
tag:value files created by Philippe Ombredanne. Philippe prepared the
base worksheet, and did an initial spot review of a few 1000 files.
The 4.13 kernel was the starting point of the analysis with 60,537 files
assessed. Kate Stewart did a file by file comparison of the scanner
results in the spreadsheet to determine which SPDX license identifier(s)
to be applied to the file. She confirmed any determination that was not
immediately clear with lawyers working with the Linux Foundation.
Criteria used to select files for SPDX license identifier tagging was:
- Files considered eligible had to be source code files.
- Make and config files were included as candidates if they contained >5
lines of source
- File already had some variant of a license header in it (even if <5
lines).
All documentation files were explicitly excluded.
The following heuristics were used to determine which SPDX license
identifiers to apply.
- when both scanners couldn't find any license traces, file was
considered to have no license information in it, and the top level
COPYING file license applied.
For non */uapi/* files that summary was:
SPDX license identifier # files
---------------------------------------------------|-------
GPL-2.0 11139
and resulted in the first patch in this series.
If that file was a */uapi/* path one, it was "GPL-2.0 WITH
Linux-syscall-note" otherwise it was "GPL-2.0". Results of that was:
SPDX license identifier # files
---------------------------------------------------|-------
GPL-2.0 WITH Linux-syscall-note 930
and resulted in the second patch in this series.
- if a file had some form of licensing information in it, and was one
of the */uapi/* ones, it was denoted with the Linux-syscall-note if
any GPL family license was found in the file or had no licensing in
it (per prior point). Results summary:
SPDX license identifier # files
---------------------------------------------------|------
GPL-2.0 WITH Linux-syscall-note 270
GPL-2.0+ WITH Linux-syscall-note 169
((GPL-2.0 WITH Linux-syscall-note) OR BSD-2-Clause) 21
((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 17
LGPL-2.1+ WITH Linux-syscall-note 15
GPL-1.0+ WITH Linux-syscall-note 14
((GPL-2.0+ WITH Linux-syscall-note) OR BSD-3-Clause) 5
LGPL-2.0+ WITH Linux-syscall-note 4
LGPL-2.1 WITH Linux-syscall-note 3
((GPL-2.0 WITH Linux-syscall-note) OR MIT) 3
((GPL-2.0 WITH Linux-syscall-note) AND MIT) 1
and that resulted in the third patch in this series.
- when the two scanners agreed on the detected license(s), that became
the concluded license(s).
- when there was disagreement between the two scanners (one detected a
license but the other didn't, or they both detected different
licenses) a manual inspection of the file occurred.
- In most cases a manual inspection of the information in the file
resulted in a clear resolution of the license that should apply (and
which scanner probably needed to revisit its heuristics).
- When it was not immediately clear, the license identifier was
confirmed with lawyers working with the Linux Foundation.
- If there was any question as to the appropriate license identifier,
the file was flagged for further research and to be revisited later
in time.
In total, over 70 hours of logged manual review was done on the
spreadsheet to determine the SPDX license identifiers to apply to the
source files by Kate, Philippe, Thomas and, in some cases, confirmation
by lawyers working with the Linux Foundation.
Kate also obtained a third independent scan of the 4.13 code base from
FOSSology, and compared selected files where the other two scanners
disagreed against that SPDX file, to see if there was new insights. The
Windriver scanner is based on an older version of FOSSology in part, so
they are related.
Thomas did random spot checks in about 500 files from the spreadsheets
for the uapi headers and agreed with SPDX license identifier in the
files he inspected. For the non-uapi files Thomas did random spot checks
in about 15000 files.
In initial set of patches against 4.14-rc6, 3 files were found to have
copy/paste license identifier errors, and have been fixed to reflect the
correct identifier.
Additionally Philippe spent 10 hours this week doing a detailed manual
inspection and review of the 12,461 patched files from the initial patch
version early this week with:
- a full scancode scan run, collecting the matched texts, detected
license ids and scores
- reviewing anything where there was a license detected (about 500+
files) to ensure that the applied SPDX license was correct
- reviewing anything where there was no detection but the patch license
was not GPL-2.0 WITH Linux-syscall-note to ensure that the applied
SPDX license was correct
This produced a worksheet with 20 files needing minor correction. This
worksheet was then exported into 3 different .csv files for the
different types of files to be modified.
These .csv files were then reviewed by Greg. Thomas wrote a script to
parse the csv files and add the proper SPDX tag to the file, in the
format that the file expected. This script was further refined by Greg
based on the output to detect more types of files automatically and to
distinguish between header and source .c files (which need different
comment types.) Finally Greg ran the script using the .csv files to
generate the patches.
Reviewed-by: Kate Stewart <kstewart@linuxfoundation.org>
Reviewed-by: Philippe Ombredanne <pombredanne@nexb.com>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-11-01 22:07:57 +08:00
|
|
|
# SPDX-License-Identifier: GPL-2.0
|
2009-11-17 07:49:41 +08:00
|
|
|
config BF51x
|
|
|
|
def_bool y
|
|
|
|
depends on (BF512 || BF514 || BF516 || BF518)
|
|
|
|
|
2008-11-18 17:48:21 +08:00
|
|
|
if (BF51x)
|
|
|
|
|
|
|
|
source "arch/blackfin/mach-bf518/boards/Kconfig"
|
|
|
|
|
|
|
|
menu "BF518 Specific Configuration"
|
|
|
|
|
|
|
|
comment "Alternative Multiplexing Scheme"
|
|
|
|
|
|
|
|
choice
|
2011-06-30 04:29:41 +08:00
|
|
|
prompt "PWM Channel Pins"
|
|
|
|
default BF518_PWM_ALL_PORTF
|
2008-11-18 17:48:21 +08:00
|
|
|
help
|
2011-06-30 04:29:41 +08:00
|
|
|
Select pins used for the PWM channels:
|
|
|
|
PWM_AH PWM_AL PWM_BH PWM_BL PWM_CH PWM_CL
|
2008-11-18 17:48:21 +08:00
|
|
|
|
2011-06-30 04:29:41 +08:00
|
|
|
See the Hardware Reference Manual for more details.
|
|
|
|
|
|
|
|
config BF518_PWM_ALL_PORTF
|
|
|
|
bool "PF1 - PF6"
|
2008-11-18 17:48:21 +08:00
|
|
|
help
|
2011-06-30 04:29:41 +08:00
|
|
|
PF{1,2,3,4,5,6} <-> PWM_{AH,AL,BH,BL,CH,CL}
|
2008-11-18 17:48:21 +08:00
|
|
|
|
2011-06-30 04:29:41 +08:00
|
|
|
config BF518_PWM_PORTF_PORTG
|
|
|
|
bool "PF11 - PF14 / PG1 - PG2"
|
2008-11-18 17:48:21 +08:00
|
|
|
help
|
2011-06-30 04:29:41 +08:00
|
|
|
PF{11,12,13,14} <-> PWM_{AH,AL,BH,BL}
|
|
|
|
PG{1,2} <-> PWM_{CH,CL}
|
|
|
|
|
2008-11-18 17:48:21 +08:00
|
|
|
endchoice
|
|
|
|
|
|
|
|
choice
|
2011-06-30 04:29:41 +08:00
|
|
|
prompt "PWM Sync Pin"
|
|
|
|
default BF518_PWM_SYNC_PF7
|
2008-11-18 17:48:21 +08:00
|
|
|
help
|
2011-06-30 04:29:41 +08:00
|
|
|
Select the pin used for PWM_SYNC.
|
2008-11-18 17:48:21 +08:00
|
|
|
|
2011-06-30 04:29:41 +08:00
|
|
|
See the Hardware Reference Manual for more details.
|
|
|
|
|
|
|
|
config BF518_PWM_SYNC_PF7
|
|
|
|
bool "PF7"
|
|
|
|
config BF518_PWM_SYNC_PF15
|
|
|
|
bool "PF15"
|
|
|
|
endchoice
|
2008-11-18 17:48:21 +08:00
|
|
|
|
2011-06-30 04:29:41 +08:00
|
|
|
choice
|
|
|
|
prompt "PWM Trip B Pin"
|
|
|
|
default BF518_PWM_TRIPB_PG10
|
2008-11-18 17:48:21 +08:00
|
|
|
help
|
2011-06-30 04:29:41 +08:00
|
|
|
Select the pin used for PWM_TRIPB.
|
|
|
|
|
|
|
|
See the Hardware Reference Manual for more details.
|
|
|
|
|
|
|
|
config BF518_PWM_TRIPB_PG10
|
|
|
|
bool "PG10"
|
|
|
|
config BF518_PWM_TRIPB_PG14
|
|
|
|
bool "PG14"
|
2008-11-18 17:48:21 +08:00
|
|
|
endchoice
|
|
|
|
|
|
|
|
choice
|
2011-06-30 04:29:41 +08:00
|
|
|
prompt "PPI / Timer Pins"
|
|
|
|
default BF518_PPI_TMR_PG5
|
2008-11-18 17:48:21 +08:00
|
|
|
help
|
2011-06-30 04:29:41 +08:00
|
|
|
Select pins used for PPI/Timer:
|
|
|
|
PPICLK PPIFS1 PPIFS2
|
|
|
|
TMRCLK TMR0 TMR1
|
2008-11-18 17:48:21 +08:00
|
|
|
|
2011-06-30 04:29:41 +08:00
|
|
|
See the Hardware Reference Manual for more details.
|
|
|
|
|
|
|
|
config BF518_PPI_TMR_PG5
|
|
|
|
bool "PG5 - PG7"
|
2008-11-18 17:48:21 +08:00
|
|
|
help
|
2011-06-30 04:29:41 +08:00
|
|
|
PG{5,6,7} <-> {PPICLK/TMRCLK,TMR0/PPIFS1,TMR1/PPIFS2}
|
2008-11-18 17:48:21 +08:00
|
|
|
|
2011-06-30 04:29:41 +08:00
|
|
|
config BF518_PPI_TMR_PG12
|
|
|
|
bool "PG12 - PG14"
|
2008-11-18 17:48:21 +08:00
|
|
|
help
|
2011-06-30 04:29:41 +08:00
|
|
|
PG{12,13,14} <-> {PPICLK/TMRCLK,TMR0/PPIFS1,TMR1/PPIFS2}
|
|
|
|
|
2008-11-18 17:48:21 +08:00
|
|
|
endchoice
|
|
|
|
|
2010-07-05 21:39:16 +08:00
|
|
|
comment "Hysteresis/Schmitt Trigger Control"
|
|
|
|
config BFIN_HYSTERESIS_CONTROL
|
|
|
|
bool "Enable Hysteresis Control"
|
|
|
|
help
|
|
|
|
The ADSP-BF51x allows to control input hysteresis for Port F,
|
|
|
|
Port G and Port H and other processor signal inputs.
|
|
|
|
The Schmitt trigger enables can be set only for pin groups.
|
|
|
|
Saying Y will overwrite the default reset or boot loader
|
|
|
|
initialization.
|
|
|
|
|
|
|
|
menu "PORT F"
|
|
|
|
depends on BFIN_HYSTERESIS_CONTROL
|
|
|
|
config GPIO_HYST_PORTF_0_7
|
|
|
|
bool "Enable Hysteresis on PORTF {0...7}"
|
|
|
|
config GPIO_HYST_PORTF_8_9
|
|
|
|
bool "Enable Hysteresis on PORTF {8, 9}"
|
|
|
|
config GPIO_HYST_PORTF_10
|
|
|
|
bool "Enable Hysteresis on PORTF 10"
|
|
|
|
config GPIO_HYST_PORTF_11
|
|
|
|
bool "Enable Hysteresis on PORTF 11"
|
|
|
|
config GPIO_HYST_PORTF_12_13
|
|
|
|
bool "Enable Hysteresis on PORTF {12, 13}"
|
|
|
|
config GPIO_HYST_PORTF_14_15
|
|
|
|
bool "Enable Hysteresis on PORTF {14, 15}"
|
|
|
|
endmenu
|
|
|
|
|
|
|
|
menu "PORT G"
|
|
|
|
depends on BFIN_HYSTERESIS_CONTROL
|
|
|
|
config GPIO_HYST_PORTG_0
|
|
|
|
bool "Enable Hysteresis on PORTG 0"
|
|
|
|
config GPIO_HYST_PORTG_1_4
|
|
|
|
bool "Enable Hysteresis on PORTG {1...4}"
|
|
|
|
config GPIO_HYST_PORTG_5_6
|
|
|
|
bool "Enable Hysteresis on PORTG {5, 6}"
|
|
|
|
config GPIO_HYST_PORTG_7_8
|
|
|
|
bool "Enable Hysteresis on PORTG {7, 8}"
|
|
|
|
config GPIO_HYST_PORTG_9
|
|
|
|
bool "Enable Hysteresis on PORTG 9"
|
|
|
|
config GPIO_HYST_PORTG_10
|
|
|
|
bool "Enable Hysteresis on PORTG 10"
|
|
|
|
config GPIO_HYST_PORTG_11_13
|
|
|
|
bool "Enable Hysteresis on PORTG {11...13}"
|
|
|
|
config GPIO_HYST_PORTG_14_15
|
|
|
|
bool "Enable Hysteresis on PORTG {14, 15}"
|
|
|
|
endmenu
|
|
|
|
|
|
|
|
menu "PORT H"
|
|
|
|
depends on BFIN_HYSTERESIS_CONTROL
|
|
|
|
config GPIO_HYST_PORTH_0_7
|
|
|
|
bool "Enable Hysteresis on PORTH {0...7}"
|
|
|
|
|
|
|
|
endmenu
|
|
|
|
|
|
|
|
menu "None-GPIO"
|
|
|
|
depends on BFIN_HYSTERESIS_CONTROL
|
|
|
|
config NONEGPIO_HYST_NMI_RST_BMODE
|
|
|
|
bool "Enable Hysteresis on {NMI, RESET, BMODE}"
|
|
|
|
config NONEGPIO_HYST_JTAG
|
|
|
|
bool "Enable Hysteresis on JTAG"
|
|
|
|
endmenu
|
|
|
|
|
2008-11-18 17:48:21 +08:00
|
|
|
comment "Interrupt Priority Assignment"
|
|
|
|
menu "Priority"
|
|
|
|
|
|
|
|
config IRQ_PLL_WAKEUP
|
|
|
|
int "IRQ_PLL_WAKEUP"
|
|
|
|
default 7
|
|
|
|
config IRQ_DMA0_ERROR
|
|
|
|
int "IRQ_DMA0_ERROR"
|
|
|
|
default 7
|
|
|
|
config IRQ_DMAR0_BLK
|
|
|
|
int "IRQ_DMAR0_BLK"
|
|
|
|
default 7
|
|
|
|
config IRQ_DMAR1_BLK
|
|
|
|
int "IRQ_DMAR1_BLK"
|
|
|
|
default 7
|
|
|
|
config IRQ_DMAR0_OVR
|
|
|
|
int "IRQ_DMAR0_OVR"
|
|
|
|
default 7
|
|
|
|
config IRQ_DMAR1_OVR
|
|
|
|
int "IRQ_DMAR1_OVR"
|
|
|
|
default 7
|
|
|
|
config IRQ_PPI_ERROR
|
|
|
|
int "IRQ_PPI_ERROR"
|
|
|
|
default 7
|
|
|
|
config IRQ_MAC_ERROR
|
|
|
|
int "IRQ_MAC_ERROR"
|
|
|
|
default 7
|
|
|
|
config IRQ_SPORT0_ERROR
|
|
|
|
int "IRQ_SPORT0_ERROR"
|
|
|
|
default 7
|
|
|
|
config IRQ_SPORT1_ERROR
|
|
|
|
int "IRQ_SPORT1_ERROR"
|
|
|
|
default 7
|
|
|
|
config IRQ_PTP_ERROR
|
|
|
|
int "IRQ_PTP_ERROR"
|
|
|
|
default 7
|
|
|
|
config IRQ_UART0_ERROR
|
|
|
|
int "IRQ_UART0_ERROR"
|
|
|
|
default 7
|
|
|
|
config IRQ_UART1_ERROR
|
|
|
|
int "IRQ_UART1_ERROR"
|
|
|
|
default 7
|
|
|
|
config IRQ_RTC
|
|
|
|
int "IRQ_RTC"
|
|
|
|
default 8
|
|
|
|
config IRQ_PPI
|
|
|
|
int "IRQ_PPI"
|
|
|
|
default 8
|
|
|
|
config IRQ_SPORT0_RX
|
|
|
|
int "IRQ_SPORT0_RX"
|
|
|
|
default 9
|
|
|
|
config IRQ_SPORT0_TX
|
|
|
|
int "IRQ_SPORT0_TX"
|
|
|
|
default 9
|
|
|
|
config IRQ_SPORT1_RX
|
|
|
|
int "IRQ_SPORT1_RX"
|
|
|
|
default 9
|
|
|
|
config IRQ_SPORT1_TX
|
|
|
|
int "IRQ_SPORT1_TX"
|
|
|
|
default 9
|
|
|
|
config IRQ_TWI
|
|
|
|
int "IRQ_TWI"
|
|
|
|
default 10
|
|
|
|
config IRQ_SPI0
|
|
|
|
int "IRQ_SPI"
|
|
|
|
default 10
|
|
|
|
config IRQ_UART0_RX
|
|
|
|
int "IRQ_UART0_RX"
|
|
|
|
default 10
|
|
|
|
config IRQ_UART0_TX
|
|
|
|
int "IRQ_UART0_TX"
|
|
|
|
default 10
|
|
|
|
config IRQ_UART1_RX
|
|
|
|
int "IRQ_UART1_RX"
|
|
|
|
default 10
|
|
|
|
config IRQ_UART1_TX
|
|
|
|
int "IRQ_UART1_TX"
|
|
|
|
default 10
|
|
|
|
config IRQ_OPTSEC
|
|
|
|
int "IRQ_OPTSEC"
|
|
|
|
default 11
|
|
|
|
config IRQ_CNT
|
|
|
|
int "IRQ_CNT"
|
|
|
|
default 11
|
|
|
|
config IRQ_MAC_RX
|
|
|
|
int "IRQ_MAC_RX"
|
|
|
|
default 11
|
|
|
|
config IRQ_PORTH_INTA
|
|
|
|
int "IRQ_PORTH_INTA"
|
|
|
|
default 11
|
|
|
|
config IRQ_MAC_TX
|
|
|
|
int "IRQ_MAC_TX/NFC"
|
|
|
|
default 11
|
|
|
|
config IRQ_PORTH_INTB
|
|
|
|
int "IRQ_PORTH_INTB"
|
|
|
|
default 11
|
2009-01-07 23:14:39 +08:00
|
|
|
config IRQ_TIMER0
|
|
|
|
int "IRQ_TIMER0"
|
2009-05-15 19:01:59 +08:00
|
|
|
default 7 if TICKSOURCE_GPTMR0
|
2009-01-07 23:14:39 +08:00
|
|
|
default 8
|
|
|
|
config IRQ_TIMER1
|
|
|
|
int "IRQ_TIMER1"
|
2008-11-18 17:48:21 +08:00
|
|
|
default 12
|
2009-01-07 23:14:39 +08:00
|
|
|
config IRQ_TIMER2
|
|
|
|
int "IRQ_TIMER2"
|
2008-11-18 17:48:21 +08:00
|
|
|
default 12
|
2009-01-07 23:14:39 +08:00
|
|
|
config IRQ_TIMER3
|
|
|
|
int "IRQ_TIMER3"
|
2008-11-18 17:48:21 +08:00
|
|
|
default 12
|
2009-01-07 23:14:39 +08:00
|
|
|
config IRQ_TIMER4
|
|
|
|
int "IRQ_TIMER4"
|
2008-11-18 17:48:21 +08:00
|
|
|
default 12
|
2009-01-07 23:14:39 +08:00
|
|
|
config IRQ_TIMER5
|
|
|
|
int "IRQ_TIMER5"
|
2008-11-18 17:48:21 +08:00
|
|
|
default 12
|
2009-01-07 23:14:39 +08:00
|
|
|
config IRQ_TIMER6
|
|
|
|
int "IRQ_TIMER6"
|
2008-11-18 17:48:21 +08:00
|
|
|
default 12
|
2009-01-07 23:14:39 +08:00
|
|
|
config IRQ_TIMER7
|
|
|
|
int "IRQ_TIMER7"
|
2008-11-18 17:48:21 +08:00
|
|
|
default 12
|
|
|
|
config IRQ_PORTG_INTA
|
|
|
|
int "IRQ_PORTG_INTA"
|
|
|
|
default 12
|
|
|
|
config IRQ_PORTG_INTB
|
|
|
|
int "IRQ_PORTG_INTB"
|
|
|
|
default 12
|
|
|
|
config IRQ_MEM_DMA0
|
|
|
|
int "IRQ_MEM_DMA0"
|
|
|
|
default 13
|
|
|
|
config IRQ_MEM_DMA1
|
|
|
|
int "IRQ_MEM_DMA1"
|
|
|
|
default 13
|
|
|
|
config IRQ_WATCH
|
|
|
|
int "IRQ_WATCH"
|
|
|
|
default 13
|
|
|
|
config IRQ_PORTF_INTA
|
|
|
|
int "IRQ_PORTF_INTA"
|
|
|
|
default 13
|
|
|
|
config IRQ_PORTF_INTB
|
|
|
|
int "IRQ_PORTF_INTB"
|
|
|
|
default 13
|
|
|
|
config IRQ_SPI0_ERROR
|
|
|
|
int "IRQ_SPI0_ERROR"
|
|
|
|
default 7
|
|
|
|
config IRQ_SPI1_ERROR
|
|
|
|
int "IRQ_SPI1_ERROR"
|
|
|
|
default 7
|
|
|
|
config IRQ_RSI_INT0
|
|
|
|
int "IRQ_RSI_INT0"
|
|
|
|
default 7
|
|
|
|
config IRQ_RSI_INT1
|
|
|
|
int "IRQ_RSI_INT1"
|
|
|
|
default 7
|
|
|
|
config IRQ_PWM_TRIP
|
|
|
|
int "IRQ_PWM_TRIP"
|
|
|
|
default 10
|
|
|
|
config IRQ_PWM_SYNC
|
|
|
|
int "IRQ_PWM_SYNC"
|
|
|
|
default 10
|
|
|
|
config IRQ_PTP_STAT
|
|
|
|
int "IRQ_PTP_STAT"
|
|
|
|
default 10
|
|
|
|
|
|
|
|
help
|
|
|
|
Enter the priority numbers between 7-13 ONLY. Others are Reserved.
|
|
|
|
This applies to all the above. It is not recommended to assign the
|
|
|
|
highest priority number 7 to UART or any other device.
|
|
|
|
|
|
|
|
endmenu
|
|
|
|
|
|
|
|
endmenu
|
|
|
|
|
|
|
|
endif
|