- Feb 20, 2020
-
-
Masahiro Yamada authored
To avoid "asm/dma-mapping.h: No such file or directory" error, we need something. Signed-off-by:
Masahiro Yamada <yamada.masahiro@socionext.com>
-
- Jan 24, 2020
-
-
Simon Glass authored
This file is only used by PowerPC so move it to an arch-specific header file. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
- Jan 17, 2020
-
-
Simon Glass authored
This file is only used by PowerPC so move it to an arch-specific header file. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
- Jan 16, 2020
-
-
Yangbo Lu authored
The QorIQ eSDHC controller supports two reference clocks. They are platform clock and periperhal clock. The global variable sdhc_clk has already been used for platform clock. This patch is to add another global variable sdhc_per_clk for periperhal clock, which provides higher frequency and is required to be used for SD UHS and eMMC HS200/HS400 speed modes. Signed-off-by:
Yangbo Lu <yangbo.lu@nxp.com>
-
Yangbo Lu authored
The below patch added eSDHC periperhal clock code initially. 2d9ca2c7 mmc: fsl_esdhc: Add peripheral clock support The purpose was to fix up device tree properties "peripheral-frequency" so that linux could get the periperhal clock by it. However the implementation on both u-boot and linux was only for a Freescale SDK release. The linux part implementation had never been upstreamed. These code should not have been exist on u-boot mainline. Let's remove the powerpc part changes but keep the changes in fsl_esdhc driver. The changes in fsl_esdhc driver could be utilized to support SD UHS and eMMC HS200/HS400 speed modes for current Layerscape ARM platforms. Signed-off-by:
Yangbo Lu <yangbo.lu@nxp.com>
-
- Jan 08, 2020
-
-
Rasmus Villemoes authored
The MPC8309 has two gpio controllers (which is already correctly reflected in its struct immap definition). Signed-off-by:
Rasmus Villemoes <rasmus.villemoes@prevas.dk> Reviewed-by:
Mario Six <mario.six@gdsys.cc>
-
Rasmus Villemoes authored
Allow drivers/spi/mpc8xxx_spi.c to be built for an mpc8309 target. Signed-off-by:
Rasmus Villemoes <rasmus.villemoes@prevas.dk> Reviewed-by:
Mario Six <mario.six@gdsys.cc>
-
- Nov 27, 2019
-
-
Yangbo Lu authored
The clock.h was to define mxc_get_clock() providing clock value to fsl_esdhc driver. Since fsl_esdhc driver is using global data gd->arch.sdhc_clk directly now, we can remove this file. Signed-off-by:
Yangbo Lu <yangbo.lu@nxp.com> Reviewed-by:
Priyanka Jain <priyanka.jain@nxp.com>
-
- Nov 08, 2019
-
-
Udit Agarwal authored
Rename the CONFIG_SECURE_BOOT name to CONFIG_NXP_ESBC to avoid conflicts with UEFI secure boot. Signed-off-by:
Udit Agarwal <udit.agarwal@nxp.com> Signed-off-by:
Priyanka Jain <priyanka.jain@nxp.com>
-
- Jun 20, 2019
-
-
Hou Zhiqiang authored
Use the Kconfig option to select the PCIe ASPM errata. Signed-off-by:
Hou Zhiqiang <Zhiqiang.Hou@nxp.com> Reviewed-by:
Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com>
-
- May 21, 2019
-
-
Mario Six authored
Lots of stuff in processor.h was taken verbatim from the Linux kernel. It was never synced, so most of it was removed or changed in the kernel since it was imported. Remove all the stuff that is unused in the current U-Boot sources; should anybody feel the need to re-sync with the kernel, they can do it later on. Signed-off-by:
Mario Six <mario.six@gdsys.cc>
-
Mario Six authored
The fsl-esdhc driver can be used for the SDHC functionality on MPC83xx, but it needs some additional definitions. Add a clock.h file, so we can use the driver for MPC83xx. Signed-off-by:
Mario Six <mario.six@gdsys.cc>
-
Mario Six authored
The MPC85xx GPIO driver was converted to handle a broader range of SoCs. Prepare the MPC83xx code for usage of this driver. Signed-off-by:
Mario Six <mario.six@gdsys.cc>
-
Mario Six authored
The MPC8308 has two I2C controllers, but no PCI controller. Fix the register map layout for this SoC. Signed-off-by:
Mario Six <mario.six@gdsys.cc>
-
- May 20, 2019
-
-
Mario Six authored
The LSDMR_* macros are used to configure the system bus on MPC83xx. A few of the possible LSDMR_* macros were never defined in the respective include files. This renders the SDRAM support on the MPC8349EMDS unusable, because it uses these undefined macros. To make the SDRAM option work, introduce these macros into the proper config file. Signed-off-by:
Mario Six <mario.six@gdsys.cc>
-
Mario Six authored
Replace CONFIG_MPC837x with a proper CONFIG_ARCH_MPC837X Kconfig option. Signed-off-by:
Mario Six <mario.six@gdsys.cc>
-
Mario Six authored
Replace CONFIG_MPC836* with proper CONFIG_ARCH_MPC836* Kconfig options. Signed-off-by:
Mario Six <mario.six@gdsys.cc>
-
Mario Six authored
Replace CONFIG_MPC834* with proper CONFIG_ARCH_MPC834* Kconfig options. Signed-off-by:
Mario Six <mario.six@gdsys.cc>
-
Mario Six authored
Replace CONFIG_MPC832* with proper CONFIG_ARCH_MPC832* Kconfig options. Signed-off-by:
Mario Six <mario.six@gdsys.cc>
-
Mario Six authored
Replace CONFIG_MPC833* with proper CONFIG_ARCH_MPC833* Kconfig options. Signed-off-by:
Mario Six <mario.six@gdsys.cc>
-
Mario Six authored
Replace CONFIG_MPC830* with proper CONFIG_ARCH_MPC830* Kconfig options. Signed-off-by:
Mario Six <mario.six@gdsys.cc>
-
- Mar 02, 2019
-
-
Heinrich Schuchardt authored
Moving to the driver model requires CONFIG_DM to be enabled. Currently several boards like kmeter1_defconfig produce a build error when CONFIG_DM is enabled: In file included from include/common.h:35, from ./arch/powerpc/include/asm/fsl_lbc.h:10, from include/mpc83xx.h:10, from ./arch/powerpc/include/asm/ppc.h:27, from ./arch/powerpc/include/asm/u-boot.h:18, from include/dm/of.h:10, from include/dm/ofnode.h:12, from include/dm/device.h:13, from include/linux/mtd/mtd.h:26, from drivers/mtd/mtdconcat.c:25: include/image.h: In function ‘image_check_target_arch’: include/image.h:846:3: error: #error "please define IH_ARCH_DEFAULT in your arch asm/u-boot.h" # error "please define IH_ARCH_DEFAULT in your arch asm/u-boot.h" ^~~~~ include/image.h:848:31: error: ‘IH_ARCH_DEFAULT’ undeclared (first use in this function); did you mean ‘IH_ARCH_COUNT’? return image_check_arch(hdr, IH_ARCH_DEFAULT); The error can be avoided by moving the definition of IH_ARCH_DEFAULT before #include <asm/ppc.h> Signed-off-by:
Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by:
Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com>
-
- Nov 27, 2018
-
-
Jagan Teki authored
In legacy CONFIG_HARD_SPI initalizing spi_init code, which was removed during dm conversion cleanup. So remove the dead instances of CONFIG_HARD_SPI, and related code. Signed-off-by:
Jagan Teki <jagan@amarulasolutions.com>
-
- Nov 26, 2018
-
-
Simon Glass authored
There is some basic informaton that SPL normally wants to pass through to U-Boot, such as the SDRAM size and bank information. Mkae use of the new bloblist structure for this. Add a new 'handoff' blob which is set up in SPL and passed to U-Boot proper. Also adda test for sandbox_spl that checks that this works correctly and a new 'sb' command to show the information passed from SPL. Reviewed-by:
Tom Rini <trini@konsulko.com> Signed-off-by:
Simon Glass <sjg@chromium.org>
-
- Oct 29, 2018
-
-
Bin Meng authored
Per T1040RM (Rev. 1, 08/2015), there are 2 issues with the RCW EC2 settings. - The value of FSL_CORENET_RCWSR13_EC2_FM1_GPIO is wrong and should be 0x04000000 (value of 1 in RCW bit [420:421]) - Value of 2/3 are reserved in RCW bit [420:421], hence there is no macro FSL_CORENET_RCWSR13_EC2_FM1_DTSEC5_MII. Signed-off-by:
Bin Meng <bmeng.cn@gmail.com> Acked-by:
Poonam Aggrwal <poonam.aggrwal@nxp.com> Reviewed-by:
York Sun <york.sun@nxp.com>
-
Bin Meng authored
Per T1040RM (Rev. 1, 08/2015), the value of FSL_CORENET_RCWSR13_MAC2_GMII_SEL_ENET_PORT is wrong and should be 0x00000080 (bit 440 in the RCW). Signed-off-by:
Bin Meng <bmeng.cn@gmail.com> Acked-by:
Poonam Aggrwal <poonam.aggrwal@nxp.com> Reviewed-by:
York Sun <york.sun@nxp.com>
-
- Sep 18, 2018
-
-
Mario Six authored
Add a driver to configure the SerDes (Serializer/Deserializer) lanes on the MPC83xx architecture. Reviewed-by:
Simon Glass <sjg@chromium.org> Signed-off-by:
Mario Six <mario.six@gdsys.cc>
-
Mario Six authored
Add a CPU driver for the MPC83xx architecture. Signed-off-by:
Mario Six <mario.six@gdsys.cc>
-
Mario Six authored
Add a clock driver for the MPC83xx architecture. Signed-off-by:
Mario Six <mario.six@gdsys.cc>
-
Mario Six authored
Define the read*_*/write*_* macros for the PowerPC platform to be able to use the macros in wait_bit.h. Signed-off-by:
Mario Six <mario.six@gdsys.cc>
-
- Sep 11, 2018
-
-
Masahiro Yamada authored
All architectures have the same definition for s8/16/32/64 and u8/16/32/64. Factor out the duplicated code into <asm-generic/int-ll64.h>. BTW, Linux unified the kernel space definition into int-ll64.h a few years ago as you see in Linux commit 0c79a8e29b5f ("asm/types.h: Remove include/asm-generic/int-l64.h"). Signed-off-by:
Masahiro Yamada <yamada.masahiro@socionext.com>
-
- Jul 10, 2018
-
-
Alex Kiernan authored
Remove empty #ifdef/#ifndef..#endif blocks where the configuration they guarded has been completely removed. Signed-off-by:
Alex Kiernan <alex.kiernan@gmail.com>
-
- May 07, 2018
-
-
Tom Rini authored
When U-Boot started using SPDX tags we were among the early adopters and there weren't a lot of other examples to borrow from. So we picked the area of the file that usually had a full license text and replaced it with an appropriate SPDX-License-Identifier: entry. Since then, the Linux Kernel has adopted SPDX tags and they place it as the very first line 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 visibility and in part for other minor reasons, switch over to that style. This commit changes all instances where we have a single declared license in the tag as both the before and after are identical in tag contents. There's also a few places where I found we did not have a tag and have introduced one. Signed-off-by:
Tom Rini <trini@konsulko.com>
-
- Apr 06, 2018
-
-
Christophe Leroy authored
Some malloc memory is needed at startup for DM model. Lets reorganise the use of the CPM dpram. The MPC866/885 dpram, we have 8kbytes dual port RAM, which is usable as: IMMR + 0x2000..0x2800: BD/Data/Microcode IMMR + 0x2800..0x2e00: BD/Data IMMR + 0x2e00..0x3800: BD/Data/Microcode IMMR + 0x3800..0x3a00: BD/Data IMMR + 0x3a00..0x3c00: BD/Data/Microcode IMMR + 0x3c00..0x4000: Parameters for the Peripheral Controllers Lets reallocate all BDs in the 3800..3a00 area and give the full 2800..2e00 for dynamic RAM allocation including global data That way, the microcode areas remain available if needed one day. Signed-off-by:
Christophe Leroy <christophe.leroy@c-s.fr>
-
Christophe Leroy authored
include/commproc.h is dedicated to the 8xx, rename it cpm_8xx.h and move it into arch/powerpc/include/asm Signed-off-by:
Christophe Leroy <christophe.leroy@c-s.fr>
-
Christophe Leroy authored
CONFIG_8xx doesn't mean much outside of arch/powerpc/ This patch renames it CONFIG_MPC8xx just like CONFIG_MPC85xx etc ... It also renames 8xx_immap.h to immap_8xx.h to be consistent with other file names. Signed-off-by:
Christophe Leroy <christophe.leroy@c-s.fr>
-
Christophe Leroy authored
get_immr() is always called with 0 as an argument, so it is useless. Signed-off-by:
Christophe Leroy <christophe.leroy@c-s.fr>
-
Christophe Leroy authored
SPRN_IMMR is defined regardless of the CPU. Therefore, there is no point in enclosing get_immr() inside a #ifdef CONFIG_8xx As it a static inline function, it will in any case only be compiled in functons using it. Signed-off-by:
Christophe Leroy <christophe.leroy@c-s.fr>
-
Christophe Leroy authored
Avoid hardcoding the PVR values in C since they are defined in processor.h At the same time, remove those multiple PVR values for 8xx and keep only one that we call PVR_8xx Signed-off-by:
Christophe Leroy <christophe.leroy@c-s.fr>
-
- Mar 16, 2018
-
-
Michal Simek authored
This file is completely unused and it should be removed as the part of ppc405/ppc440 xilinx platform removal. Signed-off-by:
Michal Simek <michal.simek@xilinx.com>
-