mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-05-05 04:36:13 +02:00
Some NXP imx hardware ip module as the esdhc controller are exactly the same in some new ColdFire cpus. For the specific case, mcf5441x needs to use the existing fsl_esdhc_imx.c driver for the esdhc device. Create a stub to be able to use NXP "imx" serie drivers as the fsl_esdhc_imx in the ColdFire architecture. Signed-off-by: Angelo Dureghello <angelo@kernel-space.org>
24 lines
430 B
C
24 lines
430 B
C
// SPDX-License-Identifier: GPL-2.0+
|
|
/*
|
|
* (C) Copyright 2026 Kernelspace
|
|
* Angelo Dureghello <angelo@kernel-space.org>
|
|
*/
|
|
|
|
#include <config.h>
|
|
#include <asm/arch/clock.h>
|
|
#include <asm/global_data.h>
|
|
|
|
DECLARE_GLOBAL_DATA_PTR;
|
|
/*
|
|
* Stub to use existing nxp/fsl drivers.
|
|
*/
|
|
int mxc_get_clock(enum mxc_clock clk)
|
|
{
|
|
if (clk == MXC_ESDHC_CLK)
|
|
return gd->arch.sdhc_clk;
|
|
|
|
printf("Unsupported MXC CLK: %d\n", clk);
|
|
|
|
return 0;
|
|
}
|