1 /* SPDX-License-Identifier: BSD-2-Clause */ 2 /* 3 * Copyright (C) 2015 Freescale Semiconductor, Inc. 4 * Copyright (c) 2016, Wind River Systems. 5 * All rights reserved. 6 * Copyright 2019 NXP 7 * 8 * Redistribution and use in source and binary forms, with or without 9 * modification, are permitted provided that the following conditions are met: 10 * 11 * 1. Redistributions of source code must retain the above copyright notice, 12 * this list of conditions and the following disclaimer. 13 * 14 * 2. Redistributions in binary form must reproduce the above copyright notice, 15 * this list of conditions and the following disclaimer in the documentation 16 * and/or other materials provided with the distribution. 17 * 18 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 19 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 20 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 21 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE 22 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 23 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 24 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 25 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 26 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 27 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 28 * POSSIBILITY OF SUCH DAMAGE. 29 */ 30 31 #ifndef PLATFORM_CONFIG_H 32 #define PLATFORM_CONFIG_H 33 34 #include <mm/generic_ram_layout.h> 35 #include <imx-regs.h> 36 #include <imx.h> 37 38 #ifndef CFG_DDR_SIZE 39 #error "CFG_DDR_SIZE not defined" 40 #endif 41 42 #define STACK_ALIGNMENT 64 43 #define CONSOLE_UART_BASE (CFG_UART_BASE) 44 45 /* For i.MX6 Quad SABRE Lite and Smart Device board */ 46 #if defined(CFG_MX6QP) || defined(CFG_MX6Q) || defined(CFG_MX6D) || \ 47 defined(CFG_MX6DL) || defined(CFG_MX6S) 48 #include <config/imx6qdlsolo.h> 49 #elif defined(CFG_MX6SX) 50 #include <config/imx6sx.h> 51 52 /* For i.MX 6UltraLite and 6ULL EVK board */ 53 #elif defined(CFG_MX6UL) || defined(CFG_MX6ULL) 54 55 #ifdef CFG_WITH_PAGER 56 #error "Pager not supported for platform mx6ulevk" 57 #endif 58 #ifdef CFG_WITH_LPAE 59 #error "LPAE not supported for now" 60 #endif 61 /* For i.MX 6SL */ 62 #elif defined(CFG_MX6SL) 63 #include <config/imx6sl.h> 64 /* For i.MX 6SLL */ 65 #elif defined(CFG_MX6SLL) 66 #include <config/imx6sll.h> 67 #endif 68 69 #endif /*PLATFORM_CONFIG_H*/ 70