| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
| |
Enable psci_system_reset support for Stratix10. This PSCI function
will eventually trigger the mailbox HPS_REBOOT to SDM.
Signed-off-by: Chin Liang See <chin.liang.see@intel.com>
|
|
|
|
|
|
|
|
|
|
|
| |
Re-factor the Stratix10 mailbox driver to be compatible with PSCI.
Delay or printf will be removed since PSCI code today doesn't
support UART and timer. All mailbox function shall be inlined to
ensure it will stick together with PSCI functions which will be
located to OCRAM.
Signed-off-by: Chin Liang See <chin.liang.see@intel.com>
|
|
|
|
|
|
|
| |
Enable the PSCI support in Stratix10. The PSCI code will support
4 CPUs and reside at on-chip RAM.
Signed-off-by: Chin Liang See <chin.liang.see@intel.com>
|
|
|
|
|
|
|
|
| |
When PSCI is enabled, we are expecting U-Boot which now act
as EL3 software will handle all the PSCI calls. We won't need
fwcall as no further HVC or SMC are needed.
Signed-off-by: Chin Liang See <chin.liang.see@intel.com>
|
|
|
|
|
|
| |
Enable i2c support for SOCFPGA Stratix10 SoC dev kit.
Signed-off-by: Chin Liang See <chin.liang.see@intel.com>
|
|
|
|
|
|
| |
Added i2c node for SOCFPGA Stratix10 SoC dev kit.
Signed-off-by: Chin Liang See <chin.liang.see@intel.com>
|
|
|
|
|
|
|
|
|
| |
frequency
To fix the clock driver to grab the clock source frequency from
handoff binary blob.
Signed-off-by: Chin Liang See <chin.liang.see@intel.com>
|
|
|
|
|
|
|
| |
Fix the algorithm which calculates the VCO mscnt value. When the
refclkdiv is not 1, the PLL is not able to lock without this fix.
Signed-off-by: Chin Liang See <chin.liang.see@intel.com>
|
|
|
|
|
|
|
|
|
|
|
| |
U-Boot/SPL and SDM firmware use the doorbells to indicate data
is available in the mailbox. The doorbell from SDM is cleared
by SPL during transactions. Ensure the doorbell is cleared on
initialization.
Ensure the urgent request register is in the initialized state
(cleared).
Signed-off-by: Thor Thayer <thor.thayer@intel.com>
|
|
|
|
|
|
|
|
| |
U-Boot/SPL and firmware have a handshake sequence for the urgent
request. This patch checks the Urgent ACK for a toggle as specified
in the documentation instead of a bit set.
Signed-off-by: Thor Thayer <thor.thayer@intel.com>
|
|
|
|
|
|
|
|
| |
U-Boot will enable Linux QSPI controller support through
updating the Linux device tree blob. This include updating the
QSPI controller reference clock.
Signed-off-by: Chin Liang See <chin.liang.see@intel.com>
|
|
|
|
|
|
|
|
| |
Obtaining the QSPI reference clock from QSPI_DIRECT mailbox
command. The QSPI reference clock is setup by SDM and this
info need to be passed by SDM to HPS.
Signed-off-by: Chin Liang See <chin.liang.see@intel.com>
|
|
|
|
|
|
|
|
| |
Do retry the QSPI_OPEN command again if it's failing for first time.
This is to overcome scenario where HPS didn't properly issue
QSPI_CLOSE during previous reset or reloading of HPS software.
Signed-off-by: Chin Liang See <chin.liang.see@intel.com>
|
|
|
|
|
|
|
|
|
| |
FPGA reconfiguration support through Secure Device Manager's mailbox.
User is required to program the bitstream into the QSPI flash. Then
use "fpga load" command with bitstream location address in QSPI to
start the FPGA reconfiguration process.
Signed-off-by: Chee Hong Ang <chee.hong.ang@intel.com>
|
|
|
|
|
|
|
|
| |
Enable command line interpreter in Stratix10 SoC U-Boot
in order to support more powerful command line syntax
such as if...else...fi
Signed-off-by: Chin Liang See <chin.liang.see@intel.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Enable HPS reboot support in Stratix 10 SoC. Hard Processor
System (HPS) only can initiate reboot by sending mailbox
command to Secure Device Manager (SDM)
Signed-off-by: Chin Liang See <chin.liang.see@intel.com>
—
Changes for v5
- Update the commit message
Changes for v4
- Always return 0 if mailbox successfully sent
Changes for v3
- Added more clarity to comments
- Fixed a change that break CV build
Changes for v2
- Put processor into while loop and wait for watchdog when mailbox failed
|
|
|
|
|
|
|
|
| |
Add USB functionality on the Stratix10 devkit. This includes adding the
USB DTS entry, de-assert the USB and USB_OCP reset bits, add the USB
command support to defconfig.
Signed-off-by: Dinh Nguyen <dinh.nguyen@intel.com>
|
|
|
|
|
|
|
| |
Fix up the firewall disable bit for the nand_data register. The bit lives
in the firewall peripheral base, not the firewall system base.
Signed-off-by: Dinh Nguyen <dinh.nguyen@intel.com>
|
|
|
|
|
|
|
|
|
| |
Now that the reset manager for Stratix 10 is working in Linux, we don't
need the bootloader to bring the peripherals out of reset.
Signed-off-by: Dinh Nguyen <dinh.nguyen@intel.com>
---
v2: need to bring out sdmmc for SPL
|
|
|
|
|
|
|
|
|
| |
Most OS are running in EL2 or lower, so by default an access to a HPS
peripheral is done with a non-secure method, which causes a system error
exception. Thus, the bootloader should enable non-secure access to all
peripherals, including clock/reset/system managers.
Signed-off-by: Dinh Nguyen <dinh.nguyen@intel.com>
|
|
|
|
|
|
|
| |
This patch configures the PL330 DMAC peripheral request lines
in non-secure mode via the system manager registers.
Signed-off-by: Graham Moore <graham.moore@linux.intel.com>
|
|
|
|
|
|
|
|
|
| |
Normally, Linux would take the PL330 DMAC out of reset, but
because the PL330 is a "primecell" device, Linux tries to probe
its configuration space for a device id, which causes a hang if
the DMAC is still in reset. This patch takes the PL330 out of reset.
Signed-off-by: Graham Moore <graham.moore@linux.intel.com>
|
|
|
|
|
|
|
| |
This patch configures the PL330 DMAC in non-secure mode
via the system manager registers.
Signed-off-by: Graham Moore <graham.moore@linux.intel.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Move expected image of U-Boot QSPI image to the end of
the first partition (0 to 0x400_0000) to allow room for
FPGA programming image.
1. The complete partition is from 0 to 0x400_0000 for the
1Gb QSPI size. This may change for 2Gb QSPI.
2. The FPGA-first image will be from 0 to 0x3C0_0000
3. The U-Boot image will be from 0x3C0_0000 to 0x400_0000
4. This is an interim solution for U-Boot in the raw partition.
In the future, it is planned to move U-Boot inside the 2nd
partition where the filesystem/etc resides.
Signed-off-by: Thor Thayer <thor.thayer@linux.intel.com>
|
|
|
|
|
|
| |
Enables non-secure access to gpio0 and gpio1.
Signed-off-by: Dinh Nguyen <dinh.nguyen@intel.com>
|
|
|
|
|
|
| |
Enables non-secure access to USB0 and USB1.
Signed-off-by: Dinh Nguyen <dinh.nguyen@intel.com>
|
|
|
|
|
|
|
| |
Non-secure OS needs access to the reset manager register in order
to bring peripherals out of reset.
Signed-off-by: Dinh Nguyen <dinh.nguyen@intel.com>
|
|
|
|
|
|
|
|
| |
The indirect trigger address is actually using offset instead
of the address of ahbbase. It was working well in CV and A10
as there is a hardware masking on the lower bits of the value
Signed-off-by: Chin Liang See <chin.liang.see@intel.com>
|
|
|
|
|
|
|
|
| |
When SPL is used as EL3, SPL will trap other processors than CPU0
into spin loop. When U-Boot updated the spin table address after
U-Boot relocate, we want to ensure the CPU_RELEASE_ADDR is updated.
Signed-off-by: Chin Liang See <chin.liang.see@intel.com>
|
|
|
|
|
|
| |
Add build support for Stratix SoC
Signed-off-by: Chin Liang See <chin.liang.see@intel.com>
|
|
|
|
|
|
| |
Add socdk board support for Stratix SoC
Signed-off-by: Chin Liang See <chin.liang.see@intel.com>
|
|
|
|
|
|
| |
Add DDR support for Stratix SoC
Signed-off-by: Chin Liang See <chin.liang.see@intel.com>
|
|
|
|
|
|
| |
Add timer support for Stratix SoC
Signed-off-by: Chin Liang See <chin.liang.see@intel.com>
|
|
|
|
|
|
| |
Add SPL driver support for Stratix SoC
Signed-off-by: Chin Liang See <chin.liang.see@intel.com>
|
|
|
|
|
|
|
|
| |
Restructure the SPL so each devices such as CV, A10 and S10
will have their own dedicated SPL file. SPL file determine
the HW initialization flow which is device specific
Signed-off-by: Chin Liang See <chin.liang.see@intel.com>
|
|
|
|
|
|
| |
Add MMU support for Stratix SoC
Signed-off-by: Chin Liang See <chin.liang.see@intel.com>
|
|
|
|
|
|
| |
Add mailbox support for Stratix SoC
Signed-off-by: Chin Liang See <chin.liang.see@intel.com>
|
|
|
|
|
|
| |
Add misc support for Stratix SoC
Signed-off-by: Chin Liang See <chin.liang.see@intel.com>
|
|
|
|
|
|
| |
Add pinmux driver support for Stratix SoC
Signed-off-by: Chin Liang See <chin.liang.see@intel.com>
|
|
|
|
|
|
| |
Add Reset Manager driver support for Stratix SoC
Signed-off-by: Chin Liang See <chin.liang.see@intel.com>
|
|
|
|
|
|
| |
Add Clock Manager driver support for Stratix SoC
Signed-off-by: Chin Liang See <chin.liang.see@intel.com>
|
|
|
|
|
|
| |
Device tree for Stratix10 SoC
Signed-off-by: Chin Liang See <chin.liang.see@intel.com>
|
|
|
|
|
|
| |
Add the base address map for Statix10 SoC
Signed-off-by: Chin Liang See <chin.liang.see@intel.com>
|
|
|
|
| |
Signed-off-by: Tom Rini <trini@konsulko.com>
|
|
|
|
|
|
|
| |
Replacing original author Mateusz Kulikowski
<mateusz.kulikowski@gmail.com> as db410c maintainer
Signed-off-by: Jorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org>
|
|
|
|
|
|
|
|
|
|
|
| |
At present the IDE device number is initialized to -1, which means
we cannot type "ide read" command before setting the device number
via "ide device #".
For convenience, let's set the first device as the default one.
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
|
|
|
|
|
|
|
|
| |
When there is no CDROM inserted, the block size is zero hence there
is no need to create a BLK device for it.
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
| |
This converts the IDE driver to driver model so that block read and
write are fully functional.
Fixes: b7c6baef ("x86: Convert MMC to driver model")
Reported-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Tested-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
|
|
|
|
|
|
|
| |
So far these are using magic numbers. Replace them with macros.
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
|
|
|
|
|
|
|
| |
This board does dwc3 gadget, not host, so we cannot have host support or
we will fail to link.
Signed-off-by: Tom Rini <trini@konsulko.com>
|