Skip to content

Commit

Permalink
ARM: mvebu: Add SoC IDs for Marvell's integrated CPUs
Browse files Browse the repository at this point in the history
These SoCs are network packet processors (switch chips) with integrated
ARMv7 cores. They share a great deal of commonality with the Armada-XP
CPUs.

Signed-off-by: Chris Packham <[email protected]>
Reviewed-by: Stefan Roese <[email protected]>
Signed-off-by: Stefan Roese <[email protected]>
  • Loading branch information
cpackham authored and stroese committed Sep 26, 2017
1 parent a30d3e7 commit 0f8031a
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
14 changes: 14 additions & 0 deletions arch/arm/mach-mvebu/cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ int mvebu_soc_family(void)
case SOC_88F6820_ID:
case SOC_88F6828_ID:
return MVEBU_SOC_A38X;

case SOC_98DX3236_ID:
case SOC_98DX3336_ID:
case SOC_98DX4251_ID:
return MVEBU_SOC_MSYS;
}

return MVEBU_SOC_UNKNOWN;
Expand Down Expand Up @@ -208,6 +213,15 @@ int print_cpuinfo(void)
case SOC_88F6828_ID:
puts("MV88F6828-");
break;
case SOC_98DX3236_ID:
puts("98DX3236-");
break;
case SOC_98DX3336_ID:
puts("98DX3336-");
break;
case SOC_98DX4251_ID:
puts("98DX4251-");
break;
default:
puts("Unknown-");
break;
Expand Down
1 change: 1 addition & 0 deletions arch/arm/mach-mvebu/include/mach/cpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ enum {
MVEBU_SOC_AXP,
MVEBU_SOC_A375,
MVEBU_SOC_A38X,
MVEBU_SOC_MSYS,
MVEBU_SOC_UNKNOWN,
};

Expand Down
3 changes: 3 additions & 0 deletions arch/arm/mach-mvebu/include/mach/soc.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
#define SOC_88F6810_ID 0x6810
#define SOC_88F6820_ID 0x6820
#define SOC_88F6828_ID 0x6828
#define SOC_98DX3236_ID 0xf410
#define SOC_98DX3336_ID 0xf400
#define SOC_98DX4251_ID 0xfc00

/* A375 revisions */
#define MV_88F67XX_A0_ID 0x3
Expand Down

0 comments on commit 0f8031a

Please sign in to comment.