Heiko Schocher | 499c498 | 2013-08-19 16:39:01 +0200 | [diff] [blame] | 1 | /* |
| 2 | * siemens pxm2 |
| 3 | * (C) Copyright 2013 Siemens Schweiz AG |
| 4 | * (C) Heiko Schocher, DENX Software Engineering, hs@denx.de. |
| 5 | * |
| 6 | * Based on: |
| 7 | * U-Boot file:/include/configs/am335x_evm.h |
| 8 | * |
| 9 | * Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/ |
| 10 | * |
| 11 | * SPDX-License-Identifier: GPL-2.0+ |
| 12 | */ |
| 13 | |
| 14 | #ifndef __CONFIG_PXM2_H |
| 15 | #define __CONFIG_PXM2_H |
| 16 | |
| 17 | #define CONFIG_SIEMENS_PXM2 |
| 18 | #define MACH_TYPE_PXM2 4309 |
| 19 | #define CONFIG_SIEMENS_MACH_TYPE MACH_TYPE_PXM2 |
| 20 | |
| 21 | #include "siemens-am33x-common.h" |
| 22 | |
| 23 | #define CONFIG_SYS_MPUCLK 720 |
| 24 | #define DXR2_IOCTRL_VAL 0x18b |
| 25 | #define DDR_PLL_FREQ 266 |
| 26 | |
| 27 | #define BOARD_DFU_BUTTON_GPIO 59 |
| 28 | #define BOARD_DFU_BUTTON_LED 117 |
| 29 | #define BOARD_LCD_POWER 111 |
| 30 | #define BOARD_BACK_LIGHT 112 |
| 31 | #define BOARD_TOUCH_POWER 57 |
| 32 | |
| 33 | /* Physical Memory Map */ |
| 34 | #define CONFIG_MAX_RAM_BANK_SIZE (512 << 20) /* 1GB */ |
| 35 | |
| 36 | /* I2C Configuration */ |
| 37 | #define CONFIG_SYS_I2C_SPEED 400000 |
| 38 | #define CONFIG_SYS_I2C_EEPROM_ADDR 0x50 |
| 39 | |
| 40 | |
| 41 | #define CONFIG_SYS_U_BOOT_MAX_SIZE_SECTORS 0x300 |
| 42 | |
| 43 | #undef CONFIG_SPL_NET_SUPPORT |
| 44 | #undef CONFIG_SPL_NET_VCI_STRING |
| 45 | #undef CONFIG_SPL_ETH_SUPPORT |
| 46 | |
Heiko Schocher | 499c498 | 2013-08-19 16:39:01 +0200 | [diff] [blame] | 47 | #define CONFIG_PHY_ATHEROS |
| 48 | |
| 49 | #define CONFIG_FACTORYSET |
| 50 | |
| 51 | /* UBI Support */ |
| 52 | #ifndef CONFIG_SPL_BUILD |
| 53 | #define CONFIG_CMD_MTDPARTS |
| 54 | #define CONFIG_MTD_PARTITIONS |
| 55 | #define CONFIG_MTD_DEVICE |
| 56 | #define CONFIG_RBTREE |
| 57 | #define CONFIG_LZO |
| 58 | #define CONFIG_CMD_UBI |
| 59 | #define CONFIG_CMD_UBIFS |
| 60 | #endif |
| 61 | |
| 62 | /* Watchdog */ |
| 63 | #define CONFIG_OMAP_WATCHDOG |
| 64 | |
| 65 | #ifndef CONFIG_SPL_BUILD |
| 66 | |
| 67 | /* Default env settings */ |
| 68 | #define CONFIG_EXTRA_ENV_SETTINGS \ |
| 69 | "hostname=pxm2\0" \ |
| 70 | "nand_img_size=0x500000\0" \ |
| 71 | "optargs=\0" \ |
Samuel Egli | 8069bfe | 2013-11-04 14:05:03 +0100 | [diff] [blame] | 72 | "splashpos=m,m\0" \ |
Heiko Schocher | 499c498 | 2013-08-19 16:39:01 +0200 | [diff] [blame] | 73 | CONFIG_COMMON_ENV_SETTINGS \ |
| 74 | "mmc_dev=0\0" \ |
| 75 | "mmc_root=/dev/mmcblk0p2 rw\0" \ |
| 76 | "mmc_root_fs_type=ext4 rootwait\0" \ |
| 77 | "mmc_load_uimage=" \ |
| 78 | "mmc rescan; " \ |
| 79 | "setenv bootfile uImage;" \ |
| 80 | "fatload mmc ${mmc_dev} ${kloadaddr} ${bootfile}\0" \ |
| 81 | "loadbootenv=fatload mmc ${mmc_dev} ${loadaddr} ${bootenv}\0" \ |
| 82 | "importbootenv=echo Importing environment from mmc ...; " \ |
| 83 | "env import -t $loadaddr $filesize\0" \ |
| 84 | "mmc_args=run bootargs_defaults;" \ |
| 85 | "mtdparts default;" \ |
| 86 | "setenv bootargs ${bootargs} " \ |
| 87 | "root=${mmc_root} ${mtdparts}" \ |
| 88 | "rootfstype=${mmc_root_fs_type} ip=${ip_method} " \ |
| 89 | "eth=${ethaddr} " \ |
| 90 | "\0" \ |
| 91 | "mmc_boot=run mmc_args; " \ |
| 92 | "run mmc_load_uimage; " \ |
| 93 | "bootm ${kloadaddr}\0" \ |
| 94 | "" |
| 95 | |
| 96 | #ifndef CONFIG_RESTORE_FLASH |
| 97 | /* set to negative value for no autoboot */ |
| 98 | #define CONFIG_BOOTDELAY 3 |
| 99 | |
| 100 | #define CONFIG_BOOTCOMMAND \ |
| 101 | "if dfubutton; then " \ |
| 102 | "run dfu_start; " \ |
| 103 | "reset; " \ |
| 104 | "fi; " \ |
| 105 | "if mmc rescan; then " \ |
| 106 | "echo SD/MMC found on device ${mmc_dev};" \ |
| 107 | "if run loadbootenv; then " \ |
| 108 | "echo Loaded environment from ${bootenv};" \ |
| 109 | "run importbootenv;" \ |
| 110 | "fi;" \ |
| 111 | "if test -n $uenvcmd; then " \ |
| 112 | "echo Running uenvcmd ...;" \ |
| 113 | "run uenvcmd;" \ |
| 114 | "fi;" \ |
| 115 | "if run mmc_load_uimage; then " \ |
| 116 | "run mmc_args;" \ |
| 117 | "bootm ${kloadaddr};" \ |
| 118 | "fi;" \ |
| 119 | "fi;" \ |
| 120 | "run nand_boot;" \ |
Samuel Egli | 8069bfe | 2013-11-04 14:05:03 +0100 | [diff] [blame] | 121 | "reset;" |
Heiko Schocher | 499c498 | 2013-08-19 16:39:01 +0200 | [diff] [blame] | 122 | |
| 123 | #else |
| 124 | #define CONFIG_BOOTDELAY 0 |
| 125 | |
| 126 | #define CONFIG_BOOTCOMMAND \ |
| 127 | "setenv autoload no; " \ |
| 128 | "dhcp; " \ |
| 129 | "if tftp 80000000 debrick.scr; then " \ |
| 130 | "source 80000000; " \ |
| 131 | "fi" |
| 132 | #endif |
| 133 | #endif /* CONFIG_SPL_BUILD */ |
| 134 | |
| 135 | #define CONFIG_VIDEO |
| 136 | #if defined(CONFIG_VIDEO) |
| 137 | #define CONFIG_VIDEO_DA8XX |
| 138 | #define CONFIG_CFB_CONSOLE |
| 139 | #define CONFIG_VGA_AS_SINGLE_DEVICE |
| 140 | #define CONFIG_SPLASH_SCREEN |
| 141 | #define CONFIG_SPLASH_SCREEN_ALIGN |
| 142 | #define CONFIG_VIDEO_LOGO |
| 143 | #define CONFIG_VIDEO_BMP_RLE8 |
| 144 | #define CONFIG_VIDEO_BMP_LOGO |
| 145 | #define CONFIG_CMD_BMP |
| 146 | #define DA8XX_LCD_CNTL_BASE LCD_CNTL_BASE |
| 147 | #define PWM_TICKS 0x1388 |
| 148 | #define PWM_DUTY 0x200 |
Samuel Egli | 8069bfe | 2013-11-04 14:05:03 +0100 | [diff] [blame] | 149 | #define CONFIG_SYS_CONSOLE_BG_COL 0xff |
| 150 | #define CONFIG_SYS_CONSOLE_FG_COL 0x00 |
Heiko Schocher | 499c498 | 2013-08-19 16:39:01 +0200 | [diff] [blame] | 151 | #endif |
| 152 | |
| 153 | #endif /* ! __CONFIG_PXM2_H */ |