Re: Unhandled fault: external abort on non-linefetch (0x1028)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Jul 17, 2016 at 11:24 AM, Ran Shalit <ranshalit@xxxxxxxxx> wrote:
> Hello,
>
> I am trying to understand how I can enable pm runtime with mcspi.
> spi with omap is implemented only for 4-wire device, while we use 3-wire device.
> So, I had to implement it myself.
> I try to do some porting of code (instaed of modification in current
> spi driver),
>
> But - I keep getting exception when accsessing spi status register
> (you can find the complete log below).
>
> ioaddr = ioremap_nocache(0x4809A000, SZ_4K);
>      *(( unsigned int*) (ioaddr+0)) = 0x12;
>     val =  *(( unsigned int*) (ioaddr + 0x34));
> printk("mymem 0x%x\n",val); <<--- exception when reading from 0x4809a034
>
> using: omap3530, kernel 2.6.37, custom spi driver
> Is there any idea what can be wrong here ?
>
> Thanks,
> Ran


Hi,

Issue been resolved.
clks were enabled in u-boot, but not in kernel.

    val = *(volatile U32 *)CM_FCLKEN1_CORE;
    val |=(OMAP35XX_EN_MCSPI1 | OMAP35XX_EN_MCSPI2 |
OMAP35XX_EN_MCSPI3 | OMAP35XX_EN_MCSPI4);
    *(volatile U32 *)CM_FCLKEN1_CORE = val;

    val = *(volatile U32 *)CM_ICLKEN1_CORE;
    val |=(OMAP35XX_EN_MCSPI1 | OMAP35XX_EN_MCSPI2 |
OMAP35XX_EN_MCSPI3 | OMAP35XX_EN_MCSPI4);
    *(volatile U32 *)CM_ICLKEN1_CORE = val;


Thank you,
Ran
--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux