Skip to content

Commit

Permalink
power/reset: brcmstb: Add support for old 65nm chips
Browse files Browse the repository at this point in the history
The register bit fields are a little different, so add an entry and a
compatible string to accommodate them.

Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
  • Loading branch information
Kevin Cernekee authored and Sebastian Reichel committed Jan 22, 2015
1 parent bb1de7f commit 79969f6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Documentation/devicetree/bindings/arm/brcm-brcmstb.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions drivers/power/reset/brcmstb-reboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
{},
};

Expand Down

0 comments on commit 79969f6

Please sign in to comment.