diff options
Diffstat (limited to 'arch/arm/boards/scb9328')
-rw-r--r-- | arch/arm/boards/scb9328/Makefile | 1 | ||||
-rw-r--r-- | arch/arm/boards/scb9328/lowlevel.c | 8 | ||||
-rw-r--r-- | arch/arm/boards/scb9328/lowlevel_init.S | 17 | ||||
-rw-r--r-- | arch/arm/boards/scb9328/scb9328.c | 30 |
4 files changed, 17 insertions, 39 deletions
diff --git a/arch/arm/boards/scb9328/Makefile b/arch/arm/boards/scb9328/Makefile index 8e1c7ef7a5..5c13dddc06 100644 --- a/arch/arm/boards/scb9328/Makefile +++ b/arch/arm/boards/scb9328/Makefile @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: GPL-2.0-only lwl-y += lowlevel_init.o lowlevel.o obj-y += scb9328.o diff --git a/arch/arm/boards/scb9328/lowlevel.c b/arch/arm/boards/scb9328/lowlevel.c index a2057f0c6b..d8b0d1cf18 100644 --- a/arch/arm/boards/scb9328/lowlevel.c +++ b/arch/arm/boards/scb9328/lowlevel.c @@ -1,10 +1,10 @@ // SPDX-License-Identifier: GPL-2.0 #include <common.h> -#include <mach/imx1-regs.h> -#include <mach/iomux-v1.h> -#include <mach/iomux-mx1.h> +#include <mach/imx/imx1-regs.h> +#include <mach/imx/iomux-v1.h> +#include <mach/imx/iomux-mx1.h> #include <asm/barebox-arm.h> -#include <mach/esdctl.h> +#include <mach/imx/esdctl.h> extern char __dtb_imx1_scb9328_start[]; diff --git a/arch/arm/boards/scb9328/lowlevel_init.S b/arch/arm/boards/scb9328/lowlevel_init.S index e20e3b92da..6c23d2cfea 100644 --- a/arch/arm/boards/scb9328/lowlevel_init.S +++ b/arch/arm/boards/scb9328/lowlevel_init.S @@ -1,18 +1,7 @@ -/* - * 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 <mach/imx1-regs.h> +#include <mach/imx/imx1-regs.h> #include <asm/barebox-arm-head.h> #define CFG_MPCTL0_VAL 0x00321431 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); |