Thread (22 messages) 22 messages, 7 authors, 2018-03-09

[PATCH v4 1/8] SOC: brcmstb: add memory API

From: jhogan@kernel.org (James Hogan)
Date: 2018-03-09 15:07:38
Also in: linux-devicetree, linux-mips, linux-pci, lkml

On Mon, Jan 15, 2018 at 06:28:38PM -0500, Jim Quinlan wrote:
From: Florian Fainelli <f.fainelli@gmail.com>

This commit adds a memory API suitable for ascertaining the sizes of
each of the N memory controllers in a Broadcom STB chip.  Its first
user will be the Broadcom STB PCIe root complex driver, which needs
to know these sizes to properly set up DMA mappings for inbound
regions.

We cannot use memblock here or anything like what Linux provides
because it collapses adjacent regions within a larger block, and here
we actually need per-memory controller addresses and sizes, which is
why we resort to manual DT parsing.

Signed-off-by: Jim Quinlan <jim2101024@gmail.com>

Conflicts:
	drivers/soc/bcm/brcmstb/Makefile
That can go.
quoted hunk ↗ jump to hunk
+++ b/drivers/soc/bcm/brcmstb/memory.c
...
+/* Macro to help extract property data */
+#define DT_PROP_DATA_TO_U32(b, offs) (fdt32_to_cpu(*(u32*)(b + offs)))
Checkpatch complains about missing whitespace after u32.

Cheers
James
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20180309/b6615c86/attachment-0001.sig>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help