diff options
Diffstat (limited to 'arch/arm/boards/scb9328/scb9328.c')
-rw-r--r-- | arch/arm/boards/scb9328/scb9328.c | 30 |
1 files changed, 9 insertions, 21 deletions
diff --git a/arch/arm/boards/scb9328/scb9328.c b/arch/arm/boards/scb9328/scb9328.c index d1f741a70e..c2475476fd 100644 --- a/arch/arm/boards/scb9328/scb9328.c +++ b/arch/arm/boards/scb9328/scb9328.c @@ -1,36 +1,24 @@ -/* - * Copyright (C) 2004 Sascha Hauer, Synertronixx GmbH - * - * 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: 2004 Sascha Hauer, Synertronixx GmbH #include <common.h> #include <net.h> #include <init.h> #include <environment.h> -#include <generated/mach-types.h> -#include <mach/imx1-regs.h> +#include <asm/mach-types.h> +#include <mach/imx/imx1-regs.h> #include <asm/armlinux.h> -#include <mach/weim.h> +#include <mach/imx/weim.h> #include <io.h> -#include <partition.h> #include <fs.h> #include <envfs.h> -#include <mach/iomux-mx1.h> -#include <mach/devices-imx1.h> +#include <mach/imx/iomux-mx1.h> static int scb9328_devices_init(void) { + if (!of_machine_is_compatible("stx,scb9328")) + return 0; + /* CS3 becomes CS3 by clearing reset default bit 1 in FMCR */ writel(0x1, MX1_SCM_BASE_ADDR + MX1_FMCR); |