da850evm.c (0eee446ee811ea3ebbade82cb1d19558736e5603) da850evm.c (cb19c29398cb84e72236ab6bae3763028fce5d44)
1// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Copyright (C) 2010 Texas Instruments Incorporated - http://www.ti.com/
4 *
5 * Based on da830evm.c. Original Copyrights follow:
6 *
7 * Copyright (C) 2009 Nick Thompson, GE Fanuc, Ltd. <nick.thompson@gefanuc.com>
8 * Copyright (C) 2007 Sergey Kubushyn <ksi@koi8.net>

--- 35 unchanged lines hidden (view full) ---

44
45#define CFG_MAC_ADDR_SPI_BUS 0
46#define CFG_MAC_ADDR_SPI_CS 0
47#define CFG_MAC_ADDR_SPI_MAX_HZ CONFIG_SF_DEFAULT_SPEED
48#define CFG_MAC_ADDR_SPI_MODE SPI_MODE_3
49
50#define CFG_MAC_ADDR_OFFSET (flash->size - SZ_64K)
51
1// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Copyright (C) 2010 Texas Instruments Incorporated - http://www.ti.com/
4 *
5 * Based on da830evm.c. Original Copyrights follow:
6 *
7 * Copyright (C) 2009 Nick Thompson, GE Fanuc, Ltd. <nick.thompson@gefanuc.com>
8 * Copyright (C) 2007 Sergey Kubushyn <ksi@koi8.net>

--- 35 unchanged lines hidden (view full) ---

44
45#define CFG_MAC_ADDR_SPI_BUS 0
46#define CFG_MAC_ADDR_SPI_CS 0
47#define CFG_MAC_ADDR_SPI_MAX_HZ CONFIG_SF_DEFAULT_SPEED
48#define CFG_MAC_ADDR_SPI_MODE SPI_MODE_3
49
50#define CFG_MAC_ADDR_OFFSET (flash->size - SZ_64K)
51
52#ifdef CONFIG_SPL_BUILD
53#include <ns16550.h>
54#include <dm/platform_data/spi_davinci.h>
55
56static const struct ns16550_platdata da850evm_serial = {
57 .base = DAVINCI_UART2_BASE,
58 .reg_shift = 2,
59 .clock = 150000000,
60 .fcr = UART_FCR_DEFVAL,
61};
62
63U_BOOT_DEVICE(da850evm_uart) = {
64 .name = "ns16550_serial",
65 .platdata = &da850evm_serial,
66};
67
68static const struct davinci_spi_platdata davinci_spi_data = {
69 .regs = (struct davinci_spi_regs *)0x01f0e000,
70 .num_cs = 4,
71};
72
73U_BOOT_DEVICE(davinci_spi) = {
74 .name = "davinci_spi",
75 .platdata = &davinci_spi_data,
76};
77#endif
78
52#ifdef CONFIG_MAC_ADDR_IN_SPIFLASH
53static int get_mac_addr(u8 *addr)
54{
55 struct spi_flash *flash;
56 int ret;
57
58 flash = spi_flash_probe(CFG_MAC_ADDR_SPI_BUS, CFG_MAC_ADDR_SPI_CS,
59 CFG_MAC_ADDR_SPI_MAX_HZ, CFG_MAC_ADDR_SPI_MODE);

--- 442 unchanged lines hidden ---
79#ifdef CONFIG_MAC_ADDR_IN_SPIFLASH
80static int get_mac_addr(u8 *addr)
81{
82 struct spi_flash *flash;
83 int ret;
84
85 flash = spi_flash_probe(CFG_MAC_ADDR_SPI_BUS, CFG_MAC_ADDR_SPI_CS,
86 CFG_MAC_ADDR_SPI_MAX_HZ, CFG_MAC_ADDR_SPI_MODE);

--- 442 unchanged lines hidden ---