arm: bcm7xxx: Convert to DM_SERIAL
Remove ns16550 configuration from header files. Document DM_SERIAL-required prior stage device tree configuration.
This commit is contained in:
parent
2c0b0c3182
commit
01065043ad
6 changed files with 10 additions and 21 deletions
|
@ -40,6 +40,6 @@ CONFIG_SYS_RELOC_GD_ENV_ADDR=y
|
||||||
CONFIG_MMC_SDHCI=y
|
CONFIG_MMC_SDHCI=y
|
||||||
CONFIG_MMC_SDHCI_BCMSTB=y
|
CONFIG_MMC_SDHCI_BCMSTB=y
|
||||||
CONFIG_MTD=y
|
CONFIG_MTD=y
|
||||||
CONFIG_SYS_NS16550_SERIAL=y
|
CONFIG_DM_SERIAL=y
|
||||||
CONFIG_SYS_NS16550_REG_SIZE=-4
|
CONFIG_SYS_NS16550=y
|
||||||
# CONFIG_EFI_LOADER is not set
|
# CONFIG_EFI_LOADER is not set
|
||||||
|
|
|
@ -44,8 +44,8 @@ CONFIG_MTD=y
|
||||||
CONFIG_DM_SPI_FLASH=y
|
CONFIG_DM_SPI_FLASH=y
|
||||||
CONFIG_SPI_FLASH_MACRONIX=y
|
CONFIG_SPI_FLASH_MACRONIX=y
|
||||||
CONFIG_SPI_FLASH_STMICRO=y
|
CONFIG_SPI_FLASH_STMICRO=y
|
||||||
CONFIG_SYS_NS16550_SERIAL=y
|
CONFIG_DM_SERIAL=y
|
||||||
CONFIG_SYS_NS16550_REG_SIZE=-4
|
CONFIG_SYS_NS16550=y
|
||||||
CONFIG_SPI=y
|
CONFIG_SPI=y
|
||||||
CONFIG_DM_SPI=y
|
CONFIG_DM_SPI=y
|
||||||
CONFIG_BCMSTB_SPI=y
|
CONFIG_BCMSTB_SPI=y
|
||||||
|
|
|
@ -31,6 +31,12 @@ ${CROSS_COMPILE}strip u-boot
|
||||||
Run
|
Run
|
||||||
===
|
===
|
||||||
|
|
||||||
|
To tell U-Boot which serial port to use for its console, set the
|
||||||
|
"stdout-path" property in the "/chosen" node of the BOLT-generated
|
||||||
|
device tree. For example:
|
||||||
|
|
||||||
|
BOLT> dt add prop chosen stdout-path s serial0:115200n8
|
||||||
|
|
||||||
Flash the u-boot binary into board storage, then invoke it from BOLT.
|
Flash the u-boot binary into board storage, then invoke it from BOLT.
|
||||||
For example:
|
For example:
|
||||||
|
|
||||||
|
|
|
@ -10,8 +10,6 @@
|
||||||
#ifndef __CONFIG_H
|
#ifndef __CONFIG_H
|
||||||
#define __CONFIG_H
|
#define __CONFIG_H
|
||||||
|
|
||||||
#define CFG_SYS_NS16550_COM1 0xf040c000
|
|
||||||
|
|
||||||
#define CFG_SYS_INIT_RAM_ADDR 0x10200000
|
#define CFG_SYS_INIT_RAM_ADDR 0x10200000
|
||||||
|
|
||||||
#include "bcmstb.h"
|
#include "bcmstb.h"
|
||||||
|
|
|
@ -10,8 +10,6 @@
|
||||||
#ifndef __CONFIG_H
|
#ifndef __CONFIG_H
|
||||||
#define __CONFIG_H
|
#define __CONFIG_H
|
||||||
|
|
||||||
#define CFG_SYS_NS16550_COM1 0xf040ab00
|
|
||||||
|
|
||||||
#define CFG_SYS_INIT_RAM_ADDR 0x80200000
|
#define CFG_SYS_INIT_RAM_ADDR 0x80200000
|
||||||
|
|
||||||
#include "bcmstb.h"
|
#include "bcmstb.h"
|
||||||
|
|
|
@ -92,19 +92,6 @@ extern phys_addr_t prior_stage_fdt_address;
|
||||||
* Large kernel image bootm configuration.
|
* Large kernel image bootm configuration.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
|
||||||
* NS16550 configuration.
|
|
||||||
*/
|
|
||||||
#define V_NS16550_CLK 81000000
|
|
||||||
|
|
||||||
#define CFG_SYS_NS16550_CLK V_NS16550_CLK
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Serial console configuration.
|
|
||||||
*/
|
|
||||||
#define CFG_SYS_BAUDRATE_TABLE {4800, 9600, 19200, 38400, 57600, \
|
|
||||||
115200}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Informational display configuration.
|
* Informational display configuration.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in a new issue