Commit 3b91f300 authored by Lee Jones's avatar Lee Jones Committed by Linus Walleij

ARM: ux500: Deactivate Crypt support when booting with ATAGs

It's time to remove all ATAG support from ux500 and rely solely on
Device Tree booting. This patch is part of that endeavour.
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 335d7614
...@@ -44,7 +44,6 @@ ...@@ -44,7 +44,6 @@
#include "setup.h" #include "setup.h"
#include "devices.h" #include "devices.h"
#include "irqs.h" #include "irqs.h"
#include <linux/platform_data/crypto-ux500.h>
#include "ste-dma40-db8500.h" #include "ste-dma40-db8500.h"
#include "db8500-regs.h" #include "db8500-regs.h"
...@@ -183,19 +182,6 @@ static void mop500_prox_deactivate(struct device *dev) ...@@ -183,19 +182,6 @@ static void mop500_prox_deactivate(struct device *dev)
regulator_put(prox_regulator); regulator_put(prox_regulator);
} }
static struct cryp_platform_data u8500_cryp1_platform_data = {
.mem_to_engine = {
.dir = DMA_MEM_TO_DEV,
.dev_type = DB8500_DMA_DEV48_CAC1,
.mode = STEDMA40_MODE_LOGICAL,
},
.engine_to_mem = {
.dir = DMA_DEV_TO_MEM,
.dev_type = DB8500_DMA_DEV48_CAC1,
.mode = STEDMA40_MODE_LOGICAL,
}
};
static struct stedma40_chan_cfg u8500_hash_dma_cfg_tx = { static struct stedma40_chan_cfg u8500_hash_dma_cfg_tx = {
.dir = DMA_MEM_TO_DEV, .dir = DMA_MEM_TO_DEV,
.dev_type = DB8500_DMA_DEV50_HAC1_TX, .dev_type = DB8500_DMA_DEV50_HAC1_TX,
...@@ -318,7 +304,6 @@ static void __init mop500_uart_init(struct device *parent) ...@@ -318,7 +304,6 @@ static void __init mop500_uart_init(struct device *parent)
static void __init u8500_cryp1_hash1_init(struct device *parent) static void __init u8500_cryp1_hash1_init(struct device *parent)
{ {
db8500_add_cryp1(parent, &u8500_cryp1_platform_data);
db8500_add_hash1(parent, &u8500_hash1_platform_data); db8500_add_hash1(parent, &u8500_hash1_platform_data);
} }
......
...@@ -13,7 +13,6 @@ ...@@ -13,7 +13,6 @@
#include <linux/sys_soc.h> #include <linux/sys_soc.h>
#include <linux/amba/bus.h> #include <linux/amba/bus.h>
#include <linux/platform_data/i2c-nomadik.h> #include <linux/platform_data/i2c-nomadik.h>
#include <linux/platform_data/crypto-ux500.h>
struct spi_master_cntlr; struct spi_master_cntlr;
...@@ -65,31 +64,6 @@ dbx500_add_rtc(struct device *parent, resource_size_t base, int irq) ...@@ -65,31 +64,6 @@ dbx500_add_rtc(struct device *parent, resource_size_t base, int irq)
0, NULL, 0); 0, NULL, 0);
} }
struct cryp_platform_data;
static inline struct platform_device *
dbx500_add_cryp1(struct device *parent, int id, resource_size_t base, int irq,
struct cryp_platform_data *pdata)
{
struct resource res[] = {
DEFINE_RES_MEM(base, SZ_4K),
DEFINE_RES_IRQ(irq),
};
struct platform_device_info pdevinfo = {
.parent = parent,
.name = "cryp1",
.id = id,
.res = res,
.num_res = ARRAY_SIZE(res),
.data = pdata,
.size_data = sizeof(*pdata),
.dma_mask = DMA_BIT_MASK(32),
};
return platform_device_register_full(&pdevinfo);
}
struct hash_platform_data; struct hash_platform_data;
static inline struct platform_device * static inline struct platform_device *
......
...@@ -109,8 +109,6 @@ db8500_add_ssp(struct device *parent, const char *name, resource_size_t base, ...@@ -109,8 +109,6 @@ db8500_add_ssp(struct device *parent, const char *name, resource_size_t base,
dbx500_add_uart(parent, "uart2", U8500_UART2_BASE, \ dbx500_add_uart(parent, "uart2", U8500_UART2_BASE, \
IRQ_DB8500_UART2, pdata) IRQ_DB8500_UART2, pdata)
#define db8500_add_cryp1(parent, pdata) \
dbx500_add_cryp1(parent, -1, U8500_CRYP1_BASE, IRQ_DB8500_CRYP1, pdata)
#define db8500_add_hash1(parent, pdata) \ #define db8500_add_hash1(parent, pdata) \
dbx500_add_hash1(parent, -1, U8500_HASH1_BASE, pdata) dbx500_add_hash1(parent, -1, U8500_HASH1_BASE, pdata)
#endif #endif
...@@ -15,7 +15,6 @@ extern struct platform_device u8500_gpio_devs[]; ...@@ -15,7 +15,6 @@ extern struct platform_device u8500_gpio_devs[];
extern struct amba_device ux500_pl031_device; extern struct amba_device ux500_pl031_device;
extern struct platform_device ux500_hash1_device; extern struct platform_device ux500_hash1_device;
extern struct platform_device ux500_cryp1_device;
extern struct platform_device u8500_dma40_device; extern struct platform_device u8500_dma40_device;
extern struct platform_device ux500_ske_keypad_device; extern struct platform_device ux500_ske_keypad_device;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment