mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-09-19 12:51:23 +02:00
When bringing in the series 'arm: dts: am62-beagleplay: Fix Beagleplay Ethernet"' I failed to notice that b4 noticed it was based on next and so took that as the base commit and merged that part of next to master. This reverts commit c8ffd1356d42223cbb8c86280a083cc3c93e6426, reversing changes made to 2ee6f3a5f7550de3599faef9704e166e5dcace35. Reported-by: Jonas Karlman <jonas@kwiboo.se> Signed-off-by: Tom Rini <trini@konsulko.com>
28 lines
697 B
C
28 lines
697 B
C
// SPDX-License-Identifier: GPL-2.0+
|
|
/*
|
|
* Copyright 2015 Freescale Semiconductor, Inc.
|
|
* Author: Zhuoyu Zhang <Zhuoyu.Zhang@freescale.com>
|
|
*/
|
|
#include <common.h>
|
|
#include <asm/io.h>
|
|
#include <asm/arch-ls102xa/immap_ls102xa.h>
|
|
#include <asm/arch-ls102xa/config.h>
|
|
#include <linux/compiler.h>
|
|
#include <hwconfig.h>
|
|
#include <fsl_devdis.h>
|
|
|
|
void device_disable(const struct devdis_table *tbl, uint32_t num)
|
|
{
|
|
int i;
|
|
struct ccsr_gur __iomem *gur = (void *)CFG_SYS_FSL_GUTS_ADDR;
|
|
|
|
/*
|
|
* Extract hwconfig from environment and disable unused device.
|
|
*/
|
|
for (i = 0; i < num; i++) {
|
|
if (hwconfig_sub("devdis", tbl[i].name))
|
|
setbits_be32(&gur->devdisr + tbl[i].offset,
|
|
tbl[i].mask);
|
|
}
|
|
}
|