24 Sep, 2016
1 commit
-
Now, arch/${ARCH}/include/asm/errno.h and include/linux/errno.h have
the same content. (both just wrap )Replace all include directives for with .
Signed-off-by: Masahiro Yamada
[trini: Fixup include/clk.]
Signed-off-by: Tom Rini
07 Sep, 2016
1 commit
-
Currently MX6 SPL DDR initialization hardcodes the REF_SEL and
REFR fields of the MDREF register as 1 and 7, respectively for
DDR3 and 0 and 3 for LPDDR2.Looking at the MDREF initialization done via DCD we see that
boards do need to initialize these fields differently:$ git grep 0x021b0020 board/
board/bachmann/ot1200/mx6q_4x_mt41j128.cfg:DATA 4 0x021b0020 0x00005800
board/ccv/xpress/imximage.cfg:DATA 4 0x021b0020 0x00000800 /* MMDC0_MDREF */
board/freescale/mx6qarm2/imximage.cfg:DATA 4 0x021b0020 0x7800
board/freescale/mx6qarm2/imximage.cfg:DATA 4 0x021b0020 0x00005800
board/freescale/mx6qarm2/imximage_mx6dl.cfg:DATA 4 0x021b0020 0x00005800
board/freescale/mx6qarm2/imximage_mx6dl.cfg:DATA 4 0x021b0020 0x00005800
board/freescale/mx6qsabreauto/imximage.cfg:DATA 4 0x021b0020 0x00005800
board/freescale/mx6qsabreauto/mx6dl.cfg:DATA 4 0x021b0020 0x00005800
board/freescale/mx6qsabreauto/mx6qp.cfg:DATA 4 0x021b0020 0x00005800
board/freescale/mx6sabresd/mx6dlsabresd.cfg:DATA 4 0x021b0020 0x00005800
board/freescale/mx6sabresd/mx6q_4x_mt41j128.cfg:DATA 4 0x021b0020 0x00005800
board/freescale/mx6slevk/imximage.cfg:DATA 4 0x021b0020 0x00001800
board/freescale/mx6sxsabreauto/imximage.cfg:DATA 4 0x021b0020 0x00000800
board/freescale/mx6sxsabresd/imximage.cfg:DATA 4 0x021b0020 0x00000800
board/warp/imximage.cfg:DATA 4 0x021b0020 0x00001800So introduce a mechanism for users to be able to configure
REFSEL and REFR fields as needed.Keep all the mx6 SPL users in their current REF_SEL and REFR values,
so no functional changes for the existing users.Signed-off-by: Fabio Estevam
Reviewed-by: Eric Nelson
28 Jul, 2016
8 commits
-
Added removal of the fsl,ext-reset-output property in the wdog node for board
revisions that pre-date the addition of the external watchdog reset signal.This property is a recent addition to mainline linux kernel in order to
specify that the IMX watchdog external reset should be used instead of the
internal chip-level reset.Signed-off-by: Tim Harvey
-
Re-factor the board-specific dt fixups so that they are easier to follow
and extend in the future:
- use defines for DT paths
- use switch/case per board
- order models numericallyThere is no functional change in the code
Signed-off-by: Tim Harvey
-
The hwconfig env var allows user to control hardware specific configuration
of board specific features but not all Ventana boards have the same features.We will use the magic default value of "_UNKNOWN_" to signify that the
bootloader should create this based on detected board model.Signed-off-by: Tim Harvey
-
The GW5520 has 10 DIO's instead of the typical 4 found on the Ventana
product family.Signed-off-by: Tim Harvey
-
Replace the static list of board-specific digital I/O's with a dynamic list.
Signed-off-by: Tim Harvey
-
Not all Ventana boards have an RS232 transceiver, make it board specific.
Signed-off-by: Tim Harvey
-
Ventana boards with a PCI Marvell Sky2 GigE MAC require the MAC address to
be placed in a DT node in order for the mainline linux driver to obtain it.Signed-off-by: Tim Harvey
-
The GW16082 mini-PCI expansion mezzanine uses a TI XIO2001 PCIe-to-PCI
bridge with legacy INTA/B/C/D interrupts. These interrupts are assigned
in the reverse order according to the PCI spec.If the TI bridge is found on the Ventana PCI bus, add device-tree nodes
according to bus enumeration explicitly defining the interrupt mapping
to override the default PCI mapping in the Linux kernel. This allows
the GW16082 to work with upstream kernels that support device-tree
irq parsing.Signed-off-by: Tim Harvey
13 Jun, 2016
1 commit
31 May, 2016
12 commits
-
UHS-I support is available on Ventana boards with micro-SD sockets depending
on the board revision. For backwards compatibility to not break users
who have old bootloaders and newer kernels the device-tree on boards with
microSD disables UHS-I support by default by defining the no-1-8-v property
in the esdhc controller node. For models/revisions that support switchable
1.8V/3.3V I/O which is detectable by the presence of a pull-down on the
SD3_VSELECT pin we remove that property to enable support in the kernel.Additionally we add SD3_VSELECT to the pinmux for clarity (even though U-Boot
does not currently support UHS-I modes requiring 1.8V I/O).Signed-off-by: Tim Harvey
-
Signed-off-by: Tim Harvey
-
Removed several EEPROM bit dependencies:
- for dt aliases that don't exist and thus don't ever do anything
(pcie,lvds1,uart*,vpu,csi*,hdmi_in,hdmi_out,cvbs_in,cvbs_out,gps)
- for features that don't effect bus ordering or have no detrimental affect
if erroneously enabled when not present (ahci,nand,i2c*)
- for features that have little to no impact on being erroneously enabled
but high impact if erroneously disabled (can*, spi*)
- for features that have an high adverse affect of not being set when they
should and no adverse affect of being set when they
shouldn't (ipu*).Removing these means the following:
- these no longer are supported with the econfig command
- these no longer affect the device-tree in any waySigned-off-by: Tim Harvey
-
The MSATA feature is a board-specific feature on Gateworks Ventana boards.
In most cases a 2:1 mux will steer either PCIe or SATA to a miniPCIe socket
through an MSATA_EN gpio. In these such cases assign the gpio in the board
specific struct and use its presence to determine if we default the GPIO to
PCIe and if we later steer it according to hwconfig.Signed-off-by: Tim Harvey
-
Most Ventana boards have a connector with off-board digital-I/O signals
including some that can be pinmuxed as either a PWM or a GPIO. The hwconfig
env variable is used to configure these and they will be pinmuxed according
to this configuration in the bootloader.This patch adds a device-tree fixup that will enable the pwm controller
nodes appropriately for digital-I/O's that are configured as pwm via hwconfig
so that the pin can be used with the Linux kernel /sys/class/pwm API.Signed-off-by: Tim Harvey
-
Signed-off-by: Tim Harvey
-
Calling request_gpio to register bklt_gpio with the GPIO driver had no effect
in setup_display called from early board init (although pinmuxing it and
configuring it as output-low does do what it should). Therefore move the
request_gpio later in enable_lvds so that its registered for use by the
gpio command if LVDS is actually enabled.Signed-off-by: Tim Harvey
-
Signed-off-by: Tim Harvey
-
The GSC Temperature sensor is a 2's complement value - adjust accordingly
for negative temperatures.Signed-off-by: Tim Harvey
-
The Gateworks System Controller on Ventana boards has the ability to
disable the board's primary power supply until the RTC hits a specific
time. When sleeping a button-down event on the GSC user pushbutton will
wake the board before it's wake time has been reached. This feature is
referred to as GSC sleep.Add a command to invoke sleep mode for a specified number of seconds.
Signed-off-by: Tim Harvey
-
Signed-off-by: Tim Harvey
-
If not booting Falcon mode, leave the boot watchdog enabled as a work-around
for other non-resolved bootloader hangs.Signed-off-by: Tim Harvey
28 May, 2016
1 commit
-
Since CONFIG_OF_BOARD_SETUP depends on CONFIG_OF_LIBFDT:
config OF_BOARD_SETUP
bool "Set up board-specific details in device tree before boot"
depends on OF_LIBFDT
...remove superfluous tests of CONFIG_OF_LIBFDT when testing for
CONFIG_OF_BOARD_SETUP.Signed-off-by: Robert P. J. Day
[trini: Typo fix: s/ifdefi/ifdef/]
Signed-off-by: Tom Rini
24 May, 2016
2 commits
-
NAND+MMC env support costs 12KB in the SPL which is fairly expensive just
for the ability to specify whether or not to boot to uboot or directly
to linux. The Ventana boards have plenty of EEPROM storage so we will use
a byte there to signify if we should boot to the bootloader or to the OS.Signed-off-by: Tim Harvey
-
remove dependence on getenv() by using global board info struct for model.
Signed-off-by: Tim Harvey
06 Feb, 2016
1 commit
-
Correct spelling of "U-Boot" shall be used in all written text
(documentation, comments in source files etc.).Signed-off-by: Bin Meng
Reviewed-by: Heiko Schocher
Reviewed-by: Simon Glass
Reviewed-by: Minkyu Kang
01 Dec, 2015
1 commit
-
The following patch changed the PFUZE100 swbst register bit definitions
and broke PMIC configuration on multiple boards, at least on the novena
and gw_ventana. This patch fixes it.commit 8fa46350a4c7dca7710362f6c871098557b934ad
Author: Peng Fan
Date: Fri Aug 7 16:43:45 2015 +0800power: regulator: add pfuze100 support
Signed-off-by: Marek Vasut
Cc: Fabio Estevam
Cc: Peng Fan
Cc: Przemyslaw Marczak
Cc: Stefano Babic
Cc: Tim Harvey
Cc: Vagrant Cascadian
Reviewed-by: Przemyslaw Marczak
Tested-by: Vagrant Cascadian
Reviewed-by: Peng Fan
Acked-by: Tim Harvey
13 Nov, 2015
1 commit
-
There is really no need to provide an empty reset_cpu() implementation,
so just remove it.Cc: Tim Harvey
Signed-off-by: Fabio Estevam
Acked-by: Tim Harvey
13 Sep, 2015
1 commit
-
Remove duplicated SYS_SOC Kconfig entry from board Kconfig,
because we have this entry in arch/arm/cpu/armv7/mx6/Kconfig.Signed-off-by: Peng Fan
Cc: Stefano Babic
Cc: Heiko Schocher
Cc: Christian Gmeiner
Cc: Stefan Roese
Cc: Troy Kisky
Cc: Nikita Kiryanov
Cc: "Eric Bénard"
Cc: Fabio Estevam
Cc: Tim Harvey
Cc: Marek Vasut
Cc: Markus Niebel
Cc: Otavio Salvador
Acked-by: Stefan Roese
Acked-by: Marek Vasut
Acked-by: Christian Gmeiner
Acked-by: Markus Niebel
Acked-by: Troy Kisky
Acked-by: Igor Grinberg
02 Sep, 2015
1 commit
-
To i.MX6, DDR3 and LPDDR2 is supported, so rename function mx6_dram_cfg
to mx6_ddr3_cfg and the original mx6_dram_cfg function only is a wrapper.
The new reimplemented function mx6_dram_cfg only invokes mx6_ddr3_cfg
when ddr_type is for DDR3. Later we can use ddr_type to initialize
MMDC for LPDDR2.Initialize ddr_type for different boards which enable SPL.
Signed-off-by: Peng Fan
Cc: Stefano Babic
Cc: Tim Harvey
Cc: Stefan Roese
Cc: Fabio Estevam
Reviewed-by: Stefan Roese
01 Jun, 2015
5 commits
-
This avoids an error message on NAND-less boards.
Signed-off-by: Tim Harvey
-
If the EEPROM could not be read or is corrupt we always want to hang.
Note that an error message will have been displayed by read_eeprom in this
case.Signed-off-by: Tim Harvey
-
The fdt_file1 and fdt_file2 vars provide fallbacks for the fdt file loading
script. There is no need to allow the user to override these as if they
want to specify the fdt, they should do so in the first attempt which is
the fdt_file var.Signed-off-by: Tim Harvey
-
We want to model env var to always reflect what was in the EEPROM. There
is no point in allowing a user to override this.Signed-off-by: Tim Harvey
-
- Added iomux for CAN_STBY and RS484_TEN (GW52xx/GW53xx/GW54xx/GW551x)
- Moved iomux of USBHUB_RST# out of board_ehci_hcd_init so that it is
done regardless of USB being initialized in bootloader
- Added usb_sel iomux/hwconfig for GW552x
- Fixed mezzanine DIO for GW54xx
- Fixed PANLEDR# for GW54xx
- Fixed dio iomux/hwconfig for GW552x
- Fixed dio iomux for GW551x
- removed redundant #defineSigned-off-by: Tim Harvey
26 May, 2015
2 commits
-
Signed-off-by: Tim Harvey
-
Signed-off-by: Tim Harvey
22 May, 2015
1 commit
-
Falcon mode entails the SPL booting the OS directly instead of U-Boot.
Signed-off-by: Tim Harvey
19 May, 2015
1 commit
-
We need to do any PMIC setup in the SPL if we are to bypass U-Boot for
falcon mode.Signed-off-by: Tim Harvey