Re: [PATCH/RFC] crypto: Add platform dependencies for CRYPTO_DEV_CCREE

From: Geert Uytterhoeven
Date: Wed Apr 18 2018 - 03:47:36 EST

Hi Gilad,

On Wed, Apr 18, 2018 at 6:32 AM, Gilad Ben-Yossef <gilad@xxxxxxxxxxxxx> wrote:
> On Tue, Apr 17, 2018 at 9:14 PM, Geert Uytterhoeven
> <geert@xxxxxxxxxxxxxx> wrote:
>> The ARM TrustZone CryptoCell is found on ARM SoCs only. Hence make it
>> depend on ARM or ARM64, unless compile-testing.
> Actually it is not. Despite what the name suggest, CryptoCell is
> designed by Arm but is
> not in fact limited to Arm cores. I think the only requirement is
> ability to provide an AMBA bus
> interface. Kudos to our marketing department to make that so clear and
> so on... :-)

Good to know, I couldn't find any users of the compatible value in DT sources,
so I had to guess... and missed ;-)

Do you have a good suggestion for a platform dependency?
Based on the above, I'd say "depends on ARM_AMBA || COMPILE_TEST",
but (currently) ARM_AMBA is selected on ARM or ARM64 only?



Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds