soc: aspeed: Add soc info driver
authorJoel Stanley <joel@jms.id.au>
Mon, 21 Sep 2020 09:16:43 +0000 (18:46 +0930)
committerJoel Stanley <joel@jms.id.au>
Fri, 25 Sep 2020 00:44:06 +0000 (10:14 +0930)
commite0218dca5787c851b403fcbc33cdfec795446fca
treef4ceb2bf8561e29a44e1732cc4a3a7c0213e9d71
parent7c1f6281549bda39ab32f65eb93bfcf2aa75fe94
soc: aspeed: Add soc info driver

This adds a SOC_BUS info driver for the ASPEED platform.

The full ID table is preserved in this commit message in case someone
finds a need to change the implemntation in the future.

{ "AST1100-A0", 0x00000200 },
{ "AST1100-A1", 0x00000201 },
{ "AST1100-A2", 0x00000202 },
{ "AST1100-A3", 0x00000202 },

{ "AST2050-A0", 0x00000200 },
{ "AST2050-A1", 0x00000201 },
{ "AST2050-A2", 0x00000202 },
{ "AST2050-A3", 0x00000202 },

{ "AST2100-A0", 0x00000300 },
{ "AST2100-A1", 0x00000301 },
{ "AST2100-A2", 0x00000302 },
{ "AST2100-A3", 0x00000302 },

{ "AST2150-A0", 0x00000202 },
{ "AST2150-A1", 0x00000202 },

{ "AST2200-A0", 0x00000102 },
{ "AST2200-A1", 0x00000102 },

{ "AST2300-A0", 0x01000003 },
{ "AST2300-A1", 0x01010303 },

{ "AST1300-A1", 0x01010003 },
{ "AST1050-A1", 0x01010203 },

{ "AST2400-A0", 0x02000303 },
{ "AST2400-A1", 0x02010303 },
{ "AST1400-A1", 0x02010103 },
{ "AST1250-A1", 0x02010303 },

{ "AST2500-A0", 0x04000303 },
{ "AST2510-A0", 0x04000103 },
{ "AST2520-A0", 0x04000203 },
{ "AST2530-A0", 0x04000403 },
{ "AST2500-A1", 0x04010303 },
{ "AST2510-A1", 0x04010103 },
{ "AST2520-A1", 0x04010203 },
{ "AST2530-A1", 0x04010403 },
{ "AST2500-A2", 0x04030303 },
{ "AST2510-A2", 0x04030103 },
{ "AST2520-A2", 0x04030203 },
{ "AST2530-A2", 0x04030403 },

{ "AST2600-A0", 0x05000303 },
{ "AST2600-A1", 0x05010303 },
{ "AST2600-A2", 0x05020303 },
{ "AST2620-A1", 0x05010203 },
{ "AST2620-A2", 0x05020203 },

Reviewed-by: Andrew Jeffery <andrew@aj.id.au>
Link: https://lore.kernel.org/r/20200921091644.133107-3-joel@jms.id.au
Signed-off-by: Joel Stanley <joel@jms.id.au>
drivers/soc/aspeed/Kconfig
drivers/soc/aspeed/Makefile
drivers/soc/aspeed/aspeed-socinfo.c [new file with mode: 0644]