blob: 2255958db036186e2209c4b064cfd530d23ab0aa [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Albert ARIBAUD \(3ADEV\)ee69a392015-03-31 11:40:51 +02002/*
3 * WORK Microwave work_92105 board configuration file
4 *
5 * (C) Copyright 2014 DENX Software Engineering GmbH
6 * Written-by: Albert ARIBAUD <albert.aribaud@3adev.fr>
Albert ARIBAUD \(3ADEV\)ee69a392015-03-31 11:40:51 +02007 */
8
9#ifndef __CONFIG_WORK_92105_H__
10#define __CONFIG_WORK_92105_H__
11
12/* SoC and board defines */
13#include <linux/sizes.h>
14#include <asm/arch/cpu.h>
15
16/*
17 * Define work_92105 machine type by hand -- done only for compatibility
18 * with original board code
19 */
Tom Rinic6e2db42017-01-25 20:42:38 -050020#define CONFIG_MACH_TYPE 736
Albert ARIBAUD \(3ADEV\)ee69a392015-03-31 11:40:51 +020021
Albert ARIBAUD \(3ADEV\)ee69a392015-03-31 11:40:51 +020022#if !defined(CONFIG_SPL_BUILD)
23#define CONFIG_SKIP_LOWLEVEL_INIT
24#endif
Albert ARIBAUD \(3ADEV\)ee69a392015-03-31 11:40:51 +020025
Albert ARIBAUD \(3ADEV\)ee69a392015-03-31 11:40:51 +020026/*
27 * Memory configurations
28 */
Albert ARIBAUD \(3ADEV\)ee69a392015-03-31 11:40:51 +020029#define CONFIG_SYS_MALLOC_LEN SZ_1M
30#define CONFIG_SYS_SDRAM_BASE EMC_DYCS0_BASE
31#define CONFIG_SYS_SDRAM_SIZE SZ_128M
Albert ARIBAUD \(3ADEV\)ee69a392015-03-31 11:40:51 +020032
33#define CONFIG_SYS_LOAD_ADDR (CONFIG_SYS_SDRAM_BASE + SZ_32K)
34
35#define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_SDRAM_BASE + SZ_512K \
36 - GENERATED_GBL_DATA_SIZE)
37
38/*
Albert ARIBAUD \(3ADEV\)ee69a392015-03-31 11:40:51 +020039 * Ethernet Driver
40 */
41
Albert ARIBAUD \(3ADEV\)ee69a392015-03-31 11:40:51 +020042#define CONFIG_LPC32XX_ETH
Albert ARIBAUD \(3ADEV\)ee69a392015-03-31 11:40:51 +020043#define CONFIG_SYS_FAULT_ECHO_LINK_DOWN
Albert ARIBAUD \(3ADEV\)ee69a392015-03-31 11:40:51 +020044/* FIXME: remove "Waiting for PHY auto negotiation to complete..." message */
45
Albert ARIBAUD \(3ADEV\)ee69a392015-03-31 11:40:51 +020046#define CONFIG_RTC_DS1374
47
48/*
Albert ARIBAUD \(3ADEV\)ee69a392015-03-31 11:40:51 +020049 * U-Boot General Configurations
50 */
Albert ARIBAUD \(3ADEV\)ee69a392015-03-31 11:40:51 +020051#define CONFIG_SYS_CBSIZE 1024
Albert ARIBAUD \(3ADEV\)ee69a392015-03-31 11:40:51 +020052#define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE
53
Albert ARIBAUD \(3ADEV\)ee69a392015-03-31 11:40:51 +020054/*
Albert ARIBAUD \(3ADEV\)ee69a392015-03-31 11:40:51 +020055 * NAND chip timings for FIXME: which one?
56 */
57
58#define CONFIG_LPC32XX_NAND_MLC_TCEA_DELAY 333333333
59#define CONFIG_LPC32XX_NAND_MLC_BUSY_DELAY 10000000
60#define CONFIG_LPC32XX_NAND_MLC_NAND_TA 18181818
61#define CONFIG_LPC32XX_NAND_MLC_RD_HIGH 31250000
62#define CONFIG_LPC32XX_NAND_MLC_RD_LOW 45454545
63#define CONFIG_LPC32XX_NAND_MLC_WR_HIGH 40000000
64#define CONFIG_LPC32XX_NAND_MLC_WR_LOW 83333333
65
66/*
67 * NAND
68 */
69
70/* driver configuration */
71#define CONFIG_SYS_NAND_SELF_INIT
72#define CONFIG_SYS_MAX_NAND_DEVICE 1
73#define CONFIG_SYS_MAX_NAND_CHIPS 1
74#define CONFIG_SYS_NAND_BASE MLC_NAND_BASE
75#define CONFIG_NAND_LPC32XX_MLC
76
Albert ARIBAUD \(3ADEV\)ee69a392015-03-31 11:40:51 +020077/*
78 * GPIO
79 */
80
Albert ARIBAUD \(3ADEV\)ee69a392015-03-31 11:40:51 +020081#define CONFIG_LPC32XX_GPIO
82
83/*
Albert ARIBAUD \(3ADEV\)ee69a392015-03-31 11:40:51 +020084 * Environment
85 */
86
Albert ARIBAUD \(3ADEV\)ee69a392015-03-31 11:40:51 +020087/*
Albert ARIBAUD \(3ADEV\)ee69a392015-03-31 11:40:51 +020088 * Boot Linux
89 */
90#define CONFIG_CMDLINE_TAG
91#define CONFIG_SETUP_MEMORY_TAGS
92#define CONFIG_INITRD_TAG
93
Albert ARIBAUD \(3ADEV\)ee69a392015-03-31 11:40:51 +020094#define CONFIG_BOOTFILE "uImage"
Albert ARIBAUD \(3ADEV\)ee69a392015-03-31 11:40:51 +020095#define CONFIG_LOADADDR 0x80008000
96
97/*
98 * SPL
99 */
100
101/* SPL will be executed at offset 0 */
Albert ARIBAUD \(3ADEV\)ee69a392015-03-31 11:40:51 +0200102/* SPL will use SRAM as stack */
103#define CONFIG_SPL_STACK 0x0000FFF8
Albert ARIBAUD \(3ADEV\)ee69a392015-03-31 11:40:51 +0200104/* Use the framework and generic lib */
Albert ARIBAUD \(3ADEV\)ee69a392015-03-31 11:40:51 +0200105/* SPL will use serial */
Albert ARIBAUD \(3ADEV\)ee69a392015-03-31 11:40:51 +0200106/* SPL will load U-Boot from NAND offset 0x40000 */
Albert ARIBAUD \(3ADEV\)ee69a392015-03-31 11:40:51 +0200107#define CONFIG_SYS_NAND_U_BOOT_OFFS 0x00040000
108#define CONFIG_SPL_PAD_TO 0x20000
109/* U-Boot will be 0x40000 bytes, loaded and run at CONFIG_SYS_TEXT_BASE */
110#define CONFIG_SYS_MONITOR_LEN 0x40000 /* actually, MAX size */
111#define CONFIG_SYS_NAND_U_BOOT_START CONFIG_SYS_TEXT_BASE
112#define CONFIG_SYS_NAND_U_BOOT_DST CONFIG_SYS_TEXT_BASE
113
114/*
115 * Include SoC specific configuration
116 */
117#include <asm/arch/config.h>
118
119#endif /* __CONFIG_WORK_92105_H__*/