SPDX: Convert all of our single license tags to Linux Kernel styleWhen U-Boot started using SPDX tags we were among the early adopters andthere weren't a lot of other examples to borrow from. So
SPDX: Convert all of our single license tags to Linux Kernel styleWhen U-Boot started using SPDX tags we were among the early adopters andthere weren't a lot of other examples to borrow from. So we picked thearea of the file that usually had a full license text and replaced itwith an appropriate SPDX-License-Identifier: entry. Since then, theLinux Kernel has adopted SPDX tags and they place it as the very firstline in a file (except where shebangs are used, then it's second line)and with slightly different comment styles than us.In part due to community overlap, in part due to better tag visibilityand in part for other minor reasons, switch over to that style.This commit changes all instances where we have a single declaredlicense in the tag as both the before and after are identical in tagcontents. There's also a few places where I found we did not have a tagand have introduced one.Signed-off-by: Tom Rini <trini@konsulko.com>
show more ...
gpio: mpc8xxx: Rename Kconfig option, structures, and functionsRename the Kconfig option, structures (and their members), as well asfunctions of the mpc85xx driver to include mpc8xxx to reflect th
gpio: mpc8xxx: Rename Kconfig option, structures, and functionsRename the Kconfig option, structures (and their members), as well asfunctions of the mpc85xx driver to include mpc8xxx to reflect the moregeneric usage.Signed-off-by: Mario Six <mario.six@gdsys.cc>
dm: gpio: MPC85XX GPIO platform data supportDefine a platform data structure for the MPC85XX GPIO driver to allowuse of the driver without device tree. Users should define the GPIOblocks for thei
dm: gpio: MPC85XX GPIO platform data supportDefine a platform data structure for the MPC85XX GPIO driver to allowuse of the driver without device tree. Users should define the GPIOblocks for their platform like this: struct mpc85xx_gpio_plat gpio_blocks[] = { { .addr = 0x130000, .ngpios = 32, }, { .addr = 0x131000, .ngpios = 32, }, }; U_BOOT_DEVICES(my_platform_gpios) = { { "gpio_mpc85xx", &gpio_blocks[0] }, { "gpio_mpc85xx", &gpio_blocks[1] }, };This is intended to build upon the recent submission of the baseMPC85XX driver from Mario Six. We need to use that new driverwithout dts support and this patch gives us that flexibility.This has been tested on a Freescale T2080 CPU, although only the firstGPIO block.Signed-off-by: Hamish Martin <hamish.martin@alliedtelesis.co.nz>Reviewed-by: Mario Six <mario.six@gdsys.cc>Tested-by: Mario Six <mario.six@gdsys.cc>Acked-by: Simon Glass <sjg@chromium.org>
dm: gpio: Add driver for MPC85XX GPIO controllerThis patch adds a driver for the built-in GPIO controller of the MPC85XXSoC (probably supporting other PowerQUICC III SoCs as well).Each GPIO bank
dm: gpio: Add driver for MPC85XX GPIO controllerThis patch adds a driver for the built-in GPIO controller of the MPC85XXSoC (probably supporting other PowerQUICC III SoCs as well).Each GPIO bank is identified by its own entry in the device tree, i.e.gpio-controller@fc00 { #gpio-cells = <2>; compatible = "fsl,pq3-gpio"; reg = <0xfc00 0x100>}By default, each bank is assumed to have 32 GPIOs, but the ngpiossetting is honored, so the number of GPIOs for each bank in configurableto match the actual GPIO count of the SoC (e.g. the 32/32/23 banks ofthe P1022 SoC).The usual functions of GPIO drivers (setting input/output mode and outputvalue setting) are supported.The driver has been tested on MPC85XX, but it is likely that otherPowerQUICC III devices will work as well.Signed-off-by: Mario Six <mario.six@gdsys.cc>Reviewed-by: Simon Glass <sjg@chromium.org>Reviewed-by: York Sun <york.sun@nxp.com>
Correct License and Copyright information on few filesgpio.h - Added missing copyright in few files.rsa-mod-exp.h - Corrected copyright in the file.fsl_sec.h - Added missing license in filesdriv
Correct License and Copyright information on few filesgpio.h - Added missing copyright in few files.rsa-mod-exp.h - Corrected copyright in the file.fsl_sec.h - Added missing license in filesdrivers/crypto/fsl/Makefile - Removed the incomplete GPLv2 license and replaced it with GPLv2+ licenseSigned-off-by: Ruchika Gupta <ruchika.gupta@freescale.com>
powerpc/mpc85xx: Fix compiling error for common/cmd_gpio.cTo replicate:1. add to include/configs/p1_p2_rdb_pc.h "#define CONFIG_CMD_GPIO"2. run `make P1020RDB-PC_defconfig`3. run CROSS_COMPILE=p
powerpc/mpc85xx: Fix compiling error for common/cmd_gpio.cTo replicate:1. add to include/configs/p1_p2_rdb_pc.h "#define CONFIG_CMD_GPIO"2. run `make P1020RDB-PC_defconfig`3. run CROSS_COMPILE=powerpc-linux- makeand you will get:common/built-in.o: In function `do_gpio':u-boot/common/cmd_gpio.c:186: undefined reference to `gpio_request'u-boot/common/cmd_gpio.c:194: undefined reference to `gpio_direction_input'u-boot/common/cmd_gpio.c:195: undefined reference to `gpio_get_value'u-boot/common/cmd_gpio.c:200: undefined reference to `gpio_get_value'u-boot/common/cmd_gpio.c:203: undefined reference to `gpio_direction_output'u-boot/common/cmd_gpio.c:209: undefined reference to `gpio_freeSigned-off-by: Michael Durrant <mdurrant@arcturusnetworks.com>Signed-off-by: Oleksandr G Zhadan <oleks@arcturusnetworks.com>Reviewed-by: York Sun <yorksun@freescale.com>
powerpc: mpc85xx: Add dummy gpio.h to enable CONFIG_OF_CONTROLIf CONFIG_OF_CONTROL is enabled, lib/fdtdec.c is compiled.It includes <asm/gpio.h> and then <asm/gpio.h> includes<asm/arch/gpio.h>.
powerpc: mpc85xx: Add dummy gpio.h to enable CONFIG_OF_CONTROLIf CONFIG_OF_CONTROL is enabled, lib/fdtdec.c is compiled.It includes <asm/gpio.h> and then <asm/gpio.h> includes<asm/arch/gpio.h>. As a result, all the SoCs that enableCONFIG_OF_CONTROL must have <asm/arch/gpio.h>.The right fix would be to split the lib/fdtdec.c to removedependency on GPIO.This commit adds a dummy <asm/arch/gpio.h> to support OF_CONTROLfor mpc85xx platform. A file mpc85xx_gpio.h exists inarch/powerpc/include/asm. The defintions in that file conflictwith the ones in asm-generic/gpio.h. Hence a dummy header filehas been added. This will be removed after FDT-GPIO stuff isfixed correctly.Signed-off-by: Ruchika Gupta <ruchika.gupta@freescale.com>Reviewed-by: York Sun <yorksun@freescale.com>