Heiko Schocher | 499c498 | 2013-08-19 16:39:01 +0200 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2013 Siemens Schweiz AG |
| 3 | * (C) Heiko Schocher, DENX Software Engineering, hs@denx.de. |
| 4 | * |
| 5 | * Based on: |
| 6 | * U-Boot file:/include/configs/am335x_evm.h |
| 7 | * |
| 8 | * Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/ |
| 9 | * |
| 10 | * SPDX-License-Identifier: GPL-2.0+ |
| 11 | */ |
| 12 | |
| 13 | #ifndef __CONFIG_DXR2_H |
| 14 | #define __CONFIG_DXR2_H |
| 15 | |
| 16 | #define CONFIG_SIEMENS_DXR2 |
| 17 | #define MACH_TYPE_DXR2 4315 |
| 18 | #define CONFIG_SIEMENS_MACH_TYPE MACH_TYPE_DXR2 |
| 19 | |
| 20 | #include "siemens-am33x-common.h" |
| 21 | |
| 22 | #define CONFIG_SYS_MPUCLK 275 |
| 23 | #define DXR2_IOCTRL_VAL 0x18b |
Samuel Egli | 8069bfe | 2013-11-04 14:05:03 +0100 | [diff] [blame] | 24 | #define DDR_PLL_FREQ 303 |
| 25 | #undef CONFIG_SPL_AM33XX_ENABLE_RTC32K_OSC |
Heiko Schocher | 499c498 | 2013-08-19 16:39:01 +0200 | [diff] [blame] | 26 | |
| 27 | #define BOARD_DFU_BUTTON_GPIO 27 |
| 28 | #define BOARD_DFU_BUTTON_LED 64 |
Stefan Roese | 7d654ab | 2014-02-25 11:07:22 +0100 | [diff] [blame] | 29 | #define GPIO_LAN9303_NRST 88 /* GPIO2_24 = gpio88 */ |
Heiko Schocher | 499c498 | 2013-08-19 16:39:01 +0200 | [diff] [blame] | 30 | |
| 31 | #undef CONFIG_DOS_PARTITION |
| 32 | #undef CONFIG_CMD_FAT |
| 33 | |
| 34 | |
| 35 | /* Physical Memory Map */ |
| 36 | #define CONFIG_MAX_RAM_BANK_SIZE (1024 << 20) /* 1GB */ |
| 37 | |
| 38 | /* I2C Configuration */ |
| 39 | #define CONFIG_SYS_I2C_SPEED 100000 |
| 40 | |
| 41 | #define CONFIG_SYS_I2C_EEPROM_ADDR 0x50 |
| 42 | #define EEPROM_ADDR_DDR3 0x90 |
| 43 | #define EEPROM_ADDR_CHIP 0x120 |
| 44 | |
| 45 | #define CONFIG_SYS_U_BOOT_MAX_SIZE_SECTORS 0x300 |
| 46 | |
| 47 | #undef CONFIG_SPL_NET_SUPPORT |
| 48 | #undef CONFIG_SPL_NET_VCI_STRING |
| 49 | #undef CONFIG_SPL_ETH_SUPPORT |
| 50 | |
| 51 | #undef CONFIG_MII |
| 52 | #undef CONFIG_PHY_GIGE |
Heiko Schocher | 499c498 | 2013-08-19 16:39:01 +0200 | [diff] [blame] | 53 | #define CONFIG_PHY_SMSC |
| 54 | |
| 55 | #define CONFIG_FACTORYSET |
| 56 | |
| 57 | /* Watchdog */ |
| 58 | #define CONFIG_OMAP_WATCHDOG |
| 59 | |
| 60 | #ifndef CONFIG_SPL_BUILD |
| 61 | |
| 62 | /* Default env settings */ |
| 63 | #define CONFIG_EXTRA_ENV_SETTINGS \ |
| 64 | "hostname=dxr2\0" \ |
Samuel Egli | 8069bfe | 2013-11-04 14:05:03 +0100 | [diff] [blame] | 65 | "nand_img_size=0x400000\0" \ |
Heiko Schocher | 499c498 | 2013-08-19 16:39:01 +0200 | [diff] [blame] | 66 | "optargs=\0" \ |
| 67 | CONFIG_COMMON_ENV_SETTINGS |
| 68 | |
| 69 | #ifndef CONFIG_RESTORE_FLASH |
| 70 | /* set to negative value for no autoboot */ |
| 71 | #define CONFIG_BOOTDELAY 3 |
| 72 | |
| 73 | #define CONFIG_BOOTCOMMAND \ |
| 74 | "if dfubutton; then " \ |
| 75 | "run dfu_start; " \ |
| 76 | "reset; " \ |
| 77 | "fi;" \ |
Samuel Egli | 8069bfe | 2013-11-04 14:05:03 +0100 | [diff] [blame] | 78 | "run nand_boot;" \ |
| 79 | "reset;" |
| 80 | |
Heiko Schocher | 499c498 | 2013-08-19 16:39:01 +0200 | [diff] [blame] | 81 | |
| 82 | #else |
| 83 | #define CONFIG_BOOTDELAY 0 |
| 84 | |
| 85 | #define CONFIG_BOOTCOMMAND \ |
| 86 | "setenv autoload no; " \ |
| 87 | "dhcp; " \ |
| 88 | "if tftp 80000000 debrick.scr; then " \ |
| 89 | "source 80000000; " \ |
| 90 | "fi" |
| 91 | #endif |
| 92 | #endif /* CONFIG_SPL_BUILD */ |
| 93 | #endif /* ! __CONFIG_DXR2_H */ |