iMX8MM PCIE DMA and iATU register

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

iMX8MM PCIE DMA and iATU register

1,913 Views
kuanlun_chiu
Contributor I

In imx_5.4.24_2.1.0 Linux, I want to enable PCIE EP mode for our dev board of iMX8MM.

I check DMA and iATU register definition in below two files.

#define DMA_REG_OFFSET 0x970 in drivers/pci/controller/dwc/pci-imx6.c

#define PCIE_ATU_VIEWPORT 0x900 in drivers/pci/controller/dwc/pcie-designware.h

But I cannot find any description about these two register offset in iMX8MM processor reference manual (IMX8MMRM.pdf).

Are these two register offset in iMX8 the same as iMX6?

0 Kudos
3 Replies

1,872 Views
kuanlun_chiu
Contributor I

Hi igor,

 

But I cannot find any information about PCIE DMA & iATU registers in i.MX Linux Reference Manual.

And after tracing imx pcie driver, I found actual DMA & iATU offset are defined as below.

Why there is no iMX docs describe these offset?

#define DEFAULT_DBI_ATU_OFFSET (0x3 << 20) (In drivers/pci/controller/dwc/pcie-designware.c)

#define DMA_UNROLL_CDM_OFFSET (0x7 << 19) (In drivers/pci/controller/dwc/pci-imx6.c)

0 Kudos

1,864 Views
igorpadykov
NXP Employee
NXP Employee

Hi kuanlun_chiu

 

>Are these two register offset in iMX8 the same as iMX6?

 

yes, as driver (drivers/pci/controller/dwc/pci-imx6.c) is the same

as described in sect.4.8 PCI Express Root Complex

i.MX Linux Reference Manual​

 

>But I cannot find any information about PCIE DMA & iATU registers in i.MX Linux Reference Manual.

 

since PCIe module is the same as in i.MX6Q, one can look at i.MX6Q Reference Manual.

 

Best regards
igor

0 Kudos

1,886 Views
igorpadykov
NXP Employee
NXP Employee

Hi kuanlun_chiu

 

>Are these two register offset in iMX8 the same as iMX6?

 

yes, as driver (drivers/pci/controller/dwc/pci-imx6.c) is the same

as described in sect.4.8 PCI Express Root Complex

i.MX Linux Reference Manual​

 

Best regards
igor

0 Kudos