blob: c9c72c94ce2693e67b8e6e89d0cd5db332104fe0 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Mateusz Kulikowski6a302ae2013-12-02 23:30:58 +01002/*
3 * (C) Copyright 2007-2013
4 * Stelian Pop <stelian.pop@leadtechdesign.com>
5 * Lead Tech Design <www.leadtechdesign.com>
6 * Thomas Petazzoni, Free Electrons, <thomas.petazzoni@free-electrons.com>
7 * Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
8 *
9 * Settings for Calao USB-A9263 board
10 *
11 * U-Boot image has to be less than 200704 bytes, otherwise at91bootstrap
12 * installed on board will not be able to load it properly.
Mateusz Kulikowski6a302ae2013-12-02 23:30:58 +010013 */
14
15#ifndef __CONFIG_H
16#define __CONFIG_H
17#include <asm/hardware.h>
18
19/* ARM asynchronous clock */
20#define CONFIG_SYS_AT91_MAIN_CLOCK 12000000 /* 12 MHz crystal */
21#define CONFIG_SYS_AT91_SLOW_CLOCK 32768
Mateusz Kulikowski6a302ae2013-12-02 23:30:58 +010022
23#define CONFIG_MACH_TYPE MACH_TYPE_USB_A9263
24
Mateusz Kulikowski6a302ae2013-12-02 23:30:58 +010025#define CONFIG_CMDLINE_TAG /* enable passing of ATAGs */
26#define CONFIG_SETUP_MEMORY_TAGS
27#define CONFIG_INITRD_TAG
28
Mateusz Kulikowski6a302ae2013-12-02 23:30:58 +010029/*
30 * Hardware drivers
31 */
Mateusz Kulikowski6a302ae2013-12-02 23:30:58 +010032/*
33 * BOOTP options
34 */
35#define CONFIG_BOOTP_BOOTFILESIZE
Mateusz Kulikowski6a302ae2013-12-02 23:30:58 +010036
Mateusz Kulikowski6a302ae2013-12-02 23:30:58 +010037/* SDRAM */
Mateusz Kulikowski6a302ae2013-12-02 23:30:58 +010038#define CONFIG_SYS_SDRAM_BASE ATMEL_BASE_CS1
39#define CONFIG_SYS_SDRAM_SIZE 0x04000000
40
41#define CONFIG_SYS_INIT_SP_ADDR \
Wenyou.Yang@microchip.comd5d29162017-07-21 17:07:46 +080042 (ATMEL_BASE_SRAM1 + 16 * 1024 - GENERATED_GBL_DATA_SIZE)
Mateusz Kulikowski6a302ae2013-12-02 23:30:58 +010043
Mateusz Kulikowski6a302ae2013-12-02 23:30:58 +010044/* NAND flash */
45#ifdef CONFIG_CMD_NAND
Mateusz Kulikowski6a302ae2013-12-02 23:30:58 +010046#define CONFIG_SYS_MAX_NAND_DEVICE 1
47#define CONFIG_SYS_NAND_BASE ATMEL_BASE_CS3
48/* our ALE is AD21 */
49#define CONFIG_SYS_NAND_MASK_ALE (1 << 21)
50/* our CLE is AD22 */
51#define CONFIG_SYS_NAND_MASK_CLE (1 << 22)
52#define CONFIG_SYS_NAND_ENABLE_PIN GPIO_PIN_PD(15)
53#define CONFIG_SYS_NAND_READY_PIN GPIO_PIN_PA(22)
54#endif
55
Mateusz Kulikowski6a302ae2013-12-02 23:30:58 +010056/* Ethernet */
57#define CONFIG_MACB
58#define CONFIG_RMII
59#define CONFIG_NET_RETRY_COUNT 20
60#define CONFIG_AT91_WANTS_COMMON_PHY
61
62/* USB */
63#ifdef CONFIG_CMD_USB
64#define CONFIG_USB_ATMEL
65#define CONFIG_USB_OHCI_NEW
Mateusz Kulikowski6a302ae2013-12-02 23:30:58 +010066#define CONFIG_SYS_USB_OHCI_CPU_INIT
67#define CONFIG_SYS_USB_OHCI_REGS_BASE 0x00a00000
68#define CONFIG_SYS_USB_OHCI_SLOT_NAME "at91sam9263"
69#define CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS 2
Mateusz Kulikowski6a302ae2013-12-02 23:30:58 +010070#endif
71
Wenyou.Yang@microchip.comd5d29162017-07-21 17:07:46 +080072/* bootstrap + u-boot + env + linux in dataflash on CS0 */
Mateusz Kulikowski6a302ae2013-12-02 23:30:58 +010073#define CONFIG_BOOTCOMMAND "nboot 21000000 0"
Mateusz Kulikowski6a302ae2013-12-02 23:30:58 +010074#define CONFIG_EXTRA_ENV_SETTINGS \
Tom Rini5ad8e112017-10-22 17:55:07 -040075 "mtdparts=" CONFIG_MTDPARTS_DEFAULT "\0" \
Mateusz Kulikowski6a302ae2013-12-02 23:30:58 +010076
Mateusz Kulikowski6a302ae2013-12-02 23:30:58 +010077#endif