uboot/include
Stephen Warren f031f501ef rpi: BCM2837 and Raspberry Pi 3 32-bit support
The Raspberry Pi 3 contains a BCM2837 SoC. The BCM2837 is a BCM2836 with
the CPU complex swapped out for a quad-core ARMv8. This can operate in 32-
or 64-bit mode. 32-bit mode is the current default selected by the
VideoCore firmware on the Raspberry Pi 3. This patch adds a 32-bit port of
U-Boot for the Raspberry Pi 3.

>From U-Boot's perspective, the only delta between the RPi 2 and RPi 3 is a
change in usage of the SoC UARTs. On all previous Pis, the PL011 was the
only UART in use. The Raspberry Pi 3 adds a Bluetooth module which uses a
UART to connect to the SoC. By default, the PL011 is used for this purpose
since it has larger FIFOs than the other "mini" UART. However, this can
be configured via the VideoCore firmware's config.txt file. This patch
hard-codes use of the mini UART in the RPi 3 port. If your system uses the
PL011 UART for the console even on the RPi 3, please use the RPi 2 U-Boot
port instead. A future change might determine which UART to use at
run-time, thus allowing the RPi 2 and RPi 3 (32-bit) ports to be squashed
together.

The mini UART has some limitations. One externally visible issue in the
BCM2837 integration is that the UART divides the SoC's "core clock" to
generate the baud rate. The core clock is typically variable, and under
control of the VideoCore firmware for thermal management reasons. If the
VC FW does modify the core clock rate, UART communication will be
corrupted since the baud rate will vary from the expected value. This was
not an issue for the PL011 UART, since it is fed by a fixed 3MHz clock. To
work around this, the VideoCore firmware can be told not to modify the SoC
core clock. However, the only way this can happen and be thermally safe is
to limit the core clock to a low/minimum frequency. This leaves
performance on the table for use-cases that don't care about a UART
console. Consequently, use of the mini UART console must be explicitly
requested by entering the following line into config.txt:

    enable_uart=1

A recent version of the VC firmware is required to ensure that the mini
UART is fully and correctly initialized by the VC FW; at least
firmware.git 046effa13ebc "firmware: arm_loader: emmc clock depends on
core clock See: https://github.com/raspberrypi/firmware/issues/572".

