]> git.sur5r.net Git - u-boot/blobdiff - arch/arm/cpu/arm926ejs/mxs/iomux.c
Merge branch 'master' of git://www.denx.de/git/u-boot-imx
[u-boot] / arch / arm / cpu / arm926ejs / mxs / iomux.c
index 12916b6d6061ab356374d46640250c82bb44aa9b..2e6be06fd4862489609ad86307b2a084fd70a4bf 100644 (file)
@@ -4,19 +4,7 @@
  * Copyright (C) 2009 by Jan Weitzel Phytec Messtechnik GmbH,
  *                       <armlinux@phytec.de>
  *
- * 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.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
- * MA 02110-1301, USA.
+ * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #include <common.h>
@@ -43,7 +31,7 @@ int mxs_iomux_setup_pad(iomux_cfg_t pad)
 {
        u32 reg, ofs, bp, bm;
        void *iomux_base = (void *)MXS_PINCTRL_BASE;
-       struct mx28_register_32 *mxs_reg;
+       struct mxs_register_32 *mxs_reg;
 
        /* muxsel */
        ofs = 0x100;
@@ -70,7 +58,7 @@ int mxs_iomux_setup_pad(iomux_cfg_t pad)
        /* vol */
        if (PAD_VOL_VALID(pad)) {
                bp = PAD_PIN(pad) % 8 * 4 + 2;
-               mxs_reg = (struct mx28_register_32 *)(iomux_base + ofs);
+               mxs_reg = (struct mxs_register_32 *)(iomux_base + ofs);
                if (PAD_VOL(pad))
                        writel(1 << bp, &mxs_reg->reg_set);
                else
@@ -82,7 +70,7 @@ int mxs_iomux_setup_pad(iomux_cfg_t pad)
                ofs = PULL_OFFSET;
                ofs += PAD_BANK(pad) * 0x10;
                bp = PAD_PIN(pad);
-               mxs_reg = (struct mx28_register_32 *)(iomux_base + ofs);
+               mxs_reg = (struct mxs_register_32 *)(iomux_base + ofs);
                if (PAD_PULL(pad))
                        writel(1 << bp, &mxs_reg->reg_set);
                else