diff options
Diffstat (limited to 'arch/arm/mach-imx/imx50.c')
-rw-r--r-- | arch/arm/mach-imx/imx50.c | 29 |
1 files changed, 10 insertions, 19 deletions
diff --git a/arch/arm/mach-imx/imx50.c b/arch/arm/mach-imx/imx50.c index b76e3794e3..de82ce2ae7 100644 --- a/arch/arm/mach-imx/imx50.c +++ b/arch/arm/mach-imx/imx50.c @@ -1,28 +1,17 @@ -/* - * 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 #include <init.h> #include <common.h> #include <io.h> #include <notifier.h> #include <linux/sizes.h> -#include <mach/imx5.h> -#include <mach/imx50-regs.h> -#include <mach/revision.h> -#include <mach/clock-imx51_53.h> -#include <mach/generic.h> -#include <mach/reset-reason.h> -#include <mach/usb.h> +#include <mach/imx/imx5.h> +#include <mach/imx/imx50-regs.h> +#include <mach/imx/revision.h> +#include <mach/imx/clock-imx51_53.h> +#include <mach/imx/generic.h> +#include <mach/imx/reset-reason.h> +#include <mach/imx/usb.h> #define SI_REV 0x48 @@ -32,6 +21,8 @@ static int imx50_silicon_revision(void) u32 rev; u32 mx50_silicon_revision; + OPTIMIZER_HIDE_VAR(rom); + rev = readl(rom + SI_REV); switch (rev) { case 0x10: |