Commit Graph

52146 Commits

Author SHA1 Message Date
Takumi Sueda
c0d12b4547 Enter U-Boot without info from SPL 2020-10-12 06:11:32 +09:00
Takumi Sueda
c2eed72518 Specify console 2020-09-24 22:12:37 +09:00
Takumi Sueda
6d1bec8358 Update env 2020-08-24 06:41:57 +09:00
Takumi Sueda
da0e61df63 Implement LCD init 2020-08-24 06:41:48 +09:00
Takumi Sueda
4b0af378b9 Update IOMUX to control LCD 2020-08-24 05:45:52 +09:00
Takumi Sueda
d3de45d4e2 Implement PWM regs 2020-08-24 03:13:38 +09:00
Takumi Sueda
d4eaafca05 Enable LCD backlight PWM 2020-05-16 04:18:59 +09:00
Takumi Sueda
26a1ad1bae Set appropriate DUART and I2C 2020-05-16 04:18:31 +09:00
Takumi Sueda
abd119ea30 Simplify defconfig 2020-05-16 01:33:39 +09:00
Takumi Sueda
f0b3eff363 Update default env 2020-05-15 20:40:53 +09:00
Takumi Sueda
45a66fbd87 Decrease DRAM 1GB -> 128MB 2020-05-15 20:39:35 +09:00
Takumi Sueda
aea5cbbf95 Init both eMMC and SD + turn on SD power 2020-05-15 20:38:06 +09:00
Takumi Sueda
b65b3c81ce Omit WP and CD 2020-05-15 20:35:45 +09:00
Takumi Sueda
b51beddd92 Enable SSP1 clock 2020-05-15 20:35:26 +09:00
Takumi Sueda
68053d43b6 Update IOMUX 2020-05-15 20:34:28 +09:00
Takumi Sueda
23a45acb33 Update DRAM configuration 2020-05-15 20:33:42 +09:00
Takumi Sueda
dcbee452e2 Show DRAM size in early stage 2020-05-15 20:33:22 +09:00
Fabio Estevam
7cc38fda11 pico-imx7d: Add USB Host support
USB OTG2 port is connected to the USB host connector.

Add support for it.

Signed-off-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2018-10-04 09:56:23 -03:00
Fabio Estevam
ea928e300d pico-imx7d: Make SPL binary fit into 64kB
Currently SPL binary is larger than 64kB, which is larger than
CONFIG_SPL_MAX_SIZE defined in imx7_spl.h.

This causes boot failure on the pico-mx7 targets.

Remove CONFIG_SPL_LIBDISK_SUPPORT option for now, so that the SPL
binary can fit into the 64kB range.

Signed-off-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2018-10-04 09:56:16 -03:00
Otavio Salvador
431dd6fedc pico-imx6ul, pico-imx7d: Enable USB and PXE boot support
This allow the use of a USB storage or PXE network booting as
fallback, allowing for example for manufacturing installation of eMMC
storage in an easy way.

Reviewed-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2018-10-04 09:56:04 -03:00
Otavio Salvador
50d117dcfb pico-imx6ul, pico-imx7d: Use eMMC user partition by default
After discussing with TechNexion about how its default setting, it is
better to install on the eMMC user partition by default, when using
DFU, so it works out of box for majority of users.

Reviewed-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2018-10-04 09:55:59 -03:00
Otavio Salvador
39d3d57df9 pico-imx7d: Add a new defconfig with PICO-Hobbit selected
This adds a new defconfig which pre-selects the PICO-Hobbit baseboard
allowing a completely non-interactive boot process.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2018-10-04 09:55:57 -03:00
Otavio Salvador
be100b0cde pico-imx7d: Add PICO-Hobbit baseboard support
This adds the device tree to the DFU and bootmenu environment setting.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2018-10-04 09:55:55 -03:00
Otavio Salvador
d1fe1c3e5b pico-imx7d: Fix TechNexion spelling on MAINTAINERS file
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2018-10-04 09:55:52 -03:00
Otavio Salvador
acc20e9be8 pico-imx6ul: Add a new defconfig with PICO-Pi selected
This adds a new defconfig which pre-selects the PICO-Pi baseboard
allowing a completely non-interactive boot process.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2018-10-04 09:55:50 -03:00
Otavio Salvador
d7e13e0d6c pico-imx6ul: Add PICO-Pi baseboard support
This adds the device tree to the DFU and bootmenu environment setting.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2018-10-04 09:55:48 -03:00
Otavio Salvador
8464c3f56f pico-imx6ul: Fix TechNexion spelling on MAINTAINERS file
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2018-10-04 09:55:44 -03:00
Fabio Estevam
62f2841dc4 pico-imx6ul: Add instructions for booting in Falcon mode
Falcon mode allows the SPL to load and jump directly to the kernel,
without loading U-Boot proper.

Add detailed step by step on how to use Falcon mode on pico-imx6ul.

Signed-off-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2018-09-15 10:57:17 -03:00
Otavio Salvador
a803c01c03 pico-imx6ul: Add Falcon mode support
Falcon mode boots the kernel directly from SPL, without loading
the full U-Boot.

As pico-imx6ul does not have a GPIO for selecting Falcon versus normal
mode, enter in Falcon mode when the customer selects the
CONFIG_SPL_OS_BOOT option in menuconfig.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2018-09-15 10:57:17 -03:00
Fabio Estevam
3e5f58a2a4 wandboard: README: Include the mx6qp variant in the list
The mx6qp Wandboard variant is also supported, so add it to the list.

Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
2018-09-15 10:57:17 -03:00
Heiko Schocher
28b8458749 imx: imx6ull: fix pinmux input_val for uart5 rx pin
just try to bring up an imx6ull board with console
on uart5 and found, that input_val for pin
MX6UL_PAD_UART5_RX_DATA__UART5_DCE_RX is 7 and
not 5 on imx6ull.

