/* Enable a module clock derived from the PBB clock.  */
void sysclk_enable_pbb_module(unsigned int index)
/* Enable a module clock derived from the PBB clock.  */
void sysclk_enable_pbb_module(unsigned int index)
{
	unsigned int pbus_id = 0;
	irqflags_t   flags;
	if (index == SYSCLK_AES)
		pbus_id = 1;
	flags = cpu_irq_save();
	if (!sysclk_bus_refcount[pbus_id])
		sysclk_enable_hsb_module(2 + (4 * pbus_id));
	sysclk_bus_refcount[pbus_id]++;
	cpu_irq_restore(flags);
	sysclk_priv_enable_module(AVR32_PM_CLK_GRP_PBB, index);
}