资源介绍
海思SPI驱动源码,适用于Hi3531D,Hi3519A,Hi3559A等海思MPI芯片tatic void load_ssp_default_config(struct pl022 *pl022)
{
if (pl022->vendor->pl023) {
writel(DEFAULT_SSP_REG_CR0_ST_PL023, SSP_CR0(pl022->virtbase));
writew(DEFAULT_SSP_REG_CR1_ST_PL023, SSP_CR1(pl022->virtbase));
} else if (pl022->vendor->extended_cr) {
#ifdef CONFIG_ARCH_HISI_BVT
struct amba_device *adev = pl022->adev;
struct amba_driver *adrv = container_of(adev->dev.driver,
struct amba_driver, drv);
if (adev->periphid == adrv->id_t