Commit Graph

52154 Commits

Author SHA1 Message Date
Takumi Sueda
df5fcd4f35 sharp: add pwsh6 2020-11-01 21:29:37 +09:00
Takumi Sueda
cf10fef93e sharp: add pwsh5 2020-11-01 21:24:27 +09:00
Takumi Sueda
525c76e97f sharp: add pwsh4 2020-11-01 21:18:25 +09:00
Takumi Sueda
8d9c086c92 pwsh1: update logo 2020-11-01 21:09:11 +09:00
Takumi Sueda
88d58d2b8c sharp: add pwsh3 2020-11-01 21:09:00 +09:00
Takumi Sueda
9dad458115 sharp: variable screen resolution + flip with GS flag 2020-11-01 21:08:08 +09:00
Takumi Sueda
04ddb886f7 sharp: add pwsh2 2020-11-01 20:20:24 +09:00
Takumi Sueda
bab7c8b9be
Merge pull request #3 from brain-hackers/feature/enable-video
Video再有効化, コンソール表示, etc.
2020-11-01 06:45:47 +09:00
Takumi Sueda
692ed01281 pwsh1: add BMP logo 2020-11-01 06:39:48 +09:00
Takumi Sueda
fb8242efa1 video: add 6x11 font copied from Linux 2020-11-01 03:34:29 +09:00
Takumi Sueda
2b77358b0a pwsh1: show console on the LCD 2020-11-01 03:33:57 +09:00
Takumi Sueda
9e5bd9e566 pwsh1: enable video 2020-11-01 03:33:30 +09:00
Takumi Sueda
188b1ac67f
Merge pull request #2 from brain-hackers/fix-fb-dma
Framebuffer の DMA を起動直前に無効化
2020-11-01 03:32:01 +09:00
Takumi Sueda
29d5896390 sharp: disable LCDIF DMA just before jumping to Linux 2020-11-01 03:09:12 +09:00
Takumi Sueda
43fb4deb8c dma: export mxs_dma_disable 2020-11-01 03:08:05 +09:00
Takumi Sueda
260d3d81a9 pwsh1: clear DDR2 flag to go into LPDDR mode 2020-10-26 04:14:53 +09:00
Takumi Sueda
94863c1145 pwsh1: specify DRAM regs in per-board impl 2020-10-26 03:43:50 +09:00
Takumi Sueda
bb1c0bb07e sharp: format 2020-10-26 03:43:41 +09:00
Takumi Sueda
5972e558a4 sharp: split LCD init code into board-specific part and common part 2020-10-26 03:43:31 +09:00
Takumi Sueda
5a2c6ce1d2 pwsh1: define missing VIDEO_MXS 2020-10-26 03:43:20 +09:00
Takumi Sueda
a37aee38f3 pwsh1: get rid of unused lines 2020-10-26 03:43:09 +09:00
Takumi Sueda
f1a466a2de pwsh1: add board 2020-10-26 03:42:59 +09:00
Takumi Sueda
ad725c2030 mxs: place U-Boot to where EBOOT looks at 2020-10-26 03:30:41 +09:00
Takumi Sueda
6eec07125f mxs: enter U-Boot without info from SPL 2020-10-26 03:30:09 +09:00
Takumi Sueda
4e00d442ee arm: imx: implement PWM regs 2020-10-26 03:27:48 +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