ARM: S5PV210: add advanced crypto engine platform support
Subsystems (3)
cover ARM: S5PV210: add advanced crypto engine platform support
This patchset adds support for advanced crypto engine as a part of security subsystem, which is found on Samsung S5PC110 and S5PV210 system-on-chips.
The corresponding crypto driver is available under GPLv2 and it was accepted for inclusion into the Linux kernel.
Vladimir Zapolskiy (4):
ARM: S5P: add security subsystem memory region defines
ARM: S5PV210: add security subsystem clock
ARM: S5P: add platform support for advanced crypto engine
ARM: S5PV210: add security subsystem platform device to SMDK boards
arch/arm/mach-s3c64xx/include/mach/map.h | 2 + arch/arm/mach-s5pc100/include/mach/map.h | 2 + arch/arm/mach-s5pv210/Kconfig | 2 + arch/arm/mach-s5pv210/clock.c | 6 ++++ arch/arm/mach-s5pv210/include/mach/map.h | 3 ++ arch/arm/mach-s5pv210/mach-smdkc110.c | 1 + arch/arm/mach-s5pv210/mach-smdkv210.c | 1 + arch/arm/plat-s5p/Kconfig | 5 +++ arch/arm/plat-s5p/Makefile | 1 + arch/arm/plat-s5p/dev-secss.c | 41 +++++++++++++++++++++++++++++ arch/arm/plat-samsung/include/plat/devs.h | 2 + 11 files changed, 66 insertions(+), 0 deletions(-) create mode 100644 arch/arm/plat-s5p/dev-secss.c
Signature · 1 line
1.7.2.3
PATCH 1/4 ARM: S5P: add security subsystem memory region defines
This change adds macro definitions for starting addresses of security subsystems found on Samsung S3C64xx, S5PC100 and S5PV210 SoCs.
--- arch/arm/mach-s3c64xx/include/mach/map.h | 2 ++ arch/arm/mach-s5pc100/include/mach/map.h | 2 ++ arch/arm/mach-s5pv210/include/mach/map.h | 3 +++ 3 files changed, 7 insertions(+), 0 deletions(-)
arch/arm/mach-s3c64xx/include/mach/map.h +2 -0
@@ -101,6 +101,8 @@#define S3C64XX_PA_USB_HSPHY (0x7C100000)#define S3C64XX_VA_USB_HSPHY S3C_ADDR_CPU(0x00200000) +#define S3C64XX_PA_SECSS 0x7D000000 +/* place VICs close together */ #define VA_VIC0 (S3C_VA_IRQ + 0x00)#define VA_VIC1 (S3C_VA_IRQ + 0x10000)
arch/arm/mach-s5pc100/include/mach/map.h +2 -0
@@ -84,6 +84,8 @@#define S5PC100_PA_KEYPAD 0xF3100000 +#define S5PC100_PA_SECSS 0xF4000000 +/* Compatibiltiy Defines */ #define S3C_PA_FB S5PC100_PA_FB
arch/arm/mach-s5pv210/include/mach/map.h +3 -0
@@ -59,6 +59,8 @@#define S5PV210_PA_CFCON 0xE8200000 +#define S5PV210_PA_SECSS 0xEA000000 +#define S5PV210_PA_HSMMC (x) (0xEB000000 + ((x) * 0x100000))#define S5PV210_PA_HSOTG 0xEC000000
@@ -113,6 +115,7 @@#define S5P_PA_SROMC S5PV210_PA_SROMC#define S5P_PA_SYSCON S5PV210_PA_SYSCON#define S5P_PA_TIMER S5PV210_PA_TIMER +#define S5P_PA_SECSS S5PV210_PA_SECSS#define SAMSUNG_PA_ADC S5PV210_PA_ADC#define SAMSUNG_PA_CFCON S5PV210_PA_CFCON
Signature · 1 line
1.7.2.3
PATCH 2/4 ARM: S5PV210: add security subsystem clock
In reply to Vladimir ZapolskiyThis change adds security subsystem clock to the list of disabled by default clocks. This clock could be enabled later, if crypto engine is supposed to be used.
--- arch/arm/mach-s5pv210/clock.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-)
arch/arm/mach-s5pv210/clock.c +6 -0
@@ -371,6 +371,12 @@ static struct clk init_clocks_off[] = { .enable = s5pv210_clk_ip1_ctrl, .ctrlbit = (1<<25), }, { + .name = "secss", + .id = -1, + .parent = &clk_hclk_psys.clk, + .enable = s5pv210_clk_ip2_ctrl, + .ctrlbit = (1 << 0), + }, { .name = "hsmmc", .id = 0, .parent = &clk_hclk_psys.clk,
Signature · 1 line
1.7.2.3
PATCH 3/4 ARM: S5P: add platform support for advanced crypto engine
In reply to Vladimir ZapolskiyThis change adds platform support for hardware security engine found on Samsung S5PC110 and S5PV210 system-on-chips.
--- arch/arm/plat-s5p/Kconfig | 5 +++ arch/arm/plat-s5p/Makefile | 1 + arch/arm/plat-s5p/dev-secss.c | 41 +++++++++++++++++++++++++++++ arch/arm/plat-samsung/include/plat/devs.h | 2 + 4 files changed, 49 insertions(+), 0 deletions(-) create mode 100644 arch/arm/plat-s5p/dev-secss.c
arch/arm/plat-s5p/Kconfig +5 -0
@@ -85,6 +85,11 @@ config S5P_DEV_CSIS1 help Compile in platform device definitions for MIPI-CSIS channel 1 +config S5P_DEV_SECSS + bool + help + Compile in platform device definitions for S5PV210 security subsystem + config S5P_SETUP_MIPIPHY bool help
arch/arm/plat-s5p/Makefile +1 -0
@@ -33,4 +33,5 @@ obj-$(CONFIG_S5P_DEV_FIMC3) += dev-fimc3.o obj-$(CONFIG_S5P_DEV_ONENAND) += dev-onenand.o obj-$(CONFIG_S5P_DEV_CSIS0) += dev-csis0.o obj-$(CONFIG_S5P_DEV_CSIS1) += dev-csis1.o +obj-$(CONFIG_S5P_DEV_SECSS) += dev-secss.o obj-$(CONFIG_S5P_SETUP_MIPIPHY) += setup-mipiphy.o
arch/arm/plat-s5p/dev-secss.c new file +41 -0
41 lines not on this page · raw message
arch/arm/plat-samsung/include/plat/devs.h +2 -0
@@ -142,6 +142,8 @@ extern struct platform_device s5p_device_fimc3;extern struct platform_device s5p_device_mipi_csis0;extern struct platform_device s5p_device_mipi_csis1; +extern struct platform_device s5p_device_secss; +extern struct platform_device exynos4_device_sysmmu;/* s3c2440 specific devices */
Signature · 1 line
1.7.2.3
PATCH 4/4 ARM: S5PV210: add security subsystem platform device to SMDK boards
In reply to Vladimir ZapolskiyThis change enables platform device for SMDKC110 and SMDKV210 boards.
--- arch/arm/mach-s5pv210/Kconfig | 2 ++ arch/arm/mach-s5pv210/mach-smdkc110.c | 1 + arch/arm/mach-s5pv210/mach-smdkv210.c | 1 + 3 files changed, 4 insertions(+), 0 deletions(-)
arch/arm/mach-s5pv210/Kconfig +2 -0
@@ -109,6 +109,7 @@ config MACH_SMDKC110 select S3C_DEV_I2C2 select S3C_DEV_RTC select S3C_DEV_WDT + select S5P_DEV_SECSS select SAMSUNG_DEV_IDE select S5PV210_SETUP_I2C1 select S5PV210_SETUP_I2C2
@@ -133,6 +134,7 @@ config MACH_SMDKV210 select S3C_DEV_I2C2 select S3C_DEV_RTC select S3C_DEV_WDT + select S5P_DEV_SECSS select SAMSUNG_DEV_ADC select SAMSUNG_DEV_IDE select SAMSUNG_DEV_KEYPAD
arch/arm/mach-s5pv210/mach-smdkc110.c +1 -0
@@ -86,6 +86,7 @@ static struct platform_device *smdkc110_devices[] __initdata = { &s5pv210_device_iis0, &s5pv210_device_ac97, &s5pv210_device_spdif, + &s5p_device_secss, &s3c_device_cfcon, &s3c_device_i2c0, &s3c_device_i2c1,
arch/arm/mach-s5pv210/mach-smdkv210.c +1 -0
@@ -272,6 +272,7 @@ static struct platform_device *smdkv210_devices[] __initdata = { &smdkv210_lcd_lte480wv, &s3c_device_timer[3 ], &smdkv210_backlight_device, + &s5p_device_secss, };static void __init smdkv210_dm9000_init (void )
Signature · 1 line
1.7.2.3