With this patch rx works now.

Signed-off-by: Heiko Schocher <hs@denx.de>
2018-09-14 15:38:42 -03:00
Otavio Salvador
1bc802f9cc pico-imx6ul: Remove CONFIG_FSL_USDHC from .h
The CONFIG_FSL_USDHC is defined inside "mx6_common.h", which is
already included in this file.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
2018-09-14 15:38:42 -03:00
Otavio Salvador
cc97092f7c pico-imx6ul: Add new pico-hobbit config
The new config skips the boot menu which asks which board is in
use. This is useful to allow direct booting of image without user
iteration.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2018-09-14 15:38:42 -03:00
Otavio Salvador
11aaa94cd8 pico-imx6ul: Sync README with pico-imx7d
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2018-09-14 15:38:42 -03:00
Otavio Salvador
52723c960f pico-imx6ul: Improve default DFU settings
This rework the DFU settings so it supports the SPL and U-Boot image,
as well as the single partition layout we are using by default.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2018-09-14 15:38:42 -03:00
Otavio Salvador
c90fa9c1a2 pico-imx6ul: Add bootmenu to choose the baseboard
Currently the baseboards do not offer a way to autodetect which one is
in use, so we ask the user if no value has been set.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2018-09-14 15:38:42 -03:00
Otavio Salvador
2141bc7952 pico-imx6ul: Sync defconfig with new changes
Due the changes in previous commits, we need to resync the defconfig
to reduce noise in next commits.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2018-09-14 15:38:42 -03:00
Fabio Estevam
9ff1d5305d pico-imx6ul: Update the README file
Update the README file to take into accound the switch to SPL.

Signed-off-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2018-09-14 15:38:42 -03:00
Fabio Estevam
2b0e81461c pico-imx6ul: Add support for the 512MB module
Currently only the module with 256MB of RAM is supported.

Add support for the 512MB of RAM variant as well.

Signed-off-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2018-09-14 15:38:42 -03:00
Fabio Estevam
e45ab0b309 pico-imx6ul: Add bmode support
The 'bmode' command is helpful for switching the boot media.

In the case of pico-imx6ul there are two possible boot media:
eMMC or USB.

To boot from eMMC:

=> bmode emmc

To boot from USB (via Serial Download Protocol):

=> bmode usb

Signed-off-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2018-09-14 15:38:42 -03:00
Fabio Estevam
ad3c1b13d8 pico-imx6ul: Add fastboot support
fastboot tool is a convenient way to flash the eMMC, so
add support for it.

Examples of usages:

On the pico-imx6ul U-Boot prompt:

=> fastboot 0

On the Linux PC connected via USB:

1. Retrieving the U-Boot version

$ sudo fastboot getvar bootloader-version -i 0x0525
bootloader-version: U-Boot 2018.07-rc2-00130-g0881835-dirty
finished. total time: 0.000s

2. Resetting the board

$ sudo fastboot reboot -i 0x0525

(this causes the pico-imx6ul to reboot)

Signed-off-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2018-09-14 15:38:42 -03:00
Fabio Estevam
fa2c10bbac pico-imx6ul: Convert to SPL
There are two versions of imx6ul pico SOMs: one with 256MB and another
one with 512MB of RAM.

Convert to SPL so that both versions can be supported. This patch
doesn't rework the clock initialization to avoid changing the behavior
in this same patch, so it will be cleaned up in future.

Currently only the 256MB is tested/supported.

Signed-off-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2018-09-14 15:38:42 -03:00
Fabio Estevam
b143e3f027 pico-imx6ul: Convert to distro config
Instead of keeping a custom environment, use a more generic approach
by switching to distro config.

Signed-off-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2018-09-14 15:38:42 -03:00
Dan Riegsecker
a9c45f15b2 mx6sabre_common: Allow the videoargs to be passed to bootargs
The NULL after "rootwait rw" was not allowing the videoargs to be
passed to the bootargs via the mmcargs.

Signed-off-by: Dan Riegsecker <1baldgeek@gmail.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2018-09-14 15:37:51 -03:00
Otavio Salvador
b584b845b1 mx25pdk: Change root to use a single partition layout
This allow for use of wic images as generated by the wic tool inside
the OpenEmbedded.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2018-09-14 15:37:51 -03:00
Fabio Estevam
146e490814 mx6sabre_common: Dynamically change the video output
Use the 'hdmidetect' command in U-boot to load the appropriate
video arguments. If HDMI is connected during boot then make HDMI
as the primary framebuffer, otherwise let LVDS be the primary framebuffer.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2018-09-14 15:37:51 -03:00
Nikolay Dimitrov
a278950282 mx6sabresd: Enable video interfaces in bootargs
Generate kernel video bootargs for sabresd, based on a list of needed video
interfaces ("video_interfaces" U-Boot env-var). The order of initialization
and video settings can be fully customized.

Signed-off-by: Nikolay Dimitrov <picmaster@mail.bg>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2018-09-14 15:37:51 -03:00
Otavio Salvador
77cac8a16e mx6sabresd: Use LDO dtb file until LDO bypass support is added
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2018-09-14 15:37:51 -03:00
Otavio Salvador
be4d1c4100 mx6slevk: Use LDO dtb file until LDO bypass support is added
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2018-09-14 15:37:51 -03:00
Tom Rini
f88b6facb8 Prepare v2018.09
Signed-off-by: Tom Rini <trini@konsulko.com>
2018-09-10 17:46:42 -04:00