diff options
Diffstat (limited to 'arch/arm/boards/guf-santaro')
-rw-r--r-- | arch/arm/boards/guf-santaro/Makefile | 2 | ||||
-rw-r--r-- | arch/arm/boards/guf-santaro/board.c | 11 | ||||
-rw-r--r-- | arch/arm/boards/guf-santaro/flash-header.imxcfg | 6 | ||||
-rw-r--r-- | arch/arm/boards/guf-santaro/lowlevel.c | 9 |
4 files changed, 17 insertions, 11 deletions
diff --git a/arch/arm/boards/guf-santaro/Makefile b/arch/arm/boards/guf-santaro/Makefile index 01c7a259e9..da63d2625f 100644 --- a/arch/arm/boards/guf-santaro/Makefile +++ b/arch/arm/boards/guf-santaro/Makefile @@ -1,2 +1,4 @@ +# SPDX-License-Identifier: GPL-2.0-only + obj-y += board.o lwl-y += lowlevel.o diff --git a/arch/arm/boards/guf-santaro/board.c b/arch/arm/boards/guf-santaro/board.c index 34005ff7bf..acc3fc7f07 100644 --- a/arch/arm/boards/guf-santaro/board.c +++ b/arch/arm/boards/guf-santaro/board.c @@ -6,28 +6,27 @@ #include <common.h> #include <init.h> #include <environment.h> -#include <mach/imx6-regs.h> +#include <mach/imx/imx6-regs.h> #include <asm/armlinux.h> #include <asm/io.h> #include <asm/mmu.h> -#include <mach/generic.h> +#include <mach/imx/generic.h> #include <linux/sizes.h> #include <bootsource.h> #include <bbu.h> -#include <mach/bbu.h> -#include <mach/imx6.h> +#include <mach/imx/bbu.h> +#include <mach/imx/imx6.h> #include <i2c/i2c.h> #include <gpio.h> static int i2c_device_present(struct i2c_adapter *adapter, int addr) { struct i2c_client client = {}; - u8 reg; client.adapter = adapter; client.addr = addr; - return i2c_write_reg(&client, 0x00, ®, 0) < 0 ? false : true; + return i2c_write_reg(&client, 0x00, NULL, 0) < 0 ? false : true; } #define TOUCH_RESET_GPIO IMX_GPIO_NR(1, 20) diff --git a/arch/arm/boards/guf-santaro/flash-header.imxcfg b/arch/arm/boards/guf-santaro/flash-header.imxcfg index 4505d81ea1..6d5bbae5d8 100644 --- a/arch/arm/boards/guf-santaro/flash-header.imxcfg +++ b/arch/arm/boards/guf-santaro/flash-header.imxcfg @@ -1,9 +1,11 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + loadaddr 0x10000000 soc imx6 ivtofs 0x400 -#include <mach/imx6-ddr-regs.h> -#include <mach/imx6q-ddr-regs.h> +#include <mach/imx/imx6-ddr-regs.h> +#include <mach/imx/imx6q-ddr-regs.h> wm 32 MX6_IOM_GRP_DDR_TYPE 0x000c0000 wm 32 MX6_IOM_GRP_DDRPKE 0x00000000 diff --git a/arch/arm/boards/guf-santaro/lowlevel.c b/arch/arm/boards/guf-santaro/lowlevel.c index 30c5e9054a..72401eb32c 100644 --- a/arch/arm/boards/guf-santaro/lowlevel.c +++ b/arch/arm/boards/guf-santaro/lowlevel.c @@ -1,14 +1,17 @@ +// SPDX-License-Identifier: GPL-2.0-only + #include <common.h> #include <linux/sizes.h> #include <io.h> #include <asm/barebox-arm-head.h> #include <asm/barebox-arm.h> #include <asm/cache.h> -#include <mach/generic.h> -#include <mach/imx6-regs.h> +#include <mach/imx/generic.h> +#include <mach/imx/imx6-regs.h> #include <debug_ll.h> +#include <mach/imx/debug_ll.h> #include <console.h> -#include <mach/esdctl.h> +#include <mach/imx/esdctl.h> static inline void setup_uart(void) { |