arm: ep93xx: use soc bus
PATCH v2 1/1 arm: ep93xx: use soc bus
Use the soc bus to report the silicon revidion and Maverick Key. Both are not currently exposed to the user. In addition, fill in the SoC family and machine for completeness.
Signed-off-by H Hartley Sweeten <[email protected]>
Cc Ryan Mallon <[email protected]>
---
v2: address some comments from Ryan Mallon
arch/arm/mach-ep93xx/Kconfig | 1 + arch/arm/mach-ep93xx/core.c | 108 ++++++++++++++++++++++++++- arch/arm/mach-ep93xx/include/mach/platform.h | 3 +- 3 files changed, 110 insertions(+), 2 deletions(-)
arch/arm/mach-ep93xx/Kconfig +1 -0
@@ -5,6 +5,7 @@ menu "Cirrus EP93xx Implementation Options" config EP93XX_SOC_COMMON bool default y + select SOC_BUS select LEDS_GPIO_REGISTER config CRUNCH
arch/arm/mach-ep93xx/core.c +107 -1
139 lines not on this page · raw message
arch/arm/mach-ep93xx/include/mach/platform.h +2 -1
@@ -4,6 +4,7 @@#ifndef __ASSEMBLY__ +struct device ;struct i2c_gpio_platform_data ;struct i2c_board_info ;struct spi_board_info ;
@@ -52,7 +53,7 @@ void ep93xx_register_ide(void);int ep93xx_ide_acquire_gpio (struct platform_device *pdev);void ep93xx_ide_release_gpio (struct platform_device *pdev); -void ep93xx_init_devices (void ); +struct device *ep93xx_init_devices (void );extern void ep93xx_timer_init (void );void ep93xx_restart (char ,const char *);
Signature · 1 line
1.8.1.4
Quoted 6 lines
Use the soc bus to report the silicon revidion and Maverick Key. Both are not currently exposed to the user. In addition, fill in the SoC family and machine for completeness.
Signed-off-by H Hartley Sweeten <[email protected]>Cc Ryan Mallon <[email protected]>
...
arch/arm/mach-ep93xx/core.c void ep93xx_ide_release_gpio(struct platform_device *pdev) · line 984
Quoted 2 lines
arch/arm/mach-ep93xx/core.c +2
-0+ soc_dev_attr->machine =ep93xx_get_machine_name (); + soc_dev_attr->family ="Cirrus EP93xx" ;
Probably, use full name here is better?
"Cirrus Logic EP93xx"
arch/arm/mach-ep93xx/core.c void ep93xx_ide_release_gpio(struct platform_device *pdev) · line 986
Quoted 2 lines
arch/arm/mach-ep93xx/core.c +2
-0+ soc_dev_attr->revision =ep93xx_get_soc_rev (); + soc_dev_attr->soc_id =ep93xx_get_soc_id ();
...
---