summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-08-19ARM: sunxi: pangolin: fix mac and serial generationHEADv2015.07-pangolinKlaus Goger
a wrong shift in the emmc cid resulted in duplicated mac addresses. use the correct emmc product serialnumber bits instead of the manufacturing date
2019-08-19increase mmc_rint_wait delayKlaus Goger
Toshiba eMMC requires a longer delay to work proper with spl
2015-07-31Customize CLI prompt IIJakob Unterwurzacher
2015-07-30ARM: sunxi: add emmcboot commandKlaus Goger
command that returns true if the first mmc device is the on-board emmc. Signed-off-by: Klaus Goger <klaus.goger@theobroma-systems.com>
2015-07-30ARM: sunxi: pangolin: base mac and serial on eMMCKlaus Goger
We have seen axp221 with all zeros in the sid registers. Therefore we base our mac address and serial number on the eMMC serial number as this is the only unique id on the board. Signed-off-by: Klaus Goger <klaus.goger@theobroma-systems.com>
2015-07-30ARM: sunxi: pangolin: Customize CLI promptJakob Unterwurzacher
Including "u-boot" in the prompt makes it clear to the user that he is in the u-boot shell and not in Linux.
2015-07-30Rename "Pangolin_defconfig" to "pangolin_defconfig"Jakob Unterwurzacher
Also add compatability symlink
2015-07-30env overwriteKlaus Goger
Signed-off-by: Klaus Goger <klaus.goger@theobroma-systems.com>
2015-07-30ARM: sun6i: ifdef board specific initKlaus Goger
board specific settings should only be done if the specific board is selected via Kconfig. so we put ifdefs around the relevant sections Signed-off-by: Klaus Goger <klaus.goger@theobroma-systems.com>
2015-07-30ARM: sun6i: pangolin: set pinmux for USBH3Klaus Goger
USBH3 is used as full speed USB connection to the onboard STM32. Signed-off-by: Klaus Goger <klaus.goger@theobroma-systems.com>
2015-07-30ARM: sun6i: spiflash: enables M25 SPI flashOctav Zlatior
Signed-off-by: Octav Zlatior <octav.zlatior@theobroma-systems.com>
2015-07-30ARM: sun6i: spi: implements SPI driverOctav Zlatior
The driver currently only supports sun6i. Signed-off-by: Octav Zlatior <octav.zlatior@theobroma-systems.com>
2015-07-30dm: Fixes an inconsistency in device.h commentsOctav Zlatior
Signed-off-by: Octav Zlatior <octav.zlatior@theobroma-systems.com>
2015-07-30ARM: sun6i: pangolin: disable hdmi and ldb in dtsOctav Zlatior
* enabled them for pangolin dts Signed-off-by: Octav Zlatior <octav.zlatior@theobroma-systems.com>
2015-07-30ARM: sunxi: Implements driver model display driverOctav Zlatior
The driver model display driver is based on sunxi_display.c It is currently backwards compatible with the console driver (which is not driver-model, see TODOs) Devices can be defined via the dts Note that using of reg base addresses from dts is only partly implemented, since some functions in the old sunxi_display are used by both hdmi and lvds modes; these would need to be separated (or both addresses have to be specified in the device tree) (see TODOs) Currently supported modes: * lvds: single-channel * hdmi (with EDID) Currently unsupported modes: * parallel lcd * vga Signed-off-by: Octav Zlatior <octav.zlatior@theobroma-systems.com>
2015-07-30ARM: sun6i: select mmc order based on VER_REGKlaus Goger
selecting the mmc boot device based on mmc content can fail if the device is booted from eMMC and there is a SD-card with u-boot plugged in. On sun6i we can ѕelect the correct boot device based on the hardware configuration pins in BOOT_SEL. We only want to do this if UBOOT_SEL is not active since this overrides the BOOT_SEL settings to SD card. Signed-off-by: Klaus Goger <klaus.goger@theobroma-systems.com> Signed-off-by: Jakob Unterwurzacher <jakob.unterwurzacher@theobroma-systems.com>
2015-07-30sunxi: pangolin: enable ATX power supplyKlaus Goger
when powered by ATX the SUS3 line must be HIGH to enable the ATX power supply. Signed-off-by: Klaus Goger <klaus.goger@theobroma-systems.com>
2015-07-30ARM: sun6i: pangolin: increase DRAM clk to 360MHzKlaus Goger
Increase the DRAM clk from 312 to 360MHz on A31 Pangolin board. Tests have shown that this clock speed is stable. Signed-off-by: Klaus Goger <klaus.goger@theobroma-systems.com>
2015-07-30ARM: sun6i: configure axp221 for dual supplyKlaus Goger
switch to ACIN even if it's shorted with VBUS Signed-off-by: Klaus Goger <klaus.goger@theobroma-systems.com>
2015-07-30ARM: sunxi: enable vendor logoKlaus Goger
replaces the generic penguin logo with a vendor specific. if there is no sunxi.bmp available it will fall back to denx.bmp Signed-off-by: Klaus Goger <klaus.goger@theobroma-systems.com>
2015-07-30logos: add bmp logoKlaus Goger
the current makefile infrastructure only allows BOARD and VENDOR specific logos, so we have to use sunxi.bmp as logo name if we don't want to duplicate all the sunxi code. Signed-off-by: Klaus Goger <klaus.goger@theobroma-systems.com>
2015-07-30ARM: sunxi: introduce SUNXI_PANGOLIN Kconfig optionKlaus Goger
we need to do board specific things that we can't select only based on the CPU flavor. So we introduce the Kconfig option to select a specfic sunxi board Signed-off-by: Klaus Goger <klaus.goger@theobroma-systems.com>
2015-07-30ARM: sun6i: blink led for boot feedbackKlaus Goger
Signed-off-by: Klaus Goger <klaus.goger@theobroma-systems.com>
2015-07-30ARM: sun6i: set bootmode for stm32Klaus Goger
Signed-off-by: Klaus Goger <klaus.goger@theobroma-systems.com>
2015-07-30sunxi: pangolin: defconfig build fixKlaus Goger
Signed-off-by: Klaus Goger <klaus.goger@theobroma-systems.com>
2015-07-30sunxi: pangolin: remove usb ethKlaus Goger
previous commits fixed on board ethernet. so no need for usb ethernet anymore Signed-off-by: Klaus Goger <klaus.goger@theobroma-systems.com>
2015-07-30sunxi: dts: pangolin: remove wlanKlaus Goger
removed leftover from hummingbird dts Signed-off-by: Klaus Goger <klaus.goger@theobroma-systems.com>
2015-07-30sun6i: pangolin: hack to configure phy skewKlaus Goger
should be done via devicetree but this require to enhance the micrel driver quite a bit so let's do this hack instead which breaks every other sun6i device other then pangolin Signed-off-by: Klaus Goger <klaus.goger@theobroma-systems.com>
2015-07-30sun6i: pangolin: Enable device-model for USBPhilipp Tomsich
2015-07-30sun6i: pangolin: Disable CMD_IMLS in defconfigPhilipp Tomsich
2015-07-30sun6i: Add 200us delay after unmasking DRAM clkPhilipp Tomsich
2015-07-30sun6i: Enable ODT both for read and write on rank1Philipp Tomsich
2015-07-30ARM: sun6i: Enable sigma-delta on DDR-PLL5Philipp Tomsich
2015-07-30ARM: sunxi: pangolin: Increase DRAM_CLK to 312Philipp Tomsich
2015-07-30sun6i: Improve selection of 'k' and 'm' for PLL5Philipp Tomsich
2015-07-30[fix/squash] remove duplicate setting of CCM_PLL5_CTRL_UPDPhilipp Tomsich
2015-07-30[fix/squash] Pangolin_defconfigPhilipp Tomsich
2015-07-30sunxi: Wait for P2WI controller to ack soft-resetPhilipp Tomsich
The P2WI controller acknowledges a soft-reset by auto-clearing the reset-bit. Instead of waiting for a "magic" number of cycles, we now wait until the reset-bit deasserts.
2015-07-30sun6i: Add DTS for Theobroma Systems' A31 uQ7Philipp Tomsich
2015-07-30sun6i: Add pin-definitions for i2c3 and mmc2Philipp Tomsich
added pin definitions for i2c3_pins_a and mmc2_pins_a
2015-07-30sunxi: add pangolin defconfigKlaus Goger
defconfig for the A31 based uQseven board pangolin from Theobroma Systems
2015-07-30ARM: sunxi: Make CONS_INDEX configurablePhilipp Tomsich
2015-07-30ARM: sun6i: Support console on UART2 (GPG6/GPG7)Philipp Tomsich
2015-07-30sun6i: define alternate-function for UART2 on GPGPhilipp Tomsich
2015-07-30sun6i: Handle PLL5 UPD/LOCK bits per specificationPhilipp Tomsich
PLL5-DDR is different from other PLLs by having an additional auto-clearing UPD bit (that validates the PLL and needs to be set after any change to the PLL5 configuration). The manual requires the following steps to set up PLL5: 1. Set up operational parameters. 2. Enabled the PLL (PLL5_ENABLE bit). 3. Set the UPD-bit (variously referred to as bit 20 or SDRPLL_UPD in the manual) and wait for it to clear. 4. Wait for the LOCK bit to assert.
2015-07-30sun6i: Fix and document PLL LDO voltage selectionPhilipp Tomsich
The PRCM_PLL_CTRL_LDO_OUT_L and PRCM_PLL_CTRL_LDO_OUT_H macros had their meaning reversed. This is fixed by this change-set. With this changed, the PRCM_PLL_CTRL_LDO_OUT_L(1370) now becomes self-evident as setting the voltage to 1.37v (which it had done all along, even though stating a different target voltage). After changing the PLL LDO setting, it will take a little while for the voltage output to settle. A sdelay()-based loop waits the same order of magnitude as Boot1. Furthermore, a bit of documentation is added to clarify that the required setting for the PLL LDO is 1.37v as per the A31 manual.
2015-07-30ARM: sun6i: Initialize PLL6 to 600MHzPhilipp Tomsich
This replaces the previous initialization of PLL6 using a magic value instead of a properly constructed setting for 600MHz and documents the recommendation/requirement to have PLL6 operating at 600MHz. The following issues with the original intialization sequence are fixed with this: * we now wait for PLL6 to lock, before proceeding * we no longer write the lock-bit (which is specified R/O) * we don't write the (unused) bits where other PLLs have their divider configuration field
2015-07-30sun6i: Sync PLL1 multipliers/dividers with Boot1Philipp Tomsich
This change syncs up the multipliers and dividers used to initialize PLL1 (i.e. the fast clock driving the ARM cores) with the values used in Allwinner's Boot1 on sun6i. More specifically, the following settings are now used: * up to 768MHz: mul=2, div=2 (was: mul=1, div=1) * up to 1152MHz: mul=3, div=2 (unchanged) * above 1152MHz: mul=4, div=2 (was: mul=2, div=1)
2015-07-30ARM: sun6i: Wait for PLL lock bit on PLL updatePhilipp Tomsich
This unifies the handling of PLL updates for sun6i (A31) by waiting for the PLL lock bit of an updated PLL. This changes the previous practice of either waiting for a "magic" duration using sdelay() or not waiting at all. Note, that we can't use a timer-based timeout, as the PLL update may affect the timekeeping.
2015-07-14Prepare v2015.07v2015.07masterTom Rini
Signed-off-by: Tom Rini <trini@konsulko.com>