diff options
Diffstat (limited to 'arch/arm/boards/karo-tx25/board.c')
-rw-r--r-- | arch/arm/boards/karo-tx25/board.c | 41 |
1 files changed, 12 insertions, 29 deletions
diff --git a/arch/arm/boards/karo-tx25/board.c b/arch/arm/boards/karo-tx25/board.c index a4d4af57a3..7e8691ef93 100644 --- a/arch/arm/boards/karo-tx25/board.c +++ b/arch/arm/boards/karo-tx25/board.c @@ -1,21 +1,5 @@ -/* - * (C) 2011 Pengutronix, Sascha Hauer <s.hauer@pengutronix.de> - * - * See file CREDITS for list of people who contributed to this - * project. - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License as - * published by the Free Software Foundation; either version 2 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * - */ +// SPDX-License-Identifier: GPL-2.0-or-later +// SPDX-FileCopyrightText: 2011 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix #define pr_fmt(fmt) "tx25: " fmt @@ -25,20 +9,19 @@ #include <linux/sizes.h> #include <gpio.h> #include <environment.h> -#include <mach/imx25-regs.h> +#include <mach/imx/imx25-regs.h> #include <asm/armlinux.h> #include <asm/sections.h> #include <asm/barebox-arm.h> #include <io.h> -#include <partition.h> -#include <generated/mach-types.h> -#include <mach/imx-nand.h> -#include <mach/iomux-mx25.h> -#include <mach/generic.h> -#include <mach/iim.h> +#include <asm/mach-types.h> +#include <mach/imx/imx-nand.h> +#include <mach/imx/iomux-mx25.h> +#include <mach/imx/generic.h> +#include <mach/imx/iim.h> +#include <platform_data/imxfb.h> #include <linux/err.h> -#include <mach/devices-imx25.h> -#include <mach/bbu.h> +#include <mach/imx/bbu.h> #include <asm/mmu.h> #define TX25_FEC_PWR_GPIO IMX_GPIO_NR(4, 9) @@ -181,8 +164,8 @@ static int tx25_init_fb(void) mxc_iomux_v3_setup_multiple_pads(tx25_lcdc_gpios, ARRAY_SIZE(tx25_lcdc_gpios)); - imx25_add_fb(&tx25_fb_data); - + add_generic_device("imxfb", -1, NULL, (resource_size_t)MX25_LCDC_BASE_ADDR, 0x1000, + IORESOURCE_MEM, &tx25_fb_data); return 0; } device_initcall(tx25_init_fb); |