1 /* SPDX-License-Identifier: GPL-2.0+ */ 2 /* 3 * (C) Copyright 2018-2019 NVIDIA Corporation. 4 */ 5 6 #ifndef _P3450_0000_H 7 #define _P3450_0000_H 8 9 #include <linux/sizes.h> 10 11 #include "tegra210-common.h" 12 13 /* High-level configuration options */ 14 #define CONFIG_TEGRA_BOARD_STRING "NVIDIA P3450-0000" 15 16 /* Board-specific serial config */ 17 #define CONFIG_TEGRA_ENABLE_UARTA 18 19 /* Only MMC/PXE/DHCP for now, add USB back in later when supported */ 20 #define BOOT_TARGET_DEVICES(func) \ 21 func(MMC, mmc, 1) \ 22 func(MMC, mmc, 0) \ 23 func(PXE, pxe, na) \ 24 func(DHCP, dhcp, na) 25 26 /* Environment at end of QSPI, in the VER partition */ 27 #define CONFIG_ENV_SPI_MAX_HZ 48000000 28 #define CONFIG_ENV_SPI_MODE SPI_MODE_0 29 #define CONFIG_SPI_FLASH_SIZE (4 << 20) 30 31 #define CONFIG_PREBOOT 32 33 #define BOARD_EXTRA_ENV_SETTINGS \ 34 "preboot=if test -e mmc 1:1 /u-boot-preboot.scr; then " \ 35 "load mmc 1:1 ${scriptaddr} /u-boot-preboot.scr; " \ 36 "source ${scriptaddr}; " \ 37 "fi\0" 38 39 /* General networking support */ 40 #include "tegra-common-usb-gadget.h" 41 #include "tegra-common-post.h" 42 43 /* Crystal is 38.4MHz. clk_m runs at half that rate */ 44 #define COUNTER_FREQUENCY 19200000 45 46 #endif /* _P3450_0000_H */ 47