Ye Li [Thu, 21 Mar 2019 08:21:29 +0000 (01:21 -0700)]
MLK-17821-2 imx8: clock: Add cdns3 and usbotg clock enable and disable
Implemented the clock enable and disable interfaces for CDNS3 USB
driver and EHCI-MX6 USB otg driver.
Signed-off-by: Ye Li <ye.li@nxp.com>
Acked-by: Peter Chen <peter.chen@nxp.com>
(cherry picked from commit
2f0dc4c503d8ac831fb809ec124e79712defae77)
Ye Li [Fri, 16 Mar 2018 07:03:40 +0000 (00:03 -0700)]
MLK-17821-1 USB: gadget: Add the cadence USB3 gadget driver
Porting the cadence USB3 (CDNS3) driver from kernel to u-boot. We only support
the gadget (device mode), while the host mode is not supported. Users remains
to use xhci-imx8 driver for host mode.
Some changes in the CDNS3 driver porting:
1. Add match_ep call back to usb_gadget_ops. The CDNS3 gadget driver replies
on this operation to bind the usb_ep/usb_ss_ep with the endpoint descriptor
when function layer uses usb_ep_autoconfig to add endpoint descriptors to gadget.
So that CDNS3 driver can know the EP information and configure the EP once the
set configuration request is received.
2. U-boot does not have CMA, so it won't allocate uncached memory. Need to flush
TRB and its DMA buffer before prime to usb controller and after complete transfer.
3. In core.c, we add functions to hook with u-boot. It needs uplayer like
to pass the register base address of each part of the USB controller.
4. Force the CDNS3 gadget max speed to HS. The SuperSpeed is not supported by u-boot,
so disable it in gadget driver. A configuration USB_CDNS3_GADGET_FORCE_HIGHSPEED is
selected.
5. Added gadget_is_cdns3 checking to provide bcdUSB value in device descriptor.
6. Moved some new fields in usb_ep structure to usb_ss_ep, since u-boot does not have them.
7. Remove host part codes as it is not supported by this driver.
Signed-off-by: Ye Li <ye.li@nxp.com>
Acked-by: Peter Chen <peter.chen@nxp.com>
(cherry picked from commit
70514bd095ff9a94e9a523845641381486284257)
(cherry picked from commit
db2cc879f7e53ead1e3615c1d61ba0b571e81dfa)
Ye Li [Thu, 19 Apr 2018 09:19:13 +0000 (02:19 -0700)]
MLK-18161-16 fsl_esdhc: Update esdhc driver to support HS400 ES mode
Update for HS400 ES and enable iMX8QM/QXP for HS400 and HS400 ES.
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
0768f229e824120c53d40a1c0d062c1f49384100)
Ye Li [Thu, 19 Apr 2018 09:18:17 +0000 (02:18 -0700)]
MLK-18161-15 mmc: Add HS400 Enhanced Strobe mode support
The eMMC 5.1 supports the HS400 Enhanced Strobe mode, add this
support to mmc.
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
0972a7219faefcae27e7c39a9c84f46145148913)
zhang sanshan [Thu, 16 Nov 2017 07:38:11 +0000 (15:38 +0800)]
MA-10633 [Android] enlarge the timeout for waiting DATA0
600ms is not enough to erase erase_grp_size for some sdcard.
enlarge to to 1200ms.
Change-Id: Ic980794fa3064f92b479b87380e694f853f83c6a
Signed-off-by: zhang sanshan <sanshan.zhang@nxp.com>
(cherry picked from commit
4a1db2cd700ea434e25c0692c545e571f5841a00)
(cherry picked from commit
3f4f3e0519c8415409d6186a7e775c9556864001)
Ye Li [Thu, 19 Apr 2018 04:33:22 +0000 (21:33 -0700)]
MLK-17239 mmc: fsl_esdhc: fix sd/mmc ddr mode clock setting issue
When sd/mmc work at DDR mode, like HS400/HS400ES/DDR52/DDR50 mode,
the actual clock rate is just half of the expected clock.
This patch set the DDR_EN bit first for DDR mode, hardware divide
the usdhc clock automatically, then follow the original sdr clock
setting method.
Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
2a8a0cf0f5d2fcb06d217e3d026219532fed5eb7)
Ye Li [Thu, 21 Mar 2019 07:45:13 +0000 (00:45 -0700)]
MLK-21834-2 imx8qxp_mek: Update board codes and config
Enable PCIE, ENET no-DM support, video, USB OTG and CDNS USB3,
M4 bootaux, fuse, memtest, thermal.
Signed-off-by: Ye Li <ye.li@nxp.com>
Ye Li [Thu, 3 Jan 2019 09:06:35 +0000 (01:06 -0800)]
MLK-20559-7 tcpc: Bypass the tcpc operations for SPL
The SPL won't use host mode, and the tcpc is default set as device mode.
So we don't need to access tcpc in SPL.
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
69dfae092f22308765c66a072f82c5b67aa8d72e)
Ye Li [Wed, 30 May 2018 03:53:30 +0000 (20:53 -0700)]
MLK-18437-4 tcpc: Enable DRP when setting DFP or UFP
Enable the DRP, so the tcpc can try to toggle the role. This helps to
determine the current role when we don't know whether device or host is
connected.
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
9617e630151731aa42cbad95c70e7f3526cf242e)
(cherry picked from commit
ee4a1d71b7b7cd9529f8a13b170a110949b8ef0c)
Ye Li [Wed, 30 May 2018 03:37:58 +0000 (20:37 -0700)]
MLK-18437-2 tcpc: Add external PD switch call back
Introduce a callback function to setup external PD switch. When PD
process is enabled, we call this function only when SINK_VBUS is enabled
to avoid system power shut down.
When PD process is disabled, since the tcpc and external PD switch may
still in dead battery mode, set them to exit dead battery.
This patch is used to fix two issues on iMX8MM EVK:
1. When power on the board, by default the PTN5110 and NX20P3483 will
enter dead battery mode. But for some cases, like timing issue for PTN5110
and NX20P3483 (refer rework instructions CQ6), and when dual port are plugin
power sources. There are possibility the PTN5110 does not enter dead battery mode,
but NX20P3483 is in dead battery. So for the USB2 primary power port, we has to check
SINK_VBUS before NX20P3483 exits dead battery, otherwise the system power will shut down
2. For the USB1 port, when dual port are plugin power sources. We need to set both
PTN5110 and NX20P3483 exit dead battery. Otherwise this port can't work for normal
host/device mode.
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
30004c6b35a5f0b8460f534d324f9bde01325373)
(cherry picked from commit
baf8c71cb56ea3653948e7441a8005cb2b2e2848)
Ye Li [Mon, 23 Apr 2018 06:13:28 +0000 (23:13 -0700)]
MLK-18289-1 tcpc: Update driver to support two ports logic
On iMX8MM EVK, there are two USB ports. Both can support USB PD, but
with USB2 has HW priority.
So we Change tcpc_pd_sink_check_charging to public function and
use it to know whether the USB tcpc is power charging.
Additional, add disable_pd to init config. So we can disable PD session
for uncharged or lower priority port.
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
867b0263d60bb5385b09cfa21d6f620bea855075)
(cherry picked from commit
2ce601125874bbf32498937495070f32951d5480)
Ye Li [Tue, 10 Apr 2018 13:00:26 +0000 (06:00 -0700)]
MLK-18160 tcpc: Add driver for USB typec port controller (TCPC)
Add an simple driver for USB typec port controller in freescale common codes.
The functionalities in this driver include:
1. Support to set UFP mode, when running as device mode, the
board level codes can use it to configure the TCPC port to UFP mode.
2. Support to set DFP mode for USB host.
3. Support PD charge with setup PD connection and send/receive PD messages
to negotiate a proper voltage and current.
4. Support power source with 2 stages of capability. Some power delivery source
send the source capability by 2 stages: 1st stage send the source capability
message with only basic 5V PDO, after the 5V power session setup, 2nd stage
it will send full source capabilities with all PDOs it can support, in this
case, we should go on to process the following PD source cap to have a new
power session setup.
Signed-off-by: Li Jun <jun.li@nxp.com>
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
b81241ee369708015008c45f9fb7ed6c1a0b5da9)
Ye Li [Wed, 20 Mar 2019 09:59:44 +0000 (02:59 -0700)]
MLK-21834-1 DTS: Update iMX8QXP MEK board DTS
Add i2c alias for i2c mux bus, add mipi lvds i2c nodes, usbotg1, usbotg3,
fec, flexspi, and update iomux.
Signed-off-by: Ye Li <ye.li@nxp.com>
Ye Li [Tue, 17 Apr 2018 07:25:42 +0000 (00:25 -0700)]
MLK-18161-1 imx8qm/qxp: Print the CPU temperature
Using SC thermal sensor to get temperature and print the CPU
temperature at booting.
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
3a4f3e43286014110da0d3785a868cb4b25fbc83)
Ye Li [Wed, 20 Mar 2019 08:42:06 +0000 (01:42 -0700)]
MLK-21833 imx8: Update CPU driver for each core name
Since 8QM has two cluster A53 and A72, so we can't use current core name
for all cores. Change to use compatible string for the core name
Signed-off-by: Ye Li <ye.li@nxp.com>
Ye Li [Wed, 20 Mar 2019 08:19:11 +0000 (01:19 -0700)]
MLK-16208-1 thermal: Add driver to support i.MX8QM/QXP CPU thermal sensor
Add the DM thermal driver for i.MX8QM and QXP. The driver depends on DTB thermal
sensor nodes. Will create device for each thermal in thermal-zones. User can
use the thermal name to get the device from UCLASS_THERMAL.
The driver flag is set to DM_FLAG_PRE_RELOC, to support run it at early stage,
need add "u-boot,dm-pre-reloc" property to the thermal node.
Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit
98005e0b5a46bd17160fac18be2374c15dba54f9)
(cherry picked from commit
0873cbf1aa61d9398b66c9e073ca8434717de131)
Ye Li [Wed, 20 Mar 2019 08:18:34 +0000 (01:18 -0700)]
MLK-21831-2 scu_api: Add sc_misc_get_temp API
Signed-off-by: Ye Li <ye.li@nxp.com>
Ye Li [Mon, 3 Jul 2017 08:58:22 +0000 (03:58 -0500)]
MLK-15324-3 imx8: Add LVDS and DC setup common functions
Add common functions for LVDS/DC setup, video framebuffer init/disable,
LVDS to HDMI card settings, etc. Refactor it from video_imxdpuv1.c.
1. Add power, clocks, PLL relevant setup for LVDS and DC.
2. Configure the LVDS and its PHY settings for the display format and pixel link.
3. Setup the LVDS to HDMI card.
4. Implement the video_hw_init by calling DC driver API to output data to
specified display panel.
Signed-off-by: Oliver Brown <oliver.brown@nxp.com>
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
9317f7ea4d976335a633f7056bbac1f77b01247a)
(cherry picked from commit
11dddc05ba174a4a31810efc0b860d24d385de97)
Ye Li [Tue, 23 Feb 2016 07:19:39 +0000 (15:19 +0800)]
MLK-12437-2 Video: Update the common board_video_skip to support MXS LCD
Update the board_video_skip to use CONFIG_VIDEO_MXS for LCD display support.
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
d6d0265b09e66c576ab4c01841166415f834a1ff)
(cherry picked from commit
8fa188c1466e6a74536f1b46fff88bf9b08b0d78)
(cherry picked from commit
f56fdb7e6ba51eef3dd7b8c46948ecdad2e17c75)
Ye.Li [Thu, 12 Jun 2014 09:10:32 +0000 (17:10 +0800)]
ENGR00315894-70 iMX6SX:Video Update MXS LCDIF driver
Add a new interface "mxs_lcd_panel_setup" to setup fb parameters and
specifies the LCDIF controller for multiple controllers of iMX6SX.
Pass fb parameters via "videomode" env remains work if the new interface
is not called before video initialization.
Modify LCDIF clock interface "mxs_set_lcdclk" to support multiple
LCDIF controllers on iMX6SX.
Signed-off-by: Ye.Li <B37916@freescale.com>
Signed-off-by: Peng Fan <Peng.Fan@freescale.com>
(cherry picked from commit
d7f49b9378547c3a57b96bcdb907fc44616beb3d)
(cherry picked from commit
e1343191b9de227c582847e7eeb5ce9238be0754)
(cherry picked from commit
9632ebeccc34d663e21bd19f2fe62de51947296e)
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
948c5c95e87a47bb3a80c8e67b67fe70e1e4a569)
Ye Li [Mon, 3 Jul 2017 08:54:49 +0000 (03:54 -0500)]
MLK-15324-2 video: imxdpuv1: Add DPU driver for i.MX8
Adding new IMXDPUV1 (aka Seeris, Iris-lite) display control driver.
Signed-off-by: Oliver Brown <oliver.brown@nxp.com>
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
43541cba14f851c6eebaa84becd42967f94a9cfd)
(cherry picked from commit
02b99a8ce3ed8f7ab1798b946c10b614ae386924)
Ye Li [Mon, 29 Aug 2016 05:51:01 +0000 (13:51 +0800)]
MLK-15324-1 video: cfb_console: Fix 64 bits support problem
There are some integer to pointer convert. To support 64 bits system,
change the unsigned int to unsigned long.
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
c3b5c2df452eac82a970ba304e94550be8e27335)
(cherry picked from commit
8a2330424ce8dff9ba9e51ccf74fa600ea93aeb1)
Peter Chen [Wed, 7 Jun 2017 09:20:06 +0000 (17:20 +0800)]
MLK-15026 usb: host: xhci-imx8: add imx8 USB3 driver
It is for imx8qm and imx8qxp, and the cadence IP is in it.
Both DM and Non-DM are supported in this driver. The DM support
only probes the USB3 node, but won't parse any properties from node in DTS.
The registers address are still hard coded, that share with non-DM codes.
The DM driver will enable the power of USB3 controller and USB3 PHY. But
for Non-DM driver, users need to power up them in board level codes.
Signed-off-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
952d331f7b12ba278d4f6a68b0be2b1e6d1b31b8)
Ye Li [Wed, 9 Aug 2017 09:54:53 +0000 (04:54 -0500)]
MLK-16175-1 usb: ehci-mx6: Turn on the power domain of USB PHY
Since there is no uclass for USB PHY. The device won't be setup for the USB PHY
node in DTB. And its associated power domain device won't be turned on neither
by DM framework.
This patch modifies the ehci-mx6 driver to enable the power domain device before
access the USB PHY. This is only for DM driver. For non-DM part, users still
need to power on the USB PHY in boards/SoC codes.
Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit
3c59c8ea95d401d06736c68c186aec80e214bee8)
(cherry picked from commit
79122202a4f748b5da654ed6e7ce6a4597eac747)
Ye Li [Tue, 1 Aug 2017 10:08:18 +0000 (05:08 -0500)]
MLK-16118-7 spi: flexspi: Add init_clk_fspi function to setup clock
When the power domain driver is enabled, we need to enable clocks after power
domain on. The clock settings in board level codes must be removed, needs to
set them when the device is probed. Add this weak function in flexspi driver,
that SoC codes can implement the clock settings.
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
a4d334e70839021a50dca2ad4ad98ecee16081f9)
(cherry picked from commit
821d6b7b06cba244ac872a7b3af9ee269f464008)
Ye Li [Tue, 1 Aug 2017 10:06:25 +0000 (05:06 -0500)]
MLK-16118-6 net: fec_mxc: Add the init_clk_fec function for non-DM driver
When the power domain driver is enabled, we need to enable clocks after power
domain on. So the clock settings can't set in board_init, needs to set them
when the device is probed. Add this weak function in driver, that SoC codes
can implement the clock settings.
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
c0e4ac66196b20f363f711fb18e40b70e3be9240)
(cherry picked from commit
187ea376980be12e69c45bd6e62c7ca1559046f6)
Ye Li [Wed, 20 Mar 2019 03:09:54 +0000 (20:09 -0700)]
MLK-16094-1 pinctrl-imx8: Add compatible string for i.MX8QM
Update pinctrl driver for i.MX8 platform (QM/QXP) to add compatible string
for iMX8QM. So the driver can parse the iomuxc settings from iMX8QM DTB
and set them through IPC to SCU.
Signed-off-by: Ye Li <ye.li@nxp.com>
Ye Li [Tue, 6 Jun 2017 04:03:24 +0000 (23:03 -0500)]
MLK-15013-1 ehci-mx6: Add i.MX8 OTG controller support
The i.MX8 has two USB controllers: USBOH and USB3. The USBOH reuses
previous i.MX6/7. It has same PHY IP as i.MX7ULP but NC registers
are same as i.MX7D. So add its support in ehci-mx6 driver.
Also the driver is updated to remove build warning for 64 bits CPU.
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
cf0dd3af4c1d6d96e7394da46258e19cf281c6f0)
(cherry picked from commit
f4ebe53335c1df97ae3f00dbc517db4004e5aba0)
Ye Li [Thu, 16 Mar 2017 09:00:59 +0000 (17:00 +0800)]
MLK-14445-5 ehci-mx6: Add OTG ID detecting by GPIO
The i.MX7ulp EVK board uses GPIO to detect ID for USB OTG0,
but when using DM USB driver, it is hard coded to use OTG ID pin.
Add a board override function that when extcon property is provided,
the function can check the GPIO to get ID.
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
8382781a59fbae1d8ab797d64761136277e291d1)
(cherry picked from commit
2afd266e19b78952d5ea402b7457a47210b7670d)
Ye Li [Thu, 17 Nov 2016 08:54:56 +0000 (16:54 +0800)]
MLK-13450-15 ehci-mx6: Add powerup_fixup implementation
When doing port reset, the PR bit of PORTSC1 will be automatically
cleared by our IP, but standard EHCI needs explicit clear by software. The
EHCI-HCD driver follow the EHCI specification, so after 50ms wait, it
clear the PR bit by writting to the PORTSC1 register with value loaded before
setting PR.
This sequence is ok for our IP when the delay time is exact. But when the timer
is slower, some bits like PE, PSPD have been set by controller automatically
after the PR is automatically cleared. So the writing to the PORTSC1 will overwrite
these bits set by controller. And eventually the driver gets wrong status.
We implement the powerup_fixup operation which delays 50ms and will check
the PR until it is cleared by controller. And will update the reg value which is written
to PORTSC register by EHCI-HCD driver. This is much safer than depending on the delay
time to be accurate and aligining with controller's behaiver.
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
8dfdf83abaff44efb487f801cd1757a729d427c5)
(cherry picked from commit
cafc860907a408156a43fa20169dfc187648618e)
(cherry picked from commit
b3ec67eece968431ba7f8307156ae2659907a03b)
Ye Li [Thu, 17 Nov 2016 08:39:03 +0000 (16:39 +0800)]
MLK-13450-14 ehci-mx6: Update EHCI driver to support OTG0 on i.MX7ULP
The ULP has two USB controllers. These two controllers have similar NC
registers layout as i.MX7D. But OTG0 uses UTMI PHY simliar as i.MX6, not
the integrated PHY on i.MX7D. The OTG1 needs off-chip HSIC PHY or ULPI PHY
to work.
This patch only supports OTG0 with UTMI PHY.
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
1ac22cabb96a14ac4ca58df60ae2025fb5e94db6)
(cherry picked from commit
53cfed1f967e44507a80a0b8c8113ae67188304b)
(cherry picked from commit
6ae64ed7f3fb5dcc204e87c8512ee3796d655189)
Teo Hall [Mon, 12 Sep 2016 19:15:44 +0000 (14:15 -0500)]
MLK-14938-24 mailbox: add imx mu DM mailbox driver
implement i.MX Messaging Unit driver within the DM Mailbox uclass
Signed-off-by: Teo Hall <teo.hall@nxp.com>
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
9caafe21ddf12c9ab994fe9e65dc7afe5e7bab3d)
(cherry picked from commit
a360802ec1d1b52ea7d0c91e285ba355d0293140)
Teo Hall [Mon, 12 Sep 2016 19:12:25 +0000 (14:12 -0500)]
MLK-14938-23 mailbox: enable mbox_send non-blocking use
Add a timeout to allow non-blocking use in the
same way as mbox_recv
Signed-off-by: Teo Hall <teo.hall@nxp.com>
(cherry picked from commit
c2296701fa91dc8d4144c84c19ffe40dba3df88c)
(cherry picked from commit
afcfb7e5105ef01ec46a6c896b20e210a07ee094)
Ye Li [Wed, 20 Mar 2019 02:48:28 +0000 (19:48 -0700)]
MLK-14938-21 mxc_gpio: change gpio index for i.MX8
Since the i.MX8 GPIO banks are indexed from 0 not 1 on other i.MX platforms,
so we have to adjust the index accordingly.
Signed-off-by: Adrian Alonso <adrian.alonso@nxp.com>
Signed-off-by: Ye Li <ye.li@nxp.com>
Han Xu [Fri, 11 Aug 2017 19:48:25 +0000 (14:48 -0500)]
MLK-16186: spi: flexspi: reset the flexspi DLL register to default value
i.MX8QM ROM didn't calculate the DLL correctly in some cases, to avoid
the wrong DLL setting impact the following functions, reset them to the
default value when probe.
Signed-off-by: Han Xu <han.xu@nxp.com>
(cherry picked from commit
da3c2a9f09afa45a428809b7bf3f981a1ccb7f2e)
(cherry picked from commit
71368855b63c16998ca5681984e70a913e1f4d84)
Ye Li [Wed, 12 Jul 2017 09:33:27 +0000 (04:33 -0500)]
MLK-15958-2 spi: fsl_fspi: Add support for 4bytes address mode
Update the LUT settings, spi_xfer to use the 4bytes address read/write/erase
commands.
Also add a function to enter the 4bytes mode for flash device.
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
704c1c357d5566e6b3a72c57427d90ba08f9ef0f)
(cherry picked from commit
24c5cdaa45fda19b885783054820f309c05bab16)
Ye Li [Tue, 19 Mar 2019 11:17:33 +0000 (04:17 -0700)]
MLK-21832 spi_flash: Add ID parameters for mt35xu512aba
Add SPI nor ID parameters for mt35xu512aba flash.
Signed-off-by: Ye Li <ye.li@nxp.com>
Ye Li [Tue, 28 Mar 2017 02:14:10 +0000 (10:14 +0800)]
MLK-14938-19 spi: Add FlexSPI Driver for i.MX8QM
Add fsl_fspi driver for flexspi controller. This driver supports:
1. DDR Quad output
2. Prefetch function for improve read performance.
3. Fast read and Quad read for one line read mode.
4. Read flash FSR register.
5. DM.
Signed-off-by: Han Xu <han.xu@nxp.com>
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
ae4e80b7b0debd2ad868781aaeb28ca4f2d9a8aa)
(cherry picked from commit
dcd5504f6493d9aed415f397f1c13611fc202605)
Ye Li [Tue, 17 Apr 2018 03:11:30 +0000 (20:11 -0700)]
MLK-14938-18 sata: Add i.MX8 SATA support
- some delay is required between SATA_CTRL0 RST SET and CLR.
Otherwise, sata phy link would be down.
- specific the ahci modification by imx8qm platform.
Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
83812d4d636d98afdcb617a3aeab7b037e884aa1)
Ye Li [Wed, 20 Mar 2019 06:51:56 +0000 (23:51 -0700)]
MLK-21831 scu_api: Add sc_misc_set_control API
Signed-off-by: Ye Li <ye.li@nxp.com>
Ye Li [Mon, 27 Mar 2017 07:46:55 +0000 (15:46 +0800)]
MLK-14938-17 pcie: Add support for i.MX8QM/QXP PCIe
- one lane pcie gen2 link is okay, the cfg space
of the rc/ep can be accessed.
rc cfg base 0x5f00_0000. ep cfg base 0x6000_0000
- limit to gen2 speed
- mask the wait of eq3 finish, because it is used
for gen3.
- use pcie_ctrla_init_rc() to do the initialization
of the pciea controller
- setup the common pcie codes in pcie_imx8x.c, separate
the different soc speicifed initialization codes into
their own pcie/board codes, move the macro definitions
into the new header file imx8_hsio.h.
- i.MX8QXP only have PCIe Control B. Enable PORT B at default.
i.MX8QM needs to set CONFIG_IMX_PCIEB to enable PORT B.
- Disable the LTSSM when link is down.
Signed-off-by: Frank Li <Frank.Li@nxp.com>
Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
Signed-off-by: Shenwei Wang <shenwei.wang@nxp.com>
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
03141c2b955ce6034f06e701126aea1493dc2b4b)
(cherry picked from commit
99c90ff2de4849aafa0043932353e2c199d22e5f)
Ye Li [Tue, 19 Mar 2019 07:40:31 +0000 (00:40 -0700)]
MLK-21830-2 DTS: imx8qm: Add DTS and binding header files
Copy the imx8qm DTS files from imx_4.14.y kernel (rel_imx_4.14.98_2.0.0_ga_rc1)
Add extra support used in u-boot:
1. Add mbox-cells used for mailbox
2. Add alias for FSPI nodes
3. Add GPIO alias which is used as seq number in u-boot DM GPIO driver.
4. Add i2c alias for i2c0 to i2c4, i2c6 and i2c8.
5. Add the usb alias for OTG and USB3.
6. Add "u-boot,dm-pre-reloc" to thermal node to DTSi
7. Add "simple-bus" compatible strings to imx8qm-pm node.
Signed-off-by: Ye Li <ye.li@nxp.com>
Ye Li [Tue, 19 Mar 2019 03:54:06 +0000 (20:54 -0700)]
MLK-21830-1 imx8qm: Update soc codes for iMX8QM
Add CPU type, Kconfig for iMX8QM and update SoC codes.
Signed-off-by: Ye Li <ye.li@nxp.com>
Ye Li [Tue, 19 Mar 2019 08:05:52 +0000 (01:05 -0700)]
MLK-21829 dts: imx8qxp: Update DTSi files and binding header files
Update the imx8qxp/dx/dxp DTSi files from imx_4.14.y kernel
(rel_imx_4.14.98_2.0.0_ga_rc1)
Add extra support used in u-boot:
1. Add alias for FSPI nodes
2. Add GPIO alias which is used as seq number in u-boot DM GPIO driver.
3. Add i2c alias for i2c0 to i2c3.
4. Add i2c alias for mipi0/mipi1 i2c0.
5. Add "u-boot,dm-pre-reloc" to thermal node in QXP DTSi
6. Add USB alias for OTG and USB3 ports.
Signed-off-by: Ye Li <ye.li@nxp.com>
Ye Li [Thu, 27 Apr 2017 18:51:45 +0000 (13:51 -0500)]
MLK-14938-16 net: fec: do not access reserved register for i.MX8
The MIB RAM and FIFO receive start register does not exist on
i.MX8. Accessing these register will cause SERROR in kernel.
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
2a47ebbccb95e8482360813d6dff5288429f1248)
(cherry picked from commit
fd99a9f057097a64034cd7b419fd983f487791e4)
Ye Li [Fri, 8 Mar 2019 09:33:00 +0000 (01:33 -0800)]
MLK-21828-4 imx8: Update cpu driver to support A53 and A72
Add A53 and A72 support to the imx8 cpu driver. Also implement the
is_current_cpu interface to return udevice for current boot CPU.
Signed-off-by: Ye Li <ye.li@nxp.com>
Ye Li [Fri, 8 Mar 2019 09:29:56 +0000 (01:29 -0800)]
MLK-21828-3 clk-imx8: fix get clk rate issue
The SCFW get clock rate API only return u32, but we use a ulong to
get the value. The ulong variable is not initialized, so on stack
it higher 32 bits may not zero, and return invalid rate.
Signed-off-by: Ye Li <ye.li@nxp.com>
Ye Li [Fri, 8 Mar 2019 07:57:21 +0000 (23:57 -0800)]
MLK-21828-2 common: board_f: Use cpu_get_current_dev in print_cpuinfo
Current print_cpuinfo gets the first udevice in CPU class to return
the cpu info. This has problem if the boot CPU is not fixed.
Change to use new API cpu_get_current_dev to resolve the issue.
Signed-off-by: Ye Li <ye.li@nxp.com>
Ye Li [Fri, 8 Mar 2019 07:55:50 +0000 (23:55 -0800)]
MLK-21828-1 uclass: cpu: Add new API to get udevice for current CPU
When running on SoC with multiple clusters, the boot CPU may not be fixed.
Add a API that can return the udevice for current boot CPU.
cpu driver needs to implement is_current_cpu interface for this feature,
otherwise the API only returns the first udevice in cpu uclass.
Signed-off-by: Ye Li <ye.li@nxp.com>
Ye Li [Mon, 16 Apr 2018 08:01:29 +0000 (01:01 -0700)]
MLK-16441 imx8qm/qxp: print commit hash for SCFW, SECO, IMX-MKIMAGE and ATF
Since we have many software running on QM/QXP, it is better to print their
commit ids in u-boot to know their versions.
This patch enables the CONFIG_ARCH_MISC_INIT. In arch_misc_init to gets the
commit ids for SCFW and ATF via their APIs and get the commit for imx-mkimage
at the end of u-boot.bin loading address.
Once the commit ids are acquired, show them in console like:
BuildInfo:
- SCFW
e2e62ca4, SECO-FW
c121d4a4, IMX-MKIMAGE
fe2ff1e9, ATF
8673a8e
- U-Boot 2018.03-imx_v2018.03+g557a2e5
and set them to environment variables like:
commit_atf=
8673a8e
commit_mkimage=
fe2ff1e9
commit_scfw=
e2e62ca4
commit_secofw=
c121d4a4
If old software are running which does not support provide commit it, the patch
use 0 instead.
Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit
5b443e3e26178e6df7cf76d98724a45871fcfaf1)
Ye Li [Mon, 16 Apr 2018 07:33:45 +0000 (00:33 -0700)]
MLK-16560-4: imx8: Remove hardcoded sids for sdhc/fec
This is better done through dts.
Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
Reviewed-by: Ye Li <ye.li@nxp.com>
Acked-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit
05df95241d523393a14ef300793e739b485faf68)
Ye Li [Mon, 16 Apr 2018 07:32:18 +0000 (00:32 -0700)]
MLK-16560-3: imx8: config_smmu_fdt: Support mmu-masters binding
This is deprecated in favor of the generic iommus binding but xen only
supports this older version.
Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
Reviewed-by: Ye Li <ye.li@nxp.com>
Acked-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit
c6b64c4e2927ee272f7abc5e94703013b2b2b443)
Ye Li [Mon, 16 Apr 2018 07:30:29 +0000 (00:30 -0700)]
MLK-16560-2: imx8: Use fsl,sc_rsrc_id binding to map device to rsrc
Using the SMMU for some devices (like dpu) requires a streamid to be
assigned to multiple resources.
Determining the resource ids for a device is a problem that occurs in
multiple contexts. So far uboot deals with this by parsing the
power-domain node which is insufficient here.
Add a new devicetree property called fsl,sc_rsrc_id which lists the
resource ids associated by a certain device.
Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
Reviewed-by: Ye Li <ye.li@nxp.com>
Acked-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit
75cdc9b6a476f3cef9e49d02873b9244ceb447c8)
Ye Li [Mon, 16 Apr 2018 07:27:31 +0000 (00:27 -0700)]
MLK-16560-1: imx8: Configure sids based on iommu properties in dtb
Use streamids specified in dtb because they need to match anyway. This
removes the need to rebuild uboot for stream id assignments.
Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
Reviewed-by: Ye Li <ye.li@nxp.com>
Acked-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit
3caa05e6dc973b8710642f27f834bf022fbb65b4)
Ye Li [Mon, 16 Apr 2018 07:05:24 +0000 (00:05 -0700)]
MLK-16087 imx8qm/qxp: Disable kernel FDT nodes for the resources are not owned
Before starting the kernel, need to check if the enabled nodes (resources) in FDT
are owned by current partition. If it is not owned, need to disable it because A core
can't access it.
We use the node's power-domain property to get the PD node which has the SCFW resource
id in its reg property. Then we can check it with SCFW.
Signed-off-by: Ye Li <ye.li@nxp.com>
Ye Li [Tue, 11 Sep 2018 08:14:41 +0000 (01:14 -0700)]
MLK-19546 imx8qm/qxp: Fix issue in get_effective_memsize
When Trusty OS allocates the mem region from 0xfe0000000-0xffffffff, the get_effective_memsize
does not return correct memory size. There is a check in get_effective_memsize to find the memreg
where the u-boot is running, and return the size of that memreg as the result of get_effective_memsize.
When using aligned start, the value is 0x80200000 since it is 2MB aligned. Thus the finding of memreg
will fail and return the PHYS_SDRAM_1_SIZE because u-boot text base is 0x80020000.
This cause u-boot relocating to the high memory where has been occupied by Trusty OS.
Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit
13fccde4c694453a3a038c4fb5fdb38cb7327747)
Ye Li [Fri, 8 Mar 2019 04:06:04 +0000 (20:06 -0800)]
MLK-16049 imx8qm/qxp: Add support for reserving DDR memory for M4
We assign the DDR memory from 0x88000000 to 0x8FFFFFFF to M4 on QM and QXP.
The M4 can allocate this memory by two ways, in SCD or u-boot.
In this patch, u-boot addes the memory reserve node to DTB to pass the info to kernel,
no matter the M4 memory is reserved in SCD or u-boot. So kernel won't access M4 reserved memory.
Signed-off-by: Ye Li <ye.li@nxp.com>
Ye Li [Mon, 16 Apr 2018 06:45:40 +0000 (23:45 -0700)]
MLK-14938-9 imx8: bootaux: Add i.MX8 M4 boot support
1. Implement bootaux for the M4 boot on i.MX8QM and QXP. Users need to download
M4 image to any DDR address first. Then use the
"bootaux <M4 download DDR address> [M4 core id]" to boot CM4_0
or CM4_1, the default core id is 0 for CM4_0.
Since current M4 only supports running in TCM. The bootaux will copy
the M4 image from DDR to its TCML.
2. Implment bootaux for HIFI on QXP
command: bootaux 0x81000000 1
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
778606204b84ce6646fe58d752e2abda67600cf2)
Ye Li [Wed, 2 Aug 2017 02:47:53 +0000 (21:47 -0500)]
MLK-16118-2 power: Add PD device lookup interface to power domain uclass
Add power_domain_lookup_name interface to power domain uclass to find
a power domain device by its DTB node name, not using its associated
client device.
Through this interface, we can operate the power domain devices directly.
This is needed for non-DM drivers.
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
f5fcb1903d935c2e1037b6a1fc61f1c290818727)
(cherry picked from commit
68b9f562f46bbecdd11643bacc70fe3cd2e1243c)
Ye Li [Wed, 17 May 2017 07:19:25 +0000 (02:19 -0500)]
MLK-14938-8 imx8: Add SMMU setup to Soc codes
We setup SMMU in arch_preboot_os to avoid breaking u-boot driver.
Add a kconfig entry CONFIG_IMX_SMMU to enable it.
So far, the USDHC0-USDHC1 and FEC0-FEC1 are added into sid.
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
7da6345919ee59a26cf65b4bc29072eea2fc0909)
Ye Li [Wed, 17 May 2017 07:06:15 +0000 (02:06 -0500)]
MLK-18732 imx8: Add fuse driver for read/write OTP memory
Implement a fuse driver to access OTP memory. When CONFIG_SMC_FUSE is set,
the driver uses SIP call to ATF to read/write OTP. When CONFIG_SMC_FUSE is
not set, the driver wraps the SCFW API and only provide interfaces
to read the OTP.
Since there is no concept of fuse bank on i.MX8. Need set "bank" parameter to 0
when using the fuse command.
Signed-off-by: Ye Li <ye.li@nxp.com>
Signed-off-by: Teo Hall <teo.hall@nxp.com>
Ye Li [Wed, 11 Apr 2018 03:06:26 +0000 (20:06 -0700)]
MLK-18159-9 mach-imx: Adding new argument for SIP call interface
Need to pass total 5 arguments for SIP HAB call on i.MX8MQ, so
update the interface to add new argument.
Signed-off-by: Ye Li <ye.li@nxp.com>
Ye Li [Wed, 6 Mar 2019 07:56:58 +0000 (23:56 -0800)]
MLK-21827 imx8: Probe the SCU driver by using uclass function
Since SCU MU driver has been bound in dm_init, so we don't need to
bind it again. Just replace by using uclass function to probe it.
Signed-off-by: Ye Li <ye.li@nxp.com>
Tom Rini [Tue, 9 Apr 2019 01:40:40 +0000 (21:40 -0400)]
Prepare v2019.04
Signed-off-by: Tom Rini <trini@konsulko.com>
Jagan Teki [Mon, 8 Apr 2019 20:27:54 +0000 (01:57 +0530)]
arm: sunxi: Enable DM_MMC on required SoCs
Enabling DM_MMC is forcing CONFIG_BLK=y so if any board which uses
SCSI must need to enable DM_SCSI otherwise SCSI reads on that particular
target making invalid reading to the disk drive.
Allwinner platform do support SCSI on A10, A20 and R40 SoC's out of
these only A10 have DM_SCSI enabled. So enabling DM_MMC on A20, R40
would eventually end-up with scsi disk read failures like [1]
So, enable DM_MMC in all places of respective SoC's instead of enabling
them globally to Allwinner platform.
Now, DM_MMC is enabled in Allwinner SoC's except A20 and R40.
[1] https://lists.denx.de/pipermail/u-boot/2019-April/364057.html
Reported-by: Pablo Sebastián Greco <pgreco@centosproject.org>
Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
Tom Rini [Mon, 8 Apr 2019 14:11:29 +0000 (10:11 -0400)]
Merge tag 'fixes-for-2019.04-rc4' of git://git.denx.de/u-boot-staging
- i.MX8QXP-MEK ethernet fix
Andrejs Cainikovs [Fri, 1 Mar 2019 13:28:00 +0000 (13:28 +0000)]
dts: imx8qxp-mek: Add PHY post reset delay
PHY cannot be detected unless we wait about 150 ms.
Signed-off-by: Andrejs Cainikovs <andrejs.cainikovs@netmodule.com>
Reviewed-by: Anatolij Gustschin <agust@denx.de>
Reviewed-by: Stefano Babic <sbabic@denx.de>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Andrejs Cainikovs [Fri, 1 Mar 2019 13:27:59 +0000 (13:27 +0000)]
net: dm: fec: Support phy-reset-post-delay property
As per Linux kernel DT binding doc:
- phy-reset-post-delay : Post reset delay in milliseconds. If present then
a delay of phy-reset-post-delay milliseconds will be observed after the
phy-reset-gpios has been toggled. Can be omitted thus no delay is
observed. Delay is in range of 1ms to 1000ms. Other delays are invalid.
Signed-off-by: Andrejs Cainikovs <andrejs.cainikovs@netmodule.com>
Reviewed-by: Anatolij Gustschin <agust@denx.de>
Reviewed-by: Stefano Babic <sbabic@denx.de>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Acked-by: Lukasz Majewski <lukma@denx.de>
Stefan Roese [Wed, 3 Apr 2019 07:12:48 +0000 (09:12 +0200)]
watchdog: Move watchdog_dev to data section (BSS may not be cleared)
This patch moves all instances of static "watchdog_dev" declarations to
the "data" section. This may be needed, as the BSS may not be cleared
in the early U-Boot phase, where watchdog_reset() is already beeing
called. This may result in incorrect pointer access, as the check to
"!watchdog_dev" in watchdog_reset() may not be true and the function
may continue to run.
Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Heiko Schocher <hs@denx.de>
Cc: Tom Rini <trini@konsulko.com>
Cc: Michal Simek <michal.simek@xilinx.com>
Cc: "Marek Behún" <marek.behun@nic.cz>
Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
Tested-by: Michal Simek <michal.simek@xilinx.com> (on zcu100)
Reviewed-by: Michal Simek <michal.simek@xilinx.com>
Hannes Schmelzer [Fri, 29 Mar 2019 08:54:05 +0000 (09:54 +0100)]
net: phy: implement fallback mechanism for negative phy adresses
Negative phy-addresses can occour if the caller function was not able to
determine a valid phy address (from device-tree for example). In this
case we catch this here and search for ANY phy device on the given mdio-
bus.
Signed-off-by: Hannes Schmelzer <hannes.schmelzer@br-automation.com>
Tested-by: Michal Simek <michal.simek@xilinx.com>
Tested-by: Lukasz Majewski <lukma@denx.de>
Tom Rini [Fri, 5 Apr 2019 13:09:56 +0000 (09:09 -0400)]
Merge tag 'u-boot-imx-
20190405' of git://git.denx.de/u-boot-imx
Fixes for 2019.04
- fix bashism for MX8
- fix ethernet for MX53
- fix docs for i.MX8
Tom Rini [Wed, 3 Apr 2019 14:28:10 +0000 (10:28 -0400)]
Merge branch 'master' of git://git.denx.de/u-boot-usb
- Documentation fix
Tom Rini [Wed, 3 Apr 2019 14:26:57 +0000 (10:26 -0400)]
Merge branch '2019-04-03-master-imports'
- Important Khadas VIM2 fix
- Build fix for macOS Mojave
- Build fix for gcc-4.7 for host tools.
Thomas Petazzoni [Sat, 30 Mar 2019 14:29:23 +0000 (15:29 +0100)]
tools/Makefile: build host tools with -std=gnu99
Parts of the code are using C99 constructs (such as variables declared
inside loops), but also GNU extensions (such as typeof), so using
-std=gnu99 is necessary to build with older versions of gcc that don't
default to building with gnu99.
It fixes the following build failure:
./tools/../lib/crc16.c: In function "crc16_ccitt":
./tools/../lib/crc16.c:70:2: error: "for" loop initial declarations are only allowed in C99 mode
for (int i = 0; i < len; i++)
^
./tools/../lib/crc16.c:70:2: note: use option -std=c99 or -std=gnu99 to compile your code
when building the host tools with gcc 4.7.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
默默 [Sun, 31 Mar 2019 08:07:03 +0000 (16:07 +0800)]
fix compile error on macOS Mojave
Neil Armstrong [Wed, 3 Apr 2019 11:46:37 +0000 (13:46 +0200)]
configs: khadas_vim2: Fix defconfig
The Khadas VIM2 defconfig was missing the USB PHY config and
two other misc configs to setup dram banks and call misc_init_r.
Align it on the other Amlogic SoC based boards defconfig.
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Neil Armstrong [Wed, 3 Apr 2019 11:46:36 +0000 (13:46 +0200)]
phy: Also allow MESON_GXM for MESON_GXL_USB_PHY
The MESON_GXL_USB_PHY is also used on the Amlogic Meson GXM SoCs.
Fixes:
2960e27e38 ("phy: Add Amlogic Meson USB2 & USB3 Generic PHY drivers")
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Eugen Hristev [Mon, 1 Apr 2019 11:04:03 +0000 (11:04 +0000)]
travis-ci: fix at91 missing boards
Fix missing at91 boards and split the at91 in two categories:
at91 arm v7
at91 arm926esj
which are the two main cores for the at91 architecture.
Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
Lukasz Majewski [Mon, 1 Apr 2019 14:00:05 +0000 (16:00 +0200)]
DTS: Fix ETH PHY reset on HSC|DDC boards (imx53)
After the commit: "eth: dm: fec: Add gpio phy reset binding"
SHA1:
efd0b791069af93e9d439a70d1fe2ae8994dbbfa
The FEC ETH driver switched to PHY GPIO reset performed with data defined
in DTS.
For the HSC|DDC boards the GPIO reset signal is active low and hence the
wrong DTS description must be changed (otherwise the reset for ETH is not
properly setup).
Signed-off-by: Lukasz Majewski <lukma@denx.de>
Lukasz Majewski [Mon, 1 Apr 2019 14:00:04 +0000 (16:00 +0200)]
cosmetic: Remove not needed string from kp_imx53.h config
Signed-off-by: Lukasz Majewski <lukma@denx.de>
Lukasz Majewski [Mon, 1 Apr 2019 14:00:03 +0000 (16:00 +0200)]
cosmetic: config: Remove empty #ifdefs
After running tools/moveconfig.py it turned out that for various boards
there are an empty #ifdef statements.
Remove them to clean u-boot source code.
Signed-off-by: Lukasz Majewski <lukma@denx.de>
Krzysztof Kozlowski [Tue, 2 Apr 2019 07:32:12 +0000 (09:32 +0200)]
doc: Fix outdated ohci board hook documentation
The ohci driver calls board_usb_init(), not usb_board_init().
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Fabio Estevam [Wed, 13 Mar 2019 18:02:58 +0000 (15:02 -0300)]
imx8mq_evk: README: Make the underline marker fill the whole sentence
Let the underline marker "=" fill the whole sentence for better
readability.
Signed-off-by: Fabio Estevam <festevam@gmail.com>
Fabio Estevam [Wed, 13 Mar 2019 18:02:57 +0000 (15:02 -0300)]
imx8mq_evk: README: Fix a typo in the destination path
The DDR firmware binaries should be copied to '$(srctree)', so fix
a typo.
Signed-off-by: Fabio Estevam <festevam@gmail.com>
Fabio Estevam [Wed, 13 Mar 2019 18:02:56 +0000 (15:02 -0300)]
imx8mq_evk: README: Need to copy bl31.bin to U-Boot source tree
After building ATF it is needed to copy the generated bl31.bin file to
the U-Boot source tree.
Make this step explicit in the instructions.
Signed-off-by: Fabio Estevam <festevam@gmail.com>
Tom Rini [Tue, 2 Apr 2019 03:30:00 +0000 (23:30 -0400)]
Merge branch 'master' of git://git.denx.de/u-boot-sh
Minor fixes for the Alt board and PHY use on Gen2.
Tom Rini [Mon, 1 Apr 2019 16:31:22 +0000 (12:31 -0400)]
Merge branch 'master' of git://git.denx.de/u-boot-sunxi
- clk: sunxi: a10: Add CLK_AHB_GMAC
Jagan Teki [Thu, 28 Mar 2019 08:16:11 +0000 (13:46 +0530)]
clk: sunxi: a10: Add CLK_AHB_GMAC
CLK_AHB_GMAC was suppose to be part of previous commit
"clk: sunxi: Implement A10 EMAC clocks" add it so-that
we can get rid of sunxi_set_gate warning on boot message.
Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
Baruch Siach [Wed, 2 Jan 2019 06:58:28 +0000 (08:58 +0200)]
tools/imx8m_image.sh: remove bashism
Use a single '=' to test string equality for compatibility with non-bash
shells. Otherwise, if /bin/sh is dash, build fails:
./tools/imx8m_image.sh: 15: [: signed_hdmi_imx8m.bin: unexpected operator
./tools/imx8m_image.sh: 15: [: signed_hdmi_imx8m.bin: unexpected operator
./tools/imx8m_image.sh: 15: [: spl/u-boot-spl-ddr.bin: unexpected operator
./tools/imx8m_image.sh: 15: [: spl/u-boot-spl-ddr.bin: unexpected operator
WARNING './spl/u-boot-spl-ddr.bin' not found, resulting binary is not-functional
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Tested-by: Chris Spencer <christopher.spencer@sea.co.uk>
Tom Rini [Mon, 1 Apr 2019 13:39:38 +0000 (09:39 -0400)]
Merge tag 'u-boot-imx-
20190401' of git://git.denx.de/u-boot-imx
Fixes for 2019.01
- pico-imx6ul: fix after conversion
- engicam boards
- pico-imx7d _ README due to hang with imx-usb-loader
Fabio Estevam [Wed, 27 Mar 2019 23:03:39 +0000 (20:03 -0300)]
pico-imx7d: README: Recommend the usage of a USB hub
Since commit
9e3c0174da842 ("pico-imx7d: Add LCD support") we started to
notice some hangs in U-Boot.
There is not an issue on such commit per se, but due to the LCD support
the current drawn is increased and this may cause issues when powering
pico-imx7d-pi from USB.
Some computers may be a bit strict with USB current draw and will
shut down their ports if the draw is too high.
The solution for that is to use an externally powered USB hub between the
board and the host computer.
Add such recommendation to the README file.
Signed-off-by: Fabio Estevam <festevam@gmail.com>
Jagan Teki [Thu, 21 Mar 2019 08:35:53 +0000 (14:05 +0530)]
configs: icorem6: Use imx6 cratch register for bootcount
SRAM address used for bootcount on exiting code is erasing
previous count value when system reset from Linux. So use
the dedicated imx6 scratch register, GPR2 to preserve the
contents even if the system reset from Linux.
Fixes:
4eb9aa39350e ("configs: imx6qdl_icore_mmc: Enable watchdog and bootcounter")
Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com>
Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
Tested-by: Shyam Saini <shyam.saini@amarulasolutions.com>
Reviewed-by: Stefano Babic <sbabic@denx.de>
Michael Trimarchi [Fri, 8 Mar 2019 07:35:03 +0000 (13:05 +0530)]
configs: icore: Fix U-Boot proper loading from nand
SPL on Engicam i.Core M6 boards enabled DM, so it would require some
malloc() pool before relocation in order to load U-Boot proper properly.
So, enable SPL malloc() pool of 0x2000 size similarly like what we have
used for icore mmc defconfigs.
Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
Tested-by: Shyam Saini <shyam.saini@amarulasolutions.com>
Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
Adam Ford [Sun, 3 Mar 2019 22:22:45 +0000 (16:22 -0600)]
ARM: imx6q_logic: Enable UUID support
With UUID support, the root can now point to UUID. This makes
swiching between mmc 0 and mmc 1 easier by simplying changing
mmcdev between 0 and 1. From there, the scripts handle the rest.
Signed-off-by: Adam Ford <aford173@gmail.com>
Fabio Estevam [Thu, 21 Mar 2019 13:59:06 +0000 (10:59 -0300)]
pico-imx6ul: Fix eMMC boot after DM_MMC conversion
After the DM_MMC conversion the following eMMC boot error is observed:
U-Boot SPL 2019.04-rc4 (Mar 20 2019 - 18:53:28 +0000)
Trying to boot from MMC1
MMC Device 0 not found
spl: could not find mmc device 0. error: -19
SPL: failed to boot from all boot devices
### ERROR ### Please RESET the board ###
This happens because the SPL code does not initialize the SDHC pins
and clock.
Fix it by moving the original eMMC initialization from U-Boot proper
to SPL.
Reported-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Fabio Estevam <festevam@gmail.com>
Tested-by: Fabio Berton <fabio.berton@ossystems.com.br>
Reviewed-by: Otavio Salvador <otavio@ossystems.com.br>
Stefano Babic [Sun, 31 Mar 2019 17:54:10 +0000 (19:54 +0200)]
Merge branch 'master' of git://git.denx.de/u-boot
Signed-off-by: Stefano Babic <sbabic@denx.de>
Tom Rini [Sun, 31 Mar 2019 11:25:11 +0000 (07:25 -0400)]
Merge tag 'video-fixes-for-2019.04-rc4' of git://git.denx.de/u-boot-video
sunxi HDMI clock fix
Tom Rini [Sun, 31 Mar 2019 11:25:00 +0000 (07:25 -0400)]
Merge tag 'rockchip-fixes-for-2019.04' of git://git.denx.de/u-boot-rockchip
Last-minute fixes for Rockchip for 2019.04:
- reverts the deprecation of the 'download-key' detection
(with a full solution pending for the next release)
- applies a temporary fix for the 32bit pinctrl registers on the RK3288
Lukasz Majewski [Sat, 30 Mar 2019 15:22:21 +0000 (16:22 +0100)]
dfu: usb: Update MAINTAINERS file regarding DFU/USB gadget support
Signed-off-by: Lukasz Majewski <lukma@denx.de>
Marek Vasut [Sat, 30 Mar 2019 07:24:19 +0000 (08:24 +0100)]
ARM: rmobile: alt: Fix I2C bus number
The I2C bus number to access the PMIC is I2C 7, fix this.
Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>