Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 79969f6a authored by Kevin Cernekee's avatar Kevin Cernekee Committed by Sebastian Reichel
Browse files

power/reset: brcmstb: Add support for old 65nm chips



The register bit fields are a little different, so add an entry and a
compatible string to accommodate them.

Signed-off-by: default avatarKevin Cernekee <cernekee@gmail.com>
Signed-off-by: default avatarSebastian Reichel <sre@kernel.org>
parent bb1de7f6
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -79,7 +79,9 @@ reboot
Required properties

    - compatible
        The string property "brcm,brcmstb-reboot".
        The string property "brcm,brcmstb-reboot" for 40nm/28nm chips with
        the new SYS_CTRL interface, or "brcm,bcm7038-reboot" for 65nm
        chips with the old SUN_TOP_CTRL interface.

    - syscon
        A phandle / integer array that points to the syscon node which describes
+6 −0
Original line number Diff line number Diff line
@@ -88,8 +88,14 @@ static const struct reset_reg_mask reset_bits_40nm = {
	.sw_mstr_rst_mask = BIT(0),
};

static const struct reset_reg_mask reset_bits_65nm = {
	.rst_src_en_mask = BIT(3),
	.sw_mstr_rst_mask = BIT(31),
};

static const struct of_device_id of_match[] = {
	{ .compatible = "brcm,brcmstb-reboot", .data = &reset_bits_40nm },
	{ .compatible = "brcm,bcm7038-reboot", .data = &reset_bits_65nm },
	{},
};