06 Nov, 2017
1 commit
-
As part of my usual round of build testing, output about missing
MAINTAINERS information was not logged, and thus often overlooked.
Correct that mistake by ensuring that I log the output of
genboardscfg.py every time. As part of that, address a number of
missing MAINTAINERS entires. In the case of a missing file, I have put
the original submitter down. In the rest of the cases I have added the
config (and sometimes relevant header file) to the existing set of file
globs.Signed-off-by: Tom Rini
04 Oct, 2017
1 commit
-
U-Boot widely uses error() as a bit noisier variant of printf().
This macro causes name conflict with the following line in
include/linux/compiler-gcc.h:# define __compiletime_error(message) __attribute__((error(message)))
This prevents us from using __compiletime_error(), and makes it
difficult to fully sync BUILD_BUG macros with Linux. (Notice
Linux's BUILD_BUG_ON_MSG is implemented by using compiletime_assert().)Let's convert error() into now treewide-available pr_err().
Done with the help of Coccinelle, excluing tools/ directory.
The semantic patch I used is as follows:
//
@@@@
-error
+pr_err
(...)
//Signed-off-by: Masahiro Yamada
Reviewed-by: Simon Glass
[trini: Re-run Coccinelle]
Signed-off-by: Tom Rini
29 Jul, 2017
1 commit
-
Convert this PMIC driver to driver model and fix up other users. The
regulator and GPIO functions are now handled by separate drivers.Update nyan-big to work correct. Three boards will need to be updated by
the maintainers: apalis-tk1, cei-tk1-som. Also the TODO in the code re
as3722_sd_set_voltage() needs to be completed.Signed-off-by: Simon Glass
Reviewed-by: Lukasz Majewski
Tested-by: Marcel Ziswiler
Tested-on: Jetson-TK1
Tested-by: Stephen Warren
13 Jun, 2017
1 commit
-
Whistler is an ancient Tegra 2 reference board. I may have been the only
person who ever used it with upstream software, and I've just recycled
the board hardware. Hence, it makes sense to remove support from software.Signed-off-by: Stephen Warren
Signed-off-by: Tom Warren
05 Jun, 2017
1 commit
-
Rather than relying on common.h to provide this include, which is going
away at some point, include it explicitly in each file.Signed-off-by: Simon Glass
Reviewed-by: Tom Rini
11 Jan, 2017
1 commit
-
Move (and rename) the following CONFIG options to Kconfig:
CONFIG_DAVINCI_MMC (renamed to CONFIG_MMC_DAVINCI)
CONFIG_OMAP_HSMMC (renamed to CONFIG_MMC_OMAP_HS)
CONFIG_MXC_MMC (renamed to CONFIG_MMC_MXC)
CONFIG_MXS_MMC (renamed to CONFIG_MMC_MXS)
CONFIG_TEGRA_MMC (renamed to CONFIG_MMC_SDHCI_TEGRA)
CONFIG_SUNXI_MMC (renamed to CONFIG_MMC_SUNXI)They are the same option names as used in Linux.
This commit was created as follows:
[1] Rename the options with the following command:
find . -name .git -prune -o ! -path ./scripts/config_whitelist.txt \
-type f -print | xargs sed -i -e '
s/CONFIG_DAVINCI_MMC/CONFIG_MMC_DAVINCI/g
s/CONFIG_OMAP_HSMMC/CONFIG_MMC_OMAP_HS/g
s/CONFIG_MXC_MMC/CONFIG_MMC_MXC/g
s/CONFIG_MXS_MMC/CONFIG_MMC_MXS/g
s/CONFIG_TEGRA_MMC/CONFIG_MMC_SDHCI_TEGRA/g
s/CONFIG_SUNXI_MMC/CONFIG_MMC_SUNXI/g
'[2] Commit the changes
[3] Create entries in driver/mmc/Kconfig.
(copied from Linux)[4] Move the options with the following command
tools/moveconfig.py -y -r HEAD \
MMC_DAVINCI MMC_OMAP_HS MMC_MXC MMC_MXS MMC_SDHCI_TEGRA MMC_SUNXI[5] Sort and align drivers/mmc/Makefile for readability
Signed-off-by: Masahiro Yamada
Reviewed-by: Marek Vasut
28 Sep, 2016
1 commit
-
Commit ce02a71c2374 "tegra: dts: Sync tegra20 device tree files with
Linux" enabled the ULPI USB port on Ventana, but made no attempt to ensure
that U-Boot code could handle this. In practice, various code is missing,
and various configuration options are not enabled, which causes U-Boot to
hang when attempting to initialize this USB port. This patch enables ULPI
PHY support on Ventana, and adds the required pinmux setup for the port to
operate. Note that Ventana is so similar to Seaboard that this change is
made in the Seaboard board file, which is shared with Ventana.Seaboard also has the ULPI USB port wired up in hardware, although to an
internal port that often doesn't have anything attached to it. However,
the DT nodes for the USB controller and PHY had different status property
values, so the port was not initialized by U-Boot. Fix this inconsistency,
and enable the ULPI port, just like in the Linux kernel DT. This likewise
requires enabling ULPI support in the Seaboard defconfig.Cc: Marcel Ziswiler
Signed-off-by: Stephen Warren
Reviewed-by: Simon Glass
Signed-off-by: Tom Warren
02 Sep, 2016
1 commit
-
The Colorado TK1 SOM is a small form factor board similar to the
Jetson TK1. The main differences lie in the pinmux, and in that the
PCIe controller is set to use in 4lanes+1lane, rather than 2+2.The pinmux header here was generated from a spreadsheet provided by
Colorado Engineering using the tegra-pinmux scripts. The spreadsheet
was converted from v09 to v11 by me.Signed-off-by: Peter Chubb
Acked-by: Stephen Warren
Signed-off-by: Tom Warren
16 Aug, 2016
3 commits
-
Program vdd_core for Jetson TK1 to 1V, which is the max safe voltage for
ultra low temperature operations. vdd_cpu and vdd_gpu are already at 1V.Signed-off-by: Bibek Basu
(swarren: fixed comments to better match the code)
(swarren: moved board ifdef around data in header, made code generic)
(swarren: fixed typos in commit description)
Signed-off-by: Stephen Warren
Signed-off-by: Tom Warren -
p2771-0000 has a couple of PCIe ports; one physically x4 desktop PCI
connector (which may run at x2 electrically, depending on the board
version and configuration) and a x1 connection to the M.2 slot (which may
not be active, depending on the board version and configuration). This
change enables those.Signed-off-by: Stephen Warren
Signed-off-by: Tom Warren -
Now that clock and reset drivers exist for Tegra186, we can enable the SD
card controller. Now that a BPMP I2C driver exists for Tegra186, we can
communicate with the PMIC to enable power to the SD card. Hook up the DT
content and board code required to make the SD card work.Signed-off-by: Stephen Warren
Signed-off-by: Tom Warren
22 Jul, 2016
1 commit
-
Rev A03 of P2180 requires some PMIC programming adjustments, yet the
PMIC's own OTP has not been updated. Consequently, U-Boot must make
these changes itself.NVIDIA's syseng team has confirmed that these changes can be enabled on
all board revisions without issue.Signed-off-by: Stephen Warren
Signed-off-by: Tom Warren
01 Jun, 2016
2 commits
-
P2771-0000 is a P3310 CPU board married to a P2597 I/O board. The
combination contains SoC, DRAM, eMMC, SD card slot, HDMI, USB micro-B
port, Ethernet, USB3 host port, SATA, PCIe, and two GPIO expansion
headers.Currently, due to U-Boot's level of support for Tegra186, the only
features supported by U-Boot are the console UART and the on-board eMMC.
Additional features will be added over time.U-Boot has so far been tested by replacing the kernel image on the device
with a U-Boot binary. It is anticipated that U-Boot will eventually
replace the CCPLEX bootloader binary, as on previous chips. This hasn't
yet been tested.Signed-off-by: Stephen Warren
Reviewed-by: Simon Glass
Signed-off-by: Tom Warren -
There are currently many places that define the list of all Tegra GPIOs;
the DT binding header and custom Tegra-specific header file gpio.h. Fix
the redundancy by replacing everything with the DT binding header file.Signed-off-by: Stephen Warren
Reviewed-by: Simon Glass
Signed-off-by: Tom Warren
05 May, 2016
1 commit
-
This imports v11 of "Jetson TK1 Development Platform Pin Mux" from
https://developer.nvidia.com/embedded/downloads.The new version defines the mux option for the MIPI pad ctrl selection.
The OWR pin no longer has an entry in the configuration table because
the only mux option it support is OWR, that feature isn't supported, and
hence can't conflict with any other pin. This pin can only usefully be
used as a GPIO.Signed-off-by: Stephen Warren
Reviewed-by: Simon Glass
Signed-off-by: Tom Warren
29 Jan, 2016
1 commit
-
The PMIC is configured such that its GPIOs have the correct configuration
at power-up, so no programming is required.In fact, the current programming is actively wrong, since:
(a) the AS3722 driver configures the GPIO to be an output before setting
its output value, which causes a 0v glitch on the output.(b) the AS3722 driver configures the GPIO to drive a high voltage from its
VSUP_GPIO power source rather than its VDD_GPIO_LV power source, so the pin
drives 5V not 1.8V as desired.Solve these problems by removing the code which configures the PMIC GPIOs.
Note that this patch was tested directly on top of v2016.01; since then,
commit 96350f729c42 "dm: tegra: net: Convert tegra boards to driver model
for Ethernet" prevents PCIe from being initialized. Alternatively, simply
revert that commit to get PCIe Ethernet working again, then apply this
patch to test.Signed-off-by: Stephen Warren
Signed-off-by: Tom Warren
19 Jan, 2016
1 commit
-
In a number of places we had wordings of the GPL (or LGPL in a few
cases) license text that were split in such a way that it wasn't caught
previously. Convert all of these to the correct SPDX-License-Identifier
tag.Signed-off-by: Tom Rini
13 Jan, 2016
1 commit
-
Adjust all Tegra boards to use driver model for Ethernet, now that the
required drivers are converted.Signed-off-by: Simon Glass
Reviewed-by: Bin Meng
Acked-by: Joe Hershberger
13 Nov, 2015
2 commits
-
Enable the GPU node in the system-wide ft_system_setup() hook instead of
the board-specific ft_board_hook(). This allows us to enable GPU per SoC
generation instead of per-board as we did initially.Reported-by: Stephen Warren
Signed-off-by: Alexandre Courbot
Signed-off-by: Tom Warren -
p2371-2180 has two PCI ports; a regular x4 slot and a x1 M.2 slot. This
patch adds the relevant DT to enable the PCI controller and configure
the XUSB padctl pin muxing, and code to turn on the PCI power and enable
PCI features in U-Boot. I have only tested the x4 slot.Signed-off-by: Stephen Warren
Signed-off-by: Tom Warren
10 Nov, 2015
1 commit
-
After consulting with some of the SPDX team, the conclusion is that
Makefiles are worth adding SPDX-License-Identifier tags too, and most of
ours have one. This adds tags to ones that lack them and converts a few
that had full (or in one case, very partial) license blobs into the
equivalent tag.Cc: Kate Stewart
Signed-off-by: Tom Rini
03 Oct, 2015
1 commit
-
In order to avoid any assumptions about any device connected to
P2371-2180's expansion connector, the latest pinmux spreadsheet
configures all muxable pins on that connector to be GPIO inputs, with
on-chip pulls where appropriate.Signed-off-by: Stephen Warren
Signed-off-by: Tom Warren
17 Sep, 2015
1 commit
-
P2371-2180 is a P2180 CPU board married to a P2597 I/O board. The
combination contains SoC, DRAM, eMMC, SD card slot, HDMI, USB
micro-B port, Ethernet via USB3, USB3 host port, SATA, PCIe, and
two GPIO expansion headers.Signed-off-by: Stephen Warren
Signed-off-by: Tom Warren
07 Aug, 2015
4 commits
-
P2371-0000 is a P2581 or P2530 CPU board married to a P2595 I/O
board. The combination contains SoC, DRAM, eMMC, SD card slot,
HDMI, USB micro-B port, Ethernet via USB3, USB3 host port, SATA,
a GPIO expansion header, and an analog audio jack.Signed-off-by: Stephen Warren
Reviewed-by: Simon Glass
Signed-off-by: Tom Warren -
E2220-1170 is a Tegra210 bringup board with onboard SoC, DRAM,
eMMC, SD card slot, HDMI, USB micro-B port, and sockets for various
expansion modules.Signed-off-by: Stephen Warren
Signed-off-by: Tom Warren -
T124/210 requires some specific configuration (VPR setup) to
be performed by the bootloader before the GPU can be used.
For this reason, the GPU node in the device tree is disabled
by default. This patch enables the node if U-boot has performed
VPR configuration.Boards enabled by this patch are T124's Jetson TK1 and Venice2
and T210's P2571.Signed-off-by: Alexandre Courbot
Cc: Stephen Warren
Cc: Tom Warren
Signed-off-by: Tom Warren -
Add a comment block to the top of each generated Tegra pinmux header file
indicating that the file was auto-generated, should not be manually
edited, and with a pointer to the tool and command used to generate it.Signed-off-by: Stephen Warren
Reviewed-by: Simon Glass
Signed-off-by: Tom Warren
06 Aug, 2015
2 commits
-
CPU board (E2530) has a fan - turn it on via GPIO to keep
the SoC cool.Acked-by: Stephen Warren
Signed-off-by: Tom Warren -
This was done in the 32-bit AVP loader (SPL) but is
board-specific so should be moved to the CPU portion.Signed-off-by: Tom Warren
Acked-by: Stephen Warren
29 Jul, 2015
1 commit
-
Based on Venice2, incorporates Stephen Warren's
latest P2571 pinmux table.With Thierry Reding's 64-bit build fixes, this
will build and and boot in 64-bit on my P2571
(when used with a 32-bit AVP loader).Signed-off-by: Tom Warren
28 Jul, 2015
1 commit
-
Enable the I2C3 pins so that the TPM can be used.
Note: There is an DP change also, caused by running board-to-uboot.py
script in the latest tegra-pinmux-script tree.Signed-off-by: Simon Glass
Acked-by: Stephen Warren
Signed-off-by: Tom Warren
10 Jun, 2015
2 commits
-
With the rename the MAINTAINER file was not updated. Fix it and the
'Chrombook' typo in Kconfig.Signed-off-by: Simon Glass
Signed-off-by: Tom Warren -
We need to turn on all audio-related clocks for the Chrome OS kernel to
boot. Otherwise it will hang when trying to enable audio.Also for Linux set up graphics driver video protection.
Signed-off-by: Simon Glass
Signed-off-by: Tom Warren
14 May, 2015
6 commits
-
All the Tegra boards borrow the files from board/nvidia/common/
directory, i.e., board/nvidia/common/* are not vendor-common files,
but SoC-common files.Move NVIDIA common files to arch/arm/mach-tegra/ to clean up
Makefiles.As arch/arm/mach-tegra/board.c already exists, this commit renames
board/nvidia/common/board.c to arch/arm/mach-tegra/board2.c,
expecting they will be consolidated as a second step.Signed-off-by: Masahiro Yamada
Acked-by: Marcel Ziswiler
Cc: Stephen Warren
Cc: Tom Warren
Cc: Simon Glass
Acked-by: Simon Glass
Signed-off-by: Tom Warren -
Add required setup for the LCD display, and a function to provide the
board ID. This requires GPIOs to be available prior to relocation.Signed-off-by: Simon Glass
Signed-off-by: Tom Warren -
Add support for this PMIC which is used on some Tegra124 boards.
Signed-off-by: Simon Glass
Signed-off-by: Tom Warren -
Some LCDs require a PMIC to be set up - add a function for this.
Signed-off-by: Simon Glass
Signed-off-by: Tom Warren -
Add a way of displaying a numeric board ID on start-up.
Signed-off-by: Simon Glass
Signed-off-by: Tom Warren -
This is only used by Nvidia boards, so move it into nvidia/common to
simplify things.Signed-off-by: Simon Glass
Signed-off-by: Tom Warren
31 Mar, 2015
1 commit
-
Requesting a GPIO without a name is not supposed anymore. This causes the
request to fail. Add a name so that the serial console works on seaboard.Signed-off-by: Simon Glass
Reported-by: Stephen Warren
Signed-off-by: Tom Warren