mfd: mc13892: MC13892_POWER_MISC bits revision
Subsystems (4)
PATCH v3 1/2 mfd: mc13892: MC13892_POWER_MISC bits revision
This patch revises the bits for register MC13892_POWER_MISC.
- Added definition for one missing bit (0).
- Changed the name for bit 21 for accordance with the datasheet.
- Updated affected board that uses these definitions.
- Replaced spaces with tabs for the remaining bits.
--- arch/arm/boards/efika-mx-smartbook/board.c | 2 +- include/mfd/mc13892.h | 23 ++++++++++++----------- 2 files changed, 13 insertions(+), 12 deletions(-)
arch/arm/boards/efika-mx-smartbook/board.c +1 -1
@@ -79,7 +79,7 @@ static void efikamx_power_init(struct mc13xxx *mc)/* power up the system first */ mc13xxx_reg_write (mc,MC13892_REG_POWER_MISC , -MC13892_POWER_MISC_PWUP ); +MC13892_POWER_MISC_GPO4ADIN );/* Set core voltage to 1.1V */ mc13xxx_reg_read (mc,MC13892_REG_SW_0 , &val);
include/mfd/mc13892.h +12 -11
@@ -182,17 +182,18 @@#define MC13892_MODE_1_VSDMODE (1 << 20)/* Reg Power misc */ -#define MC13892_POWER_MISC_GPO1EN (1 << 6) -#define MC13892_POWER_MISC_GPO1STBY (1 << 7) -#define MC13892_POWER_MISC_GPO2EN (1 << 8) -#define MC13892_POWER_MISC_GPO2STBY (1 << 9) -#define MC13892_POWER_MISC_GPO3EN (1 << 10) -#define MC13892_POWER_MISC_GPO3STBY (1 << 11) -#define MC13892_POWER_MISC_GPO4EN (1 << 12) -#define MC13892_POWER_MISC_GPO4STBY (1 << 13) -#define MC13892_POWER_MISC_PWGT1SPIEN (1 << 15) -#define MC13892_POWER_MISC_PWGT2SPIEN (1 << 16) -#define MC13892_POWER_MISC_PWUP (1 << 21) +#define MC13892_POWER_MISC_REGSCPEN (1 << 0) +#define MC13892_POWER_MISC_GPO1EN (1 << 6) +#define MC13892_POWER_MISC_GPO1STBY (1 << 7) +#define MC13892_POWER_MISC_GPO2EN (1 << 8) +#define MC13892_POWER_MISC_GPO2STBY (1 << 9) +#define MC13892_POWER_MISC_GPO3EN (1 << 10) +#define MC13892_POWER_MISC_GPO3STBY (1 << 11) +#define MC13892_POWER_MISC_GPO4EN (1 << 12) +#define MC13892_POWER_MISC_GPO4STBY (1 << 13) +#define MC13892_POWER_MISC_PWGT1SPIEN (1 << 15) +#define MC13892_POWER_MISC_PWGT2SPIEN (1 << 16) +#define MC13892_POWER_MISC_GPO4ADIN (1 << 21)/* Reg Power Control 2*/ #define MC13892_POWER_CONTROL_2_WDIRESET (1 << 12)
Signature · 7 lines
2.13.0 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
PATCH v3 2/2 ARM: CCMX51: Switch to multiimage support
This is a cumulative patch for the Digi ConnectCore CCMX51 SOM. It includes:
- Switch board to devicetree probe.
- Add MMC update handler.
- Switch to multiimage support.
- Cleanup and optimize board code.
---
arch/arm/Makefile | 1 -
arch/arm/boards/ccxmx51/Makefile | 4 +-
arch/arm/boards/ccxmx51/ccxmx51.c | 626 +++++++--------------
arch/arm/boards/ccxmx51/ccxmx51.h | 35 --
arch/arm/boards/ccxmx51/ccxmx51js.c | 103 ----
.../ccxmx51/{env => defaultenv-ccxmx51}/boot/nand | 0
.../{env => defaultenv-ccxmx51}/nv/boot.default | 0
arch/arm/boards/ccxmx51/env/init/mtdparts-nand | 6 -
arch/arm/boards/ccxmx51/env/nv/autoboot_timeout | 1 -
arch/arm/boards/ccxmx51/lowlevel.c | 15 +-
arch/arm/configs/ccmx51_defconfig | 60 --
arch/arm/configs/imx_v7_defconfig | 2 +-
arch/arm/dts/Makefile | 1 +
arch/arm/dts/imx51-ccxmx51.dts | 41 ++
arch/arm/mach-imx/Kconfig | 31 +-
images/Makefile.imx | 5 +
16 files changed, 288 insertions(+), 643 deletions(-)
delete mode 100644 arch/arm/boards/ccxmx51/ccxmx51.h
delete mode 100644 arch/arm/boards/ccxmx51/ccxmx51js.c
rename arch/arm/boards/ccxmx51/{env => defaultenv-ccxmx51}/boot/nand (100%)
rename arch/arm/boards/ccxmx51/{env => defaultenv-ccxmx51}/nv/boot.default (100%)
delete mode 100644 arch/arm/boards/ccxmx51/env/init/mtdparts-nand
delete mode 100644 arch/arm/boards/ccxmx51/env/nv/autoboot_timeout
delete mode 100644 arch/arm/configs/ccmx51_defconfig
create mode 100644 arch/arm/dts/imx51-ccxmx51.dtsarch/arm/Makefile +0 -1
@@ -246,7 +246,6 @@ barebox.imximg: $(KBUILD_BINARY) FORCE boarddir = $(srctree)/arch/arm/boards imxcfg-$(CONFIG_MACH_FREESCALE_MX53_SMD) += $(boarddir)/freescale-mx53-smd/flash-header.imxcfg -imxcfg-$(CONFIG_MACH_CCMX51) += $(boarddir)/ccxmx51/flash-header.imxcfg imxcfg-$(CONFIG_MACH_TX51) += $(boarddir)/karo-tx51/flash-header-karo-tx51.imxcfg imxcfg-$(CONFIG_MACH_GUF_VINCELL) += $(boarddir)/guf-vincell/flash-header.imxcfg imxcfg-$(CONFIG_MACH_EUKREA_CPUIMX51SD) += $(boarddir)/eukrea_cpuimx51/flash-header.imxcfg
arch/arm/boards/ccxmx51/Makefile +2 -2
@@ -1,3 +1,3 @@ obj-y += ccxmx51.o -lwl-y += lowlevel.o -obj-$(CONFIG_MACH_CCMX51_BASEBOARD) += ccxmx51js.o +lwl-y += lowlevel.o +bbenv-$(CONFIG_DEFAULT_ENVIRONMENT) += defaultenv-ccxmx51
arch/arm/boards/ccxmx51/ccxmx51.c +214 -412
691 lines not on this page · raw message
arch/arm/boards/ccxmx51/ccxmx51.h deleted +0 -35
@@ -1,35 +0,0 @@ -/* -* Copyright 2010 Digi International Inc. All Rights Reserved. -*/ - -/* -* The code contained herein is licensed under the GNU General Public -* License. You may obtain a copy of the GNU General Public License -* Version 2 or later at the following locations: -* -* http://www.opensource.org/licenses/gpl-license.html -* http://www.gnu.org/copyleft/gpl.html -*/ - -#ifndef _CCXMX51_H_ -#define _CCXMX51_H_ - -struct ccxmx51_hwid { -u8 variant; -u8 version; -u32 sn; -char mloc; -}; - -struct ccxmx51_ident { -const char *id_string; -const int mem_sz; -const char industrial; -const char eth0; -const char eth1; -const char wless; -}; - -extern struct ccxmx51_ident *ccxmx51_id; - -#endif /* _CCXMX51_H_ */
arch/arm/boards/ccxmx51/ccxmx51js.c deleted +0 -103
103 lines not on this page · raw message
arch/arm/boards/ccxmx51/defaultenv-ccxmx51/boot/nand renamed from arch/arm/boards/ccxmx51/env/boot/nand +0 -0
arch/arm/boards/ccxmx51/defaultenv-ccxmx51/nv/boot.default renamed from arch/arm/boards/ccxmx51/env/nv/boot.default +0 -0
arch/arm/boards/ccxmx51/env/init/mtdparts-nand deleted +0 -6
@@ -1,6 +0,0 @@ -#!/bin/sh - -mtdparts="512k(barebox)ro,256k(bareboxenv),3328k(kernel),-(root)" -kernelname="mxc_nand" - -mtdparts-add -b -d nand0 -k ${kernelname} -p ${mtdparts}
arch/arm/boards/ccxmx51/env/nv/autoboot_timeout deleted +0 -1
@@ -1 +0,0 @@ -2
arch/arm/boards/ccxmx51/lowlevel.c +13 -2
@@ -1,3 +1,6 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* Author: Alexander Shiyan <[email protected]> */ +#include <common.h> #include <mach/esdctl.h> #include <mach/generic.h>
@@ -5,8 +8,16 @@#include <asm/barebox-arm-head.h> #include <mach/imx51-regs.h> -void __naked barebox_arm_reset_vector (void ) +ENTRY_FUNCTION(start_ccxmx51, r0, r1, r2) { +extern char __dtb_imx51_ccxmx51_start[]; +void *fdt; +imx5_cpu_lowlevel_init (); -barebox_arm_entry (MX51_CSD0_BASE_ADDR ,SZ_128M ,NULL ); + +arm_setup_stack (0x20000000 -16 ); + + fdt = __dtb_imx51_ccxmx51_start +get_runtime_offset (); + +barebox_arm_entry (MX51_CSD0_BASE_ADDR ,SZ_128M , fdt); }
arch/arm/configs/ccmx51_defconfig deleted +0 -60
60 lines not on this page · raw message
arch/arm/configs/imx_v7_defconfig +1 -1
@@ -1,6 +1,7 @@ CONFIG_ARCH_IMX=y CONFIG_IMX_MULTI_BOARDS=y CONFIG_MACH_KINDLE_MX50=y +CONFIG_MACH_CCMX51=y CONFIG_MACH_EFIKA_MX_SMARTBOOK=y CONFIG_MACH_EMBEDSKY_E9=y CONFIG_MACH_FREESCALE_MX51_PDK=y
@@ -41,7 +42,6 @@ CONFIG_MACH_PHYTEC_PHYCORE_IMX7=y CONFIG_MACH_FREESCALE_MX7_SABRESD=y CONFIG_MACH_NXP_IMX6ULL_EVK=y CONFIG_MACH_GRINN_LITEBOARD=y -CONFIG_IMX_IIM=y CONFIG_IMX_IIM_FUSE_BLOW=y CONFIG_THUMB2_BAREBOX=y CONFIG_ARM_OPTIMZED_STRING_FUNCTIONS=y
arch/arm/dts/Makefile +1 -0
@@ -21,6 +21,7 @@ pbl-dtb-$(CONFIG_MACH_EMBEDSKY_E9) += imx6q-embedsky-e9.dtb.o pbl-dtb-$(CONFIG_MACH_FREESCALE_MX51_PDK) += imx51-babbage.dtb.o pbl-dtb-$(CONFIG_MACH_FREESCALE_MX53_LOCO) += imx53-qsb.dtb.o imx53-qsrb.dtb.o pbl-dtb-$(CONFIG_MACH_TX53) += imx53-tx53-xx30.dtb.o imx53-tx53-1011.dtb.o +pbl-dtb-$(CONFIG_MACH_CCMX51) += imx51-ccxmx51.dtb.o pbl-dtb-$(CONFIG_MACH_CCMX53) += imx53-ccxmx53.dtb.o pbl-dtb-$(CONFIG_MACH_FREESCALE_MX53_VMX53) += imx53-voipac-bsb.dtb.o pbl-dtb-$(CONFIG_MACH_FREESCALE_MX7_SABRESD) += imx7d-sdb.dtb.o
arch/arm/dts/imx51-ccxmx51.dts new file +41 -0
41 lines not on this page · raw message
arch/arm/mach-imx/Kconfig +12 -1
@@ -26,7 +26,6 @@ config ARCH_TEXT_BASE default 0x93d00000 if MACH_TX25 default 0x7ff00000 if MACH_TQMA53 default 0x97f00000 if MACH_TX51 - default 0x97f00000 if MACH_CCMX51 default 0x4fc00000 if MACH_SABRELITE default 0x8fe00000 if MACH_TX53 default 0x97f00000 if MACH_EFIKA_MX_SMARTBOOK
@@ -246,6 +245,17 @@ config MACH_KINDLE_MX50 Kindle Model No. D01100 (Kindle Wi-Fi), D01200 (Kindle Touch) or EY21 (Kindle Paperwhite). +config MACH_CCMX51 + bool "ConnectCore i.MX51" + select ARCH_IMX51 + select IMX_IIM + select SPI + select DRIVER_SPI_IMX + select MFD_MC13XXX + select RELOCATABLE + help + Say Y here if you are using Digi ConnectCore (W)i-i.MX51 + equipped with a Freescale i.MX51 Processor + config MACH_EFIKA_MX_SMARTBOOK bool "Efika MX smartbook"
select ARCH_IMX51
@@ -622,25 +632,6 @@ config MACH_TX51
help
Say Y here if you are using the Ka-Ro tx51 board
-config MACH_CCMX51
- bool "ConnectCore i.MX51"
- select ARCH_IMX51
- select IMX_IIM
- select SPI
- select DRIVER_SPI_IMX
- select MFD_MC13XXX
- help
- Say Y here if you are using Digi ConnectCore (W)i-i.MX51
- equipped with a Freescale i.MX51 Processor
-
-config MACH_CCMX51_BASEBOARD
- bool "Digi development board for CCMX51 module"
- depends on MACH_CCMX51
- default y
- help
- This adds board specific devices that can be found on Digi
- evaluation board for CCMX51 module.
-
# ----------------------------------------------------------
comment "i.MX53 Boards"
images/Makefile.imx +5 -0
@@ -57,6 +57,11 @@ FILE_barebox-kindle-ey21.img = start_imx50_kindle_ey21.pblb.imximg image-$(CONFIG_MACH_KINDLE_MX50) += barebox-kindle-ey21.img # ----------------------- i.MX51 based boards --------------------------- +pblb-$(CONFIG_MACH_CCMX51) += start_ccxmx51 +CFG_start_ccxmx51.pblb.imximg = $(board)/ccxmx51/flash-header.imxcfg +FILE_barebox-imx51-ccxmx51.img = start_ccxmx51.pblb.imximg +image-$(CONFIG_MACH_CCMX51) += barebox-imx51-ccxmx51.img + pblb-$(CONFIG_MACH_FREESCALE_MX51_PDK) += start_imx51_babbage CFG_start_imx51_babbage.pblb.imximg = $(board)/freescale-mx51-babbage/flash-header-imx51-babbage.imxcfg FILE_barebox-freescale-imx51-babbage.img = start_imx51_babbage.pblb.imximg
Signature · 7 lines
2.13.0 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Quoted 11 lines · Alexander Shiyan
This patch revises the bits for register
MC13892_POWER_MISC.
- Added definition for one missing bit (0).
- Changed the name for bit 21 for accordance with the datasheet.
- Updated affected board that uses these definitions.
- Replaced spaces with tabs for the remaining bits.Signed-off-by Alexander Shiyan <[email protected]>--- arch/arm/boards/efika-mx-smartbook/board.c | 2 +- include/mfd/mc13892.h | 23 ++++++++++++----------- 2 files changed, 13 insertions(+), 12 deletions(-)
Applied, thanks
Sascha
Signature · 9 lines
Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox