Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Heiko Schocher | c0dcece | 2013-08-19 16:39:01 +0200 | [diff] [blame] | 2 | /* |
| 3 | * siemens pxm2 |
| 4 | * (C) Copyright 2013 Siemens Schweiz AG |
| 5 | * (C) Heiko Schocher, DENX Software Engineering, hs@denx.de. |
| 6 | * |
| 7 | * Based on: |
| 8 | * U-Boot file:/include/configs/am335x_evm.h |
| 9 | * |
| 10 | * Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/ |
Heiko Schocher | c0dcece | 2013-08-19 16:39:01 +0200 | [diff] [blame] | 11 | */ |
| 12 | |
| 13 | #ifndef __CONFIG_PXM2_H |
| 14 | #define __CONFIG_PXM2_H |
| 15 | |
Heiko Schocher | c0dcece | 2013-08-19 16:39:01 +0200 | [diff] [blame] | 16 | #include "siemens-am33x-common.h" |
| 17 | |
Egli, Samuel | 9fc2ed4 | 2014-04-24 17:57:52 +0200 | [diff] [blame] | 18 | #define DDR_IOCTRL_VAL 0x18b |
Heiko Schocher | c0dcece | 2013-08-19 16:39:01 +0200 | [diff] [blame] | 19 | #define DDR_PLL_FREQ 266 |
| 20 | |
| 21 | #define BOARD_DFU_BUTTON_GPIO 59 |
Heiko Schocher | c0dcece | 2013-08-19 16:39:01 +0200 | [diff] [blame] | 22 | #define BOARD_LCD_POWER 111 |
| 23 | #define BOARD_BACK_LIGHT 112 |
| 24 | #define BOARD_TOUCH_POWER 57 |
| 25 | |
Heiko Schocher | 61159b7 | 2015-06-16 14:59:34 +0200 | [diff] [blame] | 26 | #define CONFIG_ENV_SETTINGS_BUTTONS_AND_LEDS \ |
| 27 | "button_dfu0=59\0" \ |
| 28 | "led0=117,0,1\0" \ |
| 29 | |
Heiko Schocher | c0dcece | 2013-08-19 16:39:01 +0200 | [diff] [blame] | 30 | /* Physical Memory Map */ |
| 31 | #define CONFIG_MAX_RAM_BANK_SIZE (512 << 20) /* 1GB */ |
| 32 | |
Heiko Schocher | c0dcece | 2013-08-19 16:39:01 +0200 | [diff] [blame] | 33 | #define CONFIG_FACTORYSET |
| 34 | |
Heiko Schocher | c0dcece | 2013-08-19 16:39:01 +0200 | [diff] [blame] | 35 | #ifndef CONFIG_SPL_BUILD |
| 36 | |
Heiko Schocher | 61159b7 | 2015-06-16 14:59:34 +0200 | [diff] [blame] | 37 | /* Use common default */ |
Heiko Schocher | 61159b7 | 2015-06-16 14:59:34 +0200 | [diff] [blame] | 38 | |
Heiko Schocher | c0dcece | 2013-08-19 16:39:01 +0200 | [diff] [blame] | 39 | /* Default env settings */ |
| 40 | #define CONFIG_EXTRA_ENV_SETTINGS \ |
| 41 | "hostname=pxm2\0" \ |
Heiko Schocher | 6b3943f | 2016-06-07 08:55:45 +0200 | [diff] [blame] | 42 | "ubi_off=2048\0"\ |
Heiko Schocher | c0dcece | 2013-08-19 16:39:01 +0200 | [diff] [blame] | 43 | "nand_img_size=0x500000\0" \ |
| 44 | "optargs=\0" \ |
Heiko Schocher | 61159b7 | 2015-06-16 14:59:34 +0200 | [diff] [blame] | 45 | "preboot=draco_led 0\0" \ |
| 46 | CONFIG_ENV_SETTINGS_BUTTONS_AND_LEDS \ |
Samuel Egli | 56eb3da | 2013-11-04 14:05:03 +0100 | [diff] [blame] | 47 | "splashpos=m,m\0" \ |
Heiko Schocher | 61159b7 | 2015-06-16 14:59:34 +0200 | [diff] [blame] | 48 | CONFIG_ENV_SETTINGS_V1 \ |
| 49 | CONFIG_ENV_SETTINGS_NAND_V1 \ |
Heiko Schocher | c0dcece | 2013-08-19 16:39:01 +0200 | [diff] [blame] | 50 | "mmc_dev=0\0" \ |
| 51 | "mmc_root=/dev/mmcblk0p2 rw\0" \ |
| 52 | "mmc_root_fs_type=ext4 rootwait\0" \ |
| 53 | "mmc_load_uimage=" \ |
| 54 | "mmc rescan; " \ |
| 55 | "setenv bootfile uImage;" \ |
| 56 | "fatload mmc ${mmc_dev} ${kloadaddr} ${bootfile}\0" \ |
| 57 | "loadbootenv=fatload mmc ${mmc_dev} ${loadaddr} ${bootenv}\0" \ |
| 58 | "importbootenv=echo Importing environment from mmc ...; " \ |
| 59 | "env import -t $loadaddr $filesize\0" \ |
| 60 | "mmc_args=run bootargs_defaults;" \ |
| 61 | "mtdparts default;" \ |
| 62 | "setenv bootargs ${bootargs} " \ |
| 63 | "root=${mmc_root} ${mtdparts}" \ |
| 64 | "rootfstype=${mmc_root_fs_type} ip=${ip_method} " \ |
| 65 | "eth=${ethaddr} " \ |
| 66 | "\0" \ |
| 67 | "mmc_boot=run mmc_args; " \ |
| 68 | "run mmc_load_uimage; " \ |
| 69 | "bootm ${kloadaddr}\0" \ |
| 70 | "" |
| 71 | |
| 72 | #ifndef CONFIG_RESTORE_FLASH |
| 73 | /* set to negative value for no autoboot */ |
Heiko Schocher | c0dcece | 2013-08-19 16:39:01 +0200 | [diff] [blame] | 74 | #endif |
| 75 | #endif /* CONFIG_SPL_BUILD */ |
| 76 | |
Heiko Schocher | c0dcece | 2013-08-19 16:39:01 +0200 | [diff] [blame] | 77 | #if defined(CONFIG_VIDEO) |
| 78 | #define CONFIG_VIDEO_DA8XX |
Heiko Schocher | c0dcece | 2013-08-19 16:39:01 +0200 | [diff] [blame] | 79 | #define CONFIG_VIDEO_LOGO |
Heiko Schocher | c0dcece | 2013-08-19 16:39:01 +0200 | [diff] [blame] | 80 | #define CONFIG_VIDEO_BMP_LOGO |
Heiko Schocher | c0dcece | 2013-08-19 16:39:01 +0200 | [diff] [blame] | 81 | #define DA8XX_LCD_CNTL_BASE LCD_CNTL_BASE |
| 82 | #define PWM_TICKS 0x1388 |
| 83 | #define PWM_DUTY 0x200 |
Heiko Schocher | c0dcece | 2013-08-19 16:39:01 +0200 | [diff] [blame] | 84 | #endif |
| 85 | |
Heiko Schocher | c0dcece | 2013-08-19 16:39:01 +0200 | [diff] [blame] | 86 | #endif /* ! __CONFIG_PXM2_H */ |