mirror of
https://github.com/torvalds/linux.git
synced 2026-09-24 06:24:02 +02:00
PCI: cadence: Add HPA architecture flag
Add a boolean flag 'is_hpa' to the cdns_pcie structure to indicate that the controller is part of a Heterogeneous Processor Architecture (HPA) system. This flag will be used by subsequent patches to handle HPA-specific register layouts and behaviors. Signed-off-by: Hans Zhang <18255117159@163.com> Signed-off-by: Manivannan Sadhasivam <mani@kernel.org> Tested-by: Aksh Garg <a-garg7@ti.com> Link: https://patch.msgid.link/20260701073513.1101559-2-18255117159@163.com
This commit is contained in:
parent
93aac16f1e
commit
b5672f9463
|
|
@ -174,6 +174,7 @@ static int sky1_pcie_probe(struct platform_device *pdev)
|
|||
cdns_pcie->reg_base = pcie->reg_base;
|
||||
cdns_pcie->msg_res = pcie->msg_res;
|
||||
cdns_pcie->is_rc = true;
|
||||
cdns_pcie->is_hpa = true;
|
||||
|
||||
reg_off = devm_kzalloc(dev, sizeof(*reg_off), GFP_KERNEL);
|
||||
if (!reg_off) {
|
||||
|
|
|
|||
|
|
@ -80,6 +80,7 @@ struct cdns_plat_pcie_of_data {
|
|||
* @msg_res: Region for send message to map PCI accesses
|
||||
* @dev: PCIe controller
|
||||
* @is_rc: tell whether the PCIe controller mode is Root Complex or Endpoint.
|
||||
* @is_hpa: indicates if the architecture is HPA
|
||||
* @phy_count: number of supported PHY devices
|
||||
* @phy: list of pointers to specific PHY control blocks
|
||||
* @link: list of pointers to corresponding device link representations
|
||||
|
|
@ -94,6 +95,7 @@ struct cdns_pcie {
|
|||
struct resource *msg_res;
|
||||
struct device *dev;
|
||||
bool is_rc;
|
||||
bool is_hpa;
|
||||
int phy_count;
|
||||
struct phy **phy;
|
||||
struct device_link **link;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user