Signed-off-by: Stephen Warren <swarren@wwwdotorg.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
2016-04-01 17:17:42 -04:00
..
andestech
asm-generic gpio: Use const where possible 2016-03-17 10:27:22 +08:00
bedbug
cavium armv8: cavium: Add an implementation of ATF calling functions 2016-01-19 22:26:12 +00:00
configs rpi: BCM2837 and Raspberry Pi 3 32-bit support 2016-04-01 17:17:42 -04:00
cramfs
dm serial: add BCM283x mini UART driver 2016-03-27 09:12:52 -04:00
dt-bindings include/dt-bindings: Sync some files with the kernel 2016-03-23 22:04:13 +01:00
faraday
fsl-mc driver: net: fsl-mc: flib changes for MC FW 9.0.0 2016-01-27 08:13:10 -08:00
grlib
jffs2
linux compiler*.h: sync include/linux/compiler*.h with Linux 4.5-rc6 2016-02-29 11:43:24 -05:00
lzma
mtd
net
pcmcia
power pmic: tps65218: add useful functions and defines 2016-02-24 18:44:07 -05:00
samsung
synopsys
test
u-boot Kconfig: Move CONFIG_FIT and related options to Kconfig 2016-03-14 19:18:07 -04:00
usb Add more SPDX-License-Identifier tags 2016-01-19 08:31:21 -05:00
zfs
.gitignore cmd: Fix license command 2016-03-22 12:16:13 -04:00
ACEX1K.h
MCD_dma.h
MCD_progCheck.h
MCD_tasksInit.h
SA-1100.h
_exports.h
adc.h
addr_map.h Add more SPDX-License-Identifier tags 2016-01-19 08:31:21 -05:00
aes.h
ahci.h dm: ahci: Convert to use new DM PCI API 2016-01-12 10:19:09 -07:00
ali512x.h
altera.h fpga: altera: Add StratixV support 2016-03-24 09:47:43 +01:00
ambapp.h
ambapp_ids.h
android_image.h
ansi.h
api_public.h
armcoremodule.h
asm-offsets.h
ata.h
atmel_hlcdc.h
atmel_lcd.h
atmel_lcdc.h
atmel_mci.h
autoboot.h
axp152.h
axp209.h
axp221.h sunxi: axp: Generalize register macros for VBUS drive GPIO 2016-03-31 17:03:52 +02:00
axp818.h power: axp818: Add support for FLDOs 2016-03-31 17:03:58 +02:00
axp_pmic.h power: axp818: Add support for FLDOs 2016-03-31 17:03:58 +02:00
backlight.h dm: backlight: Add a backlight uclass 2016-01-21 20:42:36 -07:00
bcd.h
bios_emul.h dm: pci: Convert bios_emu to use the driver model PCI API 2016-01-24 12:07:19 +08:00
bitfield.h
blk.h dm: blk: Add a block-device uclass 2016-03-14 15:34:50 -06:00
bmp_layout.h
bootcount.h
bootm.h
bootretry.h
bootstage.h
bouncebuf.h
bus_vcxk.h
bzlib.h bzip2: Support compression for sandbox 2016-01-20 19:06:23 -07:00
cbfs.h
circbuf.h
cli.h
cli_hush.h
clk.h dm: clk: Add support for decoding clocks from the device tree 2016-01-21 19:47:29 -07:00
cmd_spl.h
command.h Drop command-processing code when CONFIG_CMDLINE is disabled 2016-04-01 17:17:40 -04:00
common.h Merge git://git.denx.de/u-boot-dm 2016-03-14 19:21:44 -04:00
common_timing_params.h Add more SPDX-License-Identifier tags 2016-01-19 08:31:21 -05:00
commproc.h
compiler.h Revert "include/linux: move typdef for uintptr_t" 2015-12-16 07:11:15 -05:00
config_cmd_all.h Remove unused CONFIG_CMD_HWFLOW option and associated dead code. 2016-02-08 10:22:44 -05:00
config_defaults.h
config_distro_bootcmd.h arm64: Replace fdt_name env variables with fdtfile 2016-03-15 21:30:13 -04:00
config_distro_defaults.h Move CONFIG_OF_LIBFDT to Kconfig 2016-03-14 14:50:25 -04:00
config_fallbacks.h Drop various features when the command line is not available 2016-03-22 12:16:11 -04:00
config_fsl_chain_trust.h SECURE_BOOT: Use default bootargs 2016-03-29 08:46:23 -07:00
config_phylib_all_drivers.h
config_uncmd_spl.h spl: dm: Add SPL_DM_SEQ_ALIAS config option 2016-01-13 13:20:02 +01:00
console.h console: Add a console buffer 2015-11-19 20:27:50 -07:00
cortina.h
cpsw.h
cpu.h cpu: Add support for microcode version and CPU ID 2016-03-17 10:27:22 +08:00
crc.h include/crc.h: Remove unreferenced cyg_xxx() prototypes 2016-03-14 19:18:42 -04:00
cros_ec.h
cros_ec_message.h
dataflash.h
ddr_spd.h Add more SPDX-License-Identifier tags 2016-01-19 08:31:21 -05:00
debug_uart.h debug_uart: output CR along with LF 2016-03-14 15:34:50 -06:00
dfu.h dfu: usb: f_dfu: Set deferred call for dfu_flush() function 2016-02-24 19:12:32 +01:00
dialog_pmic.h
display.h dm: video: Add a operation to display uclass 2016-03-14 22:01:26 +01:00
display_options.h
div64.h
dm-demo.h
dm.h
dm9000.h
dma.h dm: implement a DMA uclass 2016-02-23 16:14:45 +05:30
dp83848.h
ds1722.h
ds4510.h Add more SPDX-License-Identifier tags 2016-01-19 08:31:21 -05:00
dtt.h
dwc3-omap-uboot.h
dwc3-uboot.h
dwmmc.h mmc: dw_mmc: support fifo mode in dwc mmc driver 2015-12-01 08:07:22 -07:00
e500.h
ec_commands.h
edid.h dm: video: Repurpose the 'displayport' uclass to 'display' 2016-01-21 20:42:36 -07:00
efi.h include/efi_api.h: Add more detailed API definitions 2016-03-15 15:19:23 -04:00
efi_api.h efi_loader: Add GOP support 2016-03-27 09:12:12 -04:00
efi_loader.h efi_loader: Add GOP support 2016-03-27 09:12:12 -04:00
elf.h
env_attr.h
env_callback.h
env_default.h
env_flags.h tools: env validate: pass values as 0-based array 2016-02-08 10:10:29 -05:00
environment.h
errno.h
ethsw.h drivers: net: vsc9953: Add LAG support 2016-01-28 12:22:19 -06:00
exports.h
ext4fs.h dm: Drop the block_dev_desc_t typedef 2016-03-14 15:34:50 -06:00
ext_common.h
exynos_lcd.h
fastboot.h
fat.h dm: Drop the block_dev_desc_t typedef 2016-03-14 15:34:50 -06:00
fb_mmc.h
fb_nand.h
fdt.h
fdt_simplefb.h
fdt_support.h
fdtdec.h x86: dts: Drop memory SPD compatible string 2016-03-17 10:27:27 +08:00
fis.h
flash.h stm32: stm32f4: move flash driver to mtd driver location 2016-03-26 18:49:28 -04:00
fm_eth.h
fpga.h fpga: Add bitstream type BIT_NONE 2016-01-27 15:55:54 +01:00
fs.h Add more SPDX-License-Identifier tags 2016-01-19 08:31:21 -05:00
fsl_csu.h
fsl_dcu_fb.h
fsl_ddr.h Add more SPDX-License-Identifier tags 2016-01-19 08:31:21 -05:00
fsl_ddr_dimm_params.h Add more SPDX-License-Identifier tags 2016-01-19 08:31:21 -05:00
fsl_ddr_sdram.h driver/ddr/fsl: Add address parity support for DDR4 UDIMM/discrete 2016-03-21 12:42:13 -07:00
fsl_ddrc_version.h
fsl_debug_server.h
fsl_devdis.h
fsl_diu_fb.h
fsl_dspi.h
fsl_dtsec.h
fsl_errata.h fsl/ddr: updated ddr errata-A008378 for arm and power SoCs 2015-12-13 18:27:28 -08:00
fsl_esdhc.h ARM: imx: fsl_esdhc: fix usage of low 4 bits of sysctl register 2016-01-03 15:21:21 +01:00
fsl_fman.h fm: fdt: Move fman ucode fixup to driver code 2016-02-24 08:51:13 -08:00
fsl_ifc.h
fsl_immap.h
fsl_mdio.h net: tsec: fsl_mdio: Fix several cosmetic issues 2016-01-28 12:22:49 -06:00
fsl_memac.h
fsl_pmic.h
fsl_qe.h qe: move drivers/qe/qe.h to include/fsl_qe.h 2016-02-24 08:51:13 -08:00
fsl_sec.h imx: Refactoring CAAM Job Ring structure and Secure Memory for imx7 2016-02-21 11:20:54 +01:00
fsl_sec_mon.h
fsl_secboot_err.h armv8: fsl-lsch3: Add new header for secure boot 2016-03-29 08:46:20 -07:00
fsl_sfp.h armv8: ls2080: Add SFP Configs for LS2080 2016-03-29 08:46:19 -07:00
fsl_tgec.h
fsl_usb.h drivers:usb:fsl: Add T4080 as affected soc for Erratum A007792 sw workaround 2015-12-07 00:14:59 +01:00
fsl_validate.h SECURE BOOT: Change fsl_secboot_validate func to pass image addr 2016-03-29 08:46:23 -07:00
fsl_wdog.h imx_watchdog: always set minimal timeout in reset_cpu 2016-01-07 17:54:53 +01:00
fuse.h
g_dnl.h
gdsys_fpga.h
gt64120.h
hash.h hash.c: Conditionally compile hash_command, static hash_show 2016-01-13 21:05:08 -05:00
hw_sha.h
hwconfig.h
i2c.h i2c: Fix the comment to match the function described 2015-11-27 05:54:21 +01:00
i2c_eeprom.h
i2s.h
i8042.h input: i8042: Make sure the keyboard is enabled 2016-03-17 10:27:24 +08:00
ide.h dm: Add a new header for block devices 2016-03-14 15:34:50 -06:00
image-sparse.h
image.h spl: Add an option to load a FIT containing U-Boot 2016-03-14 19:18:30 -04:00
imx_thermal.h
initcall.h
input.h input: Change LED state bits to conform i8042 compatible keyboard 2015-11-19 20:13:42 -07:00
inttypes.h
iomux.h
ioports.h
iotrace.h
ipu_pixfmt.h
key_matrix.h
keyboard.h input: Convert 'keyboard' driver to use input library 2015-11-19 20:13:41 -07:00
kgdb.h
lattice.h
lcd.h lcd: fix the color testpattern in 16bit mode 2016-01-24 00:38:40 +01:00
lcd_console.h
lcdvideo.h
ld9040.h
led-display.h
led.h
libata.h
libfdt.h libfdt: Add a function to write a property placeholder 2016-03-14 14:19:11 -04:00
libfdt_env.h
libtizen.h
linker_lists.h
linux_logo.h
lmb.h
logbuff.h
lxt971a.h
lynxkdi.h
malloc.h malloc: use hidden visibility 2016-03-08 15:01:47 -05:00
mapmem.h
mb862xx.h
mc9sdz60.h
mc13783.h
mc13892.h
mc34704.h
memalign.h
membuff.h Add a circular memory buffer implementation 2015-11-19 20:27:50 -07:00
menu.h
micrel.h
mii_phy.h
miiphy.h
mipi_display.h
misc.h include: Correct "requset" typoes in misc.h 2016-01-08 10:15:42 -05:00
mk48t59.h
mmc.h dm: Drop the block_dev_desc_t typedef 2016-03-14 15:34:50 -06:00
mpc5xx.h
mpc5xxx.h
mpc5xxx_sdma.h
mpc8xx.h
mpc8xx_irq.h
mpc83xx.h powerpc/83xx: fix build failure 2016-01-20 10:19:40 -05:00
mpc85xx.h
mpc86xx.h
mpc106.h
mpc823_lcd.h
mpc8260.h
mpc8260_irq.h
msc01.h
mtd.h
mtd_node.h
mv88e6352.h
mvebu_mmc.h
mvmfp.h
nand.h Add more SPDX-License-Identifier tags 2016-01-19 08:31:21 -05:00
net.h net: export eth_setenv_enetaddr_by_index() to net.h 2016-03-27 09:12:26 -04:00
netdev.h net: emaclite: Move driver to DM 2016-01-27 15:55:52 +01:00
ns16550.h dm: ns16550: Add support for reg-offset property 2016-03-17 21:27:39 -06:00
ns87308.h
onenand_uboot.h
os.h
palmas.h
panel.h dm: panel: Add a panel uclass 2016-01-21 20:42:36 -07:00
part.h disk/part.c: Expose list of available block drivers 2016-03-15 15:19:22 -04:00
part_efi.h
pc_keyb.h
pca953x.h Add more SPDX-License-Identifier tags 2016-01-19 08:31:21 -05:00
pca9564.h
pca9698.h
pch.h dm: pch: Add get_io_base op 2016-02-05 12:47:21 +08:00
pci.h pci: make pci_get_hose_head() available to external users 2016-03-21 12:42:12 -07:00
pci_gt64120.h
pci_ids.h
pci_msc01.h
pci_rom.h dm: pci: video: Convert video and pci_rom to use DM PCI API 2016-01-12 10:19:09 -07:00
pcmcia.h
pe.h efi_loader: Add PE image loader 2016-03-15 15:19:23 -04:00
phy.h net: phy: introduce a quirk PHY_FLAG_BROKEN_RESET 2016-01-28 13:20:30 -06:00
phys2bus.h
physmem.h
post.h
ppc_asm.tmpl
ppc_defs.h
ps2mult.h
pwm.h dm: pwm: Add a PWM uclass 2016-01-21 20:42:36 -07:00
pwrseq.h dm: Add a power sequencing uclass 2016-01-21 20:42:34 -07:00
pxa_lcd.h
radeon.h
ram.h
rc4.h
regmap.h
reiserfs.h dm: Drop the block_dev_desc_t typedef 2016-03-14 15:34:50 -06:00
remoteproc.h
reset.h
rtc.h
rtc_def.h
s6e63d6.h
s_record.h
samsung-usb-phy-uboot.h
sandbox-adc.h
sandboxblockdev.h dm: sandbox: Add driver-model block-device support for sandbox 2016-03-14 15:34:50 -06:00
sandboxfs.h dm: Drop the block_dev_desc_t typedef 2016-03-14 15:34:50 -06:00
sata.h dm: Drop the block_dev_desc_t typedef 2016-03-14 15:34:50 -06:00
scf0403_lcd.h
scsi.h
sdhci.h
search.h
sed156x.h
sed13806.h
serial.h
sh_pfc.h
sh_tmu.h
sja1000.h
slre.h
sm501.h
smsc_lpc47m.h
smsc_sio1007.h superio: Add SMSC SIO1007 driver 2016-02-21 13:42:52 +08:00
sound.h
sparse_defs.h
sparse_format.h
spartan2.h
spartan3.h
spd.h
spd_sdram.h
spi.h spi: Add support for dual and quad mode 2016-01-13 18:47:27 +05:30
spi_flash.h Add more SPDX-License-Identifier tags 2016-01-19 08:31:21 -05:00
spl.h Merge git://git.denx.de/u-boot-dm 2016-03-14 19:21:44 -04:00
splash.h
status_led.h
stdio_dev.h
stdlib.h
stratixII.h
sx151x.h
sy8106a.h sunxi: power: add support for sy8106a driver 2016-02-23 20:50:07 +01:00
sym53c8xx.h
syscon.h dm: syscon: Allow finding devices by driver data 2016-01-24 12:07:19 +08:00
systemace.h dm: Drop the block_dev_desc_t typedef 2016-03-14 15:34:50 -06:00
tca642x.h
tegra-kbc.h
thermal.h
thor.h
ti-usb-phy-uboot.h
timer.h timer: Provide an early timer 2016-02-26 08:53:10 -07:00
timestamp.h
tmu.h
tpm.h
tps6586x.h
trace.h
tsec.h net: tsec: Use priv->tbiaddr to initialize TBI PHY address 2016-01-28 12:23:19 -06:00
tsi108.h
tsi148.h
twl4030.h
twl6030.h input: TWL6030 input support for power button, USB and charger 2016-03-15 15:12:57 -04:00
tws.h
ubi_uboot.h
ubifs_uboot.h dm: Drop the block_dev_desc_t typedef 2016-03-14 15:34:50 -06:00
universe.h
usb.h Fix spelling of "transferred". 2016-03-22 12:16:16 -04:00
usb_cdc_acm.h
usb_defs.h
usb_ether.h usb: eth: add Realtek RTL8152B/RTL8153 DRIVER 2016-01-23 16:22:34 +01:00
usb_mass_storage.h dm: Drop the block_dev_desc_t typedef 2016-03-14 15:34:50 -06:00
usbdescriptors.h
usbdevice.h
usbroothubdes.h
uuid.h
vbe.h
version.h
video.h video: Correct 'tor' typo in comment 2016-01-30 10:58:47 +01:00
video_bridge.h
video_console.h video: Provide a backspace method 2016-01-30 10:55:37 +01:00
video_easylogo.h
video_fb.h
video_font.h
video_font_4x6.h
video_font_data.h
video_logo.h
virtex2.h
vsc7385.h
vsc9953.h drivers: net: vsc9953: Add LAG support 2016-01-28 12:22:19 -06:00
vsprintf.h vsprintf.c: Always enable CONFIG_SYS_VSNPRINTF 2016-01-19 08:31:16 -05:00
vxworks.h
w83c553f.h
wait_bit.h lib: Add wait_for_bit 2016-01-25 10:39:47 -05:00
watchdog.h
winbond_w83627.h misc: Add simple driver to enable the legacy UART on Winbond Super IO chips 2016-01-28 13:53:30 +08:00
xilinx.h
xyzModem.h
zfs_common.h dm: Drop the block_dev_desc_t typedef 2016-03-14 15:34:50 -06:00
zynqpl